From 5d23d70f685076e556179b856e337d6a2d91bd21 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 22 Feb 2012 14:14:26 +1100 Subject: [PATCH] As all kernels will be new versions it's an opportunity to change the .bin format and make it simpler. Specifying bitalign is redundant and long can be l. --- ocl.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ocl.c b/ocl.c index 4acde58c..833c7f1e 100644 --- a/ocl.c +++ b/ocl.c @@ -357,7 +357,7 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize) /* Create binary filename based on parameters passed to opencl * compiler to ensure we only load a binary that matches what would * have otherwise created. The filename is: - * name + kernelname +/i bitalign + v + vectors + w + work_size + sizeof(long) + .bin + * name + kernelname + v + vectors + w + work_size + l + sizeof(long) + .bin */ char binaryfilename[255]; char filename[255]; @@ -425,17 +425,13 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize) return NULL; } - strcat(binaryfilename, name); - if (clState->hasBitAlign) - strcat(binaryfilename, "bitalign"); - strcat(binaryfilename, "v"); sprintf(numbuf, "%d", clState->preferred_vwidth); strcat(binaryfilename, numbuf); strcat(binaryfilename, "w"); sprintf(numbuf, "%d", (int)clState->work_size); strcat(binaryfilename, numbuf); - strcat(binaryfilename, "long"); + strcat(binaryfilename, "l"); sprintf(numbuf, "%d", (int)sizeof(long)); strcat(binaryfilename, numbuf); strcat(binaryfilename, ".bin");