Browse Source

Make --ndevs display verbose opencl information as well to make debugging version information easier.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
53095da326
  1. 6
      main.c

6
main.c

@ -1842,9 +1842,9 @@ struct device_api opencl_api; @@ -1842,9 +1842,9 @@ struct device_api opencl_api;
static char *print_ndevs_and_exit(int *ndevs)
{
opt_log_output = true;
opencl_api.api_detect();
printf("%i GPU devices detected\n", *ndevs);
fflush(stdout);
applog(LOG_INFO, "%i GPU devices detected", *ndevs);
exit(*ndevs);
}
#endif
@ -1882,7 +1882,7 @@ static struct opt_table opt_cmdline_table[] = { @@ -1882,7 +1882,7 @@ static struct opt_table opt_cmdline_table[] = {
#ifdef HAVE_OPENCL
OPT_WITHOUT_ARG("--ndevs|-n",
print_ndevs_and_exit, &nDevs,
"Enumerate number of detected GPUs and exit"),
"Display number of detected GPUs, OpenCL information, and exit"),
#endif
OPT_WITHOUT_ARG("--version|-V",
opt_version_and_exit, packagename,

Loading…
Cancel
Save