We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 79311e0 + ab191fd commit 28bcdecCopy full SHA for 28bcdec
1 file changed
main.cu
@@ -4835,6 +4835,11 @@ int main(int argc, char **argv) {
4835
}
4836
#endif
4837
4838
+ CUresult code = cuInit(0);
4839
+ if (code != CUDA_SUCCESS) {
4840
+ fprintf(stderr, "Cuda Init: %s (code %d)\n", code);
4841
+ exit(EXIT_FAILURE);
4842
+ }
4843
GPU_ASSERT(cudaSetDevice(device));
4844
// int numBlocks;
4845
cudaDeviceProp prop;
0 commit comments