1
0
mirror of https://github.com/GOSTSec/ccminer synced 2025-01-08 22:07:56 +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,6 +122,8 @@ void cuda_print_devices()
void cuda_shutdown() void cuda_shutdown()
{ {
// require gpu init first
if (thr_info != NULL)
cudaDeviceSynchronize(); cudaDeviceSynchronize();
cudaDeviceReset(); cudaDeviceReset();
} }