Browse Source

Fix pacakaging missing adl headers and build failure without adl sdk headers installed.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
a1ba15fb52
  1. 2
      Makefile.am
  2. 8
      adl.h

2
Makefile.am

@ -24,7 +24,7 @@ cgminer_SOURCES = elist.h miner.h compat.h bench_block.h \ @@ -24,7 +24,7 @@ cgminer_SOURCES = elist.h miner.h compat.h bench_block.h \
sha256_generic.c sha256_4way.c sha256_via.c \
sha256_cryptopp.c sha256_sse2_amd64.c \
sha256_sse4_amd64.c sha256_sse2_i386.c \
adl.c \
adl.c adl.h adl_functions.h \
phatk110817.cl poclbm110817.cl
cgminer_LDFLAGS = $(PTHREAD_FLAGS)

8
adl.h

@ -19,9 +19,9 @@ void change_gpusettings(int gpu); @@ -19,9 +19,9 @@ void change_gpusettings(int gpu);
void gpu_autotune(int gpu);
void clear_adl(int nDevs);
#else /* HAVE_ADL */
void init_adl(int nDevs) {}
void change_gpusettings(int gpu) { }
void gpu_autotune(int gpu) { }
void clear_adl(int nDevs) {}
static inline void init_adl(int nDevs) {}
static inline void change_gpusettings(int gpu) { }
static inline void gpu_autotune(int gpu) { }
static inline void clear_adl(int nDevs) {}
#endif
#endif

Loading…
Cancel
Save