Rasmus Diederichsen
2018-07-31 07:07:28 UTC
I don't know cuda really and use the 3 libraries mentioned in the subject. I time and again run into CUDA errors of the form "Invalid resource handle" which appear in some cases, but not in others, i.e. the same function will error or not depending on what ran before it, even if totally unrelated. I gather from this that it has to do with state in CUDA, possibly mismanaging contexts. But since it's hard to reproduce without all my code, I can't open issues about this, so hopefully someone can just give me general pointers.
I am using the `pycuda.autoinit.context` for all the Reikna `Thread`s.
Neither reikna nor scikit-cuda seem to have functionality for setting context globally or passing it to functions
I have tried using my own context instead, but meet the same issues
What are the steps in general to ensure these issues don't come up? How can I handle this when multiple files are in play?
Cheers,
Rasmus
I am using the `pycuda.autoinit.context` for all the Reikna `Thread`s.
Neither reikna nor scikit-cuda seem to have functionality for setting context globally or passing it to functions
I have tried using my own context instead, but meet the same issues
What are the steps in general to ensure these issues don't come up? How can I handle this when multiple files are in play?
Cheers,
Rasmus