Browse Source

Minor opencl build corrections.

nfactor-troky
Con Kolivas 11 years ago
parent
commit
e76421320e
  1. 2
      Makefile.am
  2. 2
      cgminer.c
  3. 1
      configure.ac

2
Makefile.am

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

2
cgminer.c

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

1
configure.ac

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

Loading…
Cancel
Save