Comments (1)
Opt does not currently support non-default cudaStreams. There are three levels of support we could offer:
- Internally create and use a non-default stream internally for all operations.
- Expose the stream parameter for reading via the C API,
- Expose the stream parameter for writing via the C API (probably in
Opt_InitParams
).
2 and 3 worry me because we'd need a portable way to expose the stream in the C API, which currently includes no headers, especially not cuda headers. We could probably be fine passing streams as (void*) though.
The first option is easier, and likely sufficient for your purposes. This will require non-trivial, but straightforward changes to API/src/solverGPUGaussNewton.t
and API/src/util.t
to use a stream when possible. This includes making many cudaMemcpy's into async to avoid unneccessary synchronization.
from opt.
Related Issues (20)
- CUDA 10 got a different path for libdevice HOT 13
- how to build, is there a cmake solution HOT 1
- Shape from shading example does not work HOT 4
- Opt examples run significantly slower than CUDA solver HOT 5
- src/terralib.lua:4034: error loading terra module ad from file ../Opt/API/src/ad.t: not enough memory HOT 1
- Indexing images at calculated offset HOT 2
- Is the "Index" function implemented correctly? HOT 1
- "cuda reported error 500" when compute the albedo map in "shape_from_shading" using Graph HOT 1
- Ability to have meshes with boundaries
- Proposition / discussion about introducing hashing data structure support
- Dense image inverse warping HOT 2
- Windows 10: Slow performance in imageWrapping example with different Terra version HOT 1
- Help with robust_nonrigid_alignment
- Can't work with CUDA 10.1 ?
- A problem when compiled with CUDA11.1 and RTX 3090 HOT 3
- Global variable 'cudalib' is not declared.
- llvm: Invalid value
- Arap mesh deformation strange result HOT 1
- How to build Opt on Windows 10 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opt.