i know that the function cudaGLSetGLDevice has to be the first call to the runtime API except stuff like cudaGetDeviceProp etc.
I’m using this call in a QGlWidget class, since it’s recommended to call it after the GL intialisation. But it fails with the well known “setonactiveprocess”. No GPU function has been used before.
So i placed it right after the void main(), where it succeeds. But when i try to register buffer objects, i get the unspecified driver error, just like cudaGLSetGLDevice has never been called.
I’m really tired trying without getting a success, does anyone know how to avoid the last error?