Is this just a typo?
for(int d = 0; d < 2; d++) { cudaSetDevice(0); // shouldn't that be 'd' cudaMalloc(&dev_x, 1024);}
Please check the return value of all API calls!
Is this just a typo?
for(int d = 0; d < 2; d++) { cudaSetDevice(0); // shouldn't that be 'd' cudaMalloc(&dev_x, 1024);}
Please check the return value of all API calls!