1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 14:58:01 +00:00

Minor opencl build corrections.

This commit is contained in:
Con Kolivas 2013-10-23 22:31:00 +11:00
parent ed16f32d8f
commit e76421320e
3 changed files with 4 additions and 1 deletions

View File

@ -45,7 +45,7 @@ cgminer_SOURCES += elist.h miner.h compat.h bench_block.h \
cgminer_SOURCES += logging.c cgminer_SOURCES += logging.c
if HAVE_OPENCL if HAS_OPENCL
bin_SCRIPTS = $(top_srcdir)/*.cl bin_SCRIPTS = $(top_srcdir)/*.cl
cgminer_SOURCES += driver-opencl.h driver-opencl.c cgminer_SOURCES += driver-opencl.h driver-opencl.c

View File

@ -4968,8 +4968,10 @@ static void *input_thread(void __maybe_unused *userdata)
display_pools(); display_pools();
else if (!strncasecmp(&input, "s", 1)) else if (!strncasecmp(&input, "s", 1))
set_options(); set_options();
#if HAVE_OPENCL
else if (have_opencl && !strncasecmp(&input, "g", 1)) else if (have_opencl && !strncasecmp(&input, "g", 1))
manage_gpu(); manage_gpu();
#endif
if (opt_realquiet) { if (opt_realquiet) {
disable_curses(); disable_curses();
break; break;

View File

@ -171,6 +171,7 @@ else
OPENCL_FLAGS="" OPENCL_FLAGS=""
OPENCL_LIBS="" OPENCL_LIBS=""
fi fi
AM_CONDITIONAL([HAS_OPENCL], [test x$opencl = xyes])
has_winpthread=false has_winpthread=false
if test "x$have_win32" = xtrue; then if test "x$have_win32" = xtrue; then