I have a matlab mex file which uses CUDA kernels. It works fine when I use only one GPU.
I added an openMP interface to work wirh multiple GPUs and it starts crashing randomly
With cuda-memcheck it finds no errors, at most some memory leaks
Can it be due to some openMP and matlab crash ? for example can it be due to memory allocation and freeing with mxMalloc and mxFree ???