1
0
mirror of https://github.com/GOSTSec/ccminer synced 2025-01-09 06:18:07 +00:00

cuda: prevent ptxas crash with -n

This commit is contained in:
Tanguy Pruvot 2016-12-18 03:23:11 +01:00
parent 397472818d
commit ce6a8da188

View File

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