Device Mem sharing between 2 thread error

Hi All
I allocate device memory with ‘cublasAlloc’ in a thread , then I send that memory pointer to another thread but can’t read that memory in it because a runtime error occured .

Error : “Unhandled exception at 0x7c4ea4e1 in …”

If you can please help me .

Thanks alot’

Different CPU threads have different memory spaces, so you cannot share device pointers between them. This has been discussed somewhere, just search the forum :)