1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 15:27:53 +00:00

Merge pull request #77 from luke-jr/bugfix_ngpus

Bugfix: -n should show GPU count, even though GPUs aren't probed yet
This commit is contained in:
Con Kolivas 2012-01-19 20:44:58 -08:00
commit a4599dc1d4

3
main.c
View File

@ -1845,8 +1845,11 @@ static void load_default_config(void)
}
#ifdef HAVE_OPENCL
struct device_api opencl_api;
static char *print_ndevs_and_exit(int *ndevs)
{
opencl_api.api_detect();
printf("%i GPU devices detected\n", *ndevs);
fflush(stdout);
exit(*ndevs);