Commit 2fce2c1e022a618fbd9ac3817e78517bb54784db
1 parent
41a7dff1
added CUDA debugging output
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
bimsim.cu
... | ... | @@ -228,7 +228,9 @@ void set_simulation(){ |
228 | 228 | if (use_cuda) cuda_device = args["cuda"].as_int(); |
229 | 229 | if (!stim::testDevice(cuda_device, cuda_major, cuda_minor)) { //make sure the device supports the necessary compute capability |
230 | 230 | std::cout << "ERROR: CUDA device doesn't support compute capability " << cuda_major << "." << cuda_minor << std::endl; |
231 | + stim::printDevice(cuda_device); | |
231 | 232 | exit(1); |
233 | + use_cuda = false; | |
232 | 234 | } |
233 | 235 | if(args["debug"].is_set()) g_debug_images = true; //set debug flags |
234 | 236 | if(args["verbose"].is_set()) g_verbose = true; | ... | ... |