1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-05 11:34:16 +00:00

Release cl resources should the gpu mining thread abort.

This commit is contained in:
Con Kolivas 2011-08-20 22:22:11 +10:00
parent f062765c94
commit 75018d0d48

5
main.c
View File

@ -3725,6 +3725,11 @@ static void *gpuminer_thread(void *userdata)
}
}
out:
clReleaseCommandQueue(clState->commandQueue);
clReleaseKernel(clState->kernel);
clReleaseProgram(clState->program);
clReleaseContext(clState->context);
thread_reportin(mythr);
applog(LOG_ERR, "Thread %d failure, exiting", thr_id);
tq_freeze(mythr->q);