From a7707a26cb805f328b62761eb1f83b523069284e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 18 Jul 2011 10:42:24 +1000 Subject: [PATCH] Rename the poclbm file to ensure a new binary is built since. --- Makefile.am | 4 ++-- ocl.c | 6 +++--- poclbm.cl => poclbm110717.cl | 0 3 files changed, 5 insertions(+), 5 deletions(-) rename poclbm.cl => poclbm110717.cl (100%) diff --git a/Makefile.am b/Makefile.am index 9f7dcc9b..9858ee8e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 diff --git a/ocl.c b/ocl.c index b3ccaeaa..427ef134 100644 --- a/ocl.c +++ b/ocl.c @@ -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) 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); diff --git a/poclbm.cl b/poclbm110717.cl similarity index 100% rename from poclbm.cl rename to poclbm110717.cl