1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

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

This commit is contained in:
Con Kolivas 2012-01-29 17:32:00 +11:00
parent b8f845b478
commit 53095da326

6
main.c
View File

@ -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[] = {
#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,