I’m totally out of thoughts what is the reason, maybe you’ll be able to help.
So in my app I do
cudaMalloc( (void**)&d_finalPoints , MEMORYFORRESULTINGARRAY );
int* points = (int*)malloc( MEMORYFORRESULTINGARRAY );
cudaMemcpy( (void*)points, d_finalPoints , MEMORYFORRESULTINGARRAY, cudaMemcpyDeviceToHost );
It results in a driver crash for less than a second and then the last call returns cuda unknown error.
I’ve looked through this forum and it’s been said that it can be the problem of bad pointers, still all pointers are good and MEMORYFORRESULTINGARRAY is rather small and can be allocated normally.
If anyone knows what is going on please answer. Thanks in advance.