1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 04:54:26 +00:00

Some Intel HD graphics support the opencl commands but return errors since they don't support opencl. Don't fail with them, just provide a warning and disable GPU mining.

This commit is contained in:
Con Kolivas 2011-07-28 10:49:36 +10:00
parent 10fa821e33
commit f0fe82ea37

6
main.c
View File

@ -3677,8 +3677,10 @@ int main (int argc, char *argv[])
for (i = 0; i < 16; i++) for (i = 0; i < 16; i++)
gpu_devices[i] = false; gpu_devices[i] = false;
nDevs = clDevicesNum(); nDevs = clDevicesNum();
if (nDevs < 0) if (nDevs < 0) {
quit(1, "clDevicesNum returned error"); applog(LOG_ERR, "clDevicesNum returned error, none usable");
nDevs = 0;
}
#endif #endif
if (nDevs) if (nDevs)
opt_n_threads = 0; opt_n_threads = 0;