mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-10 04:31:03 +00:00
Free up resources/stale compilers.
This commit is contained in:
parent
d987006cd8
commit
b4960ec36b
8
main.c
8
main.c
@ -2781,6 +2781,10 @@ int main (int argc, char *argv[])
|
|||||||
#ifdef HAVE_OPENCL
|
#ifdef HAVE_OPENCL
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|
||||||
|
/* Hopefully remove stale references to allow binaries to build */
|
||||||
|
if (nDevs)
|
||||||
|
clUnloadCompiler();
|
||||||
|
|
||||||
/* start GPU mining threads */
|
/* start GPU mining threads */
|
||||||
for (j = 0; j < nDevs * opt_g_threads; j++) {
|
for (j = 0; j < nDevs * opt_g_threads; j++) {
|
||||||
int gpu = j % nDevs;
|
int gpu = j % nDevs;
|
||||||
@ -2819,6 +2823,10 @@ int main (int argc, char *argv[])
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Free up resources */
|
||||||
|
if (nDevs)
|
||||||
|
clUnloadCompiler();
|
||||||
|
|
||||||
applog(LOG_INFO, "%d gpu miner threads started", gpu_threads);
|
applog(LOG_INFO, "%d gpu miner threads started", gpu_threads);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user