Browse Source

Merge pull request #77 from luke-jr/bugfix_ngpus

Bugfix: -n should show GPU count, even though GPUs aren't probed yet
nfactor-troky
Con Kolivas 13 years ago
parent
commit
a4599dc1d4
  1. 3
      main.c

3
main.c

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

Loading…
Cancel
Save