I have an array and i want to retrieve its minimum element.
The array is filled inside a kernel module, and it all works fine. Then, outside this kernel module, i use the cublasIsamin function to get the index of the minimum element; then i call another kernel module to do some more computations.
The problem is that the cublas function is quite slow (the array has about 10 000 elements) and before i execute the second kernel module, precisely at the instruction
i have a runtime error.
If i don’t execute the cublas function i don’t have the same error any more.
What could generate this error? Maybe there is no more place in the memory?