Browse Source

Rename the poclbm file to ensure a new binary is built since.

nfactor-troky
Con Kolivas 14 years ago
parent
commit
a7707a26cb
  1. 4
      Makefile.am
  2. 6
      ocl.c
  3. 0
      poclbm110717.cl

4
Makefile.am

@ -15,14 +15,14 @@ INCLUDES = $(PTHREAD_FLAGS) -fno-strict-aliasing $(JANSSON_INCLUDES) @@ -15,14 +15,14 @@ INCLUDES = $(PTHREAD_FLAGS) -fno-strict-aliasing $(JANSSON_INCLUDES)
bin_PROGRAMS = cgminer
bin_SCRIPTS = phatk110714.cl poclbm.cl
bin_SCRIPTS = phatk110714.cl poclbm110717.cl
cgminer_SOURCES = elist.h miner.h compat.h \
main.c util.c \
ocl.c ocl.h findnonce.c findnonce.h \
sha256_generic.c sha256_4way.c sha256_via.c \
sha256_cryptopp.c sha256_sse2_amd64.c \
phatk110714.cl poclbm.cl
phatk110714.cl poclbm110717.cl
cgminer_LDFLAGS = $(PTHREAD_FLAGS)
cgminer_LDADD = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ @OPENCL_LIBS@ @NCURSES_LIBS@ @PDCURSES_LIBS@ lib/libgnu.a ccan/libccan.a

6
ocl.c

@ -339,11 +339,11 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize) @@ -339,11 +339,11 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
*/
char binaryfilename[255];
char numbuf[10];
char filename[15];
char filename[16];
if (clState->hasBitAlign)
strcpy(filename, "phatk110714.cl");
else
strcpy(filename, "poclbm.cl");
strcpy(filename, "poclbm110717.cl");
FILE *binaryfile;
size_t *binary_sizes;
char **binaries;
@ -373,7 +373,7 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize) @@ -373,7 +373,7 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
strcat(binaryfilename, "phatk110714");
strcat(binaryfilename, "bitalign");
} else
strcat(binaryfilename, "poclbm");
strcat(binaryfilename, "poclbm110717");
strcat(binaryfilename, "v");
sprintf(numbuf, "%d", clState->preferred_vwidth);
strcat(binaryfilename, numbuf);

0
poclbm.cl → poclbm110717.cl

Loading…
Cancel
Save