Does anybody know wether it is possible to use multiple host threads with runtime api?
I have the following problem.
I create an OpenGL texture, then I register and map it to the address space of CUDA. This works fine so far. But if the actual host thread is terminated and another thread is created doing the same procedure for some reason that fails,
and even worse: it freezes my computer.
the textures are defined in a seperate thread
here some snippets of the code that is executed by the host threads:
// the next lines make my computer freeze when executed by the second host thread
// after the first host thread is destroyed
runCuda(…); // this is the function wich is doing some processing
After the first thread ist destroyed the OpenGL texture becomes inaccessible by other host threads.