From 1c1b8bec9a8ed86b96280d2de3e0b40f0506a4a6 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 11 Feb 2012 15:58:07 +1100 Subject: [PATCH] BFI INT patching is not necessarily true on binary loading of files and not true on ATI SDK2.6+. Report bitalign instead. --- ocl.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ocl.c b/ocl.c index 1cbb0fa6..8ef4d954 100644 --- a/ocl.c +++ b/ocl.c @@ -466,11 +466,6 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize) if (opt_debug) applog(LOG_DEBUG, "Loaded binary image %s", binaryfilename); - /* We don't need to patch this already loaded image, but need to - * set the flag for status later */ - if (clState->hasBitAlign) - patchbfi = true; - free(binaries[gpu]); goto built; } @@ -647,8 +642,8 @@ built: free(binaries); free(binary_sizes); - applog(LOG_INFO, "Initialising kernel %s with%s BFI_INT, %d vectors and worksize %d", - filename, patchbfi ? "" : "out", clState->preferred_vwidth, clState->work_size); + applog(LOG_INFO, "Initialising kernel %s with%s bitalign, %d vectors and worksize %d", + filename, clState->hasBitAlign ? "" : "out", clState->preferred_vwidth, clState->work_size); if (!prog_built) { /* create a cl program executable for all the devices specified */