Browse Source

cuda: prevent ptxas crash with -n

2upstream
Tanguy Pruvot 8 years ago
parent
commit
ce6a8da188
  1. 2
      cuda.cpp

2
cuda.cpp

@ -122,6 +122,8 @@ void cuda_print_devices() @@ -122,6 +122,8 @@ void cuda_print_devices()
void cuda_shutdown()
{
// require gpu init first
if (thr_info != NULL)
cudaDeviceSynchronize();
cudaDeviceReset();
}

Loading…
Cancel
Save