From 6e1d5b45de988bb795c4c505f22f2170a78b7746 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Tue, 20 Jan 2015 06:06:18 +0000
Subject: [PATCH] fast sort of working

---
 src/opencl.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/opencl.c b/src/opencl.c
index cff4d0e..8b693db 100644
--- a/src/opencl.c
+++ b/src/opencl.c
@@ -132,11 +132,11 @@
     char build_c[1024*64];
     // and compile it (after this we could extract the compiled version)
     info.error=clBuildProgram(prog, 0, 0, options, 0, 0);
-    if ( info.error != CL_SUCCESS ) {
+    //if ( info.error != CL_SUCCESS ) {
         fprintf(stderr, "Error Building Program: %d\n", info.error);
         clGetProgramBuildInfo( prog, info.device, CL_PROGRAM_BUILD_LOG, 1024*64, build_c, 0);
         fprintf(stderr, "Build Log for %s program:\n%s\n", filename, build_c);
-    }
+    //}
     check_error(info);
     return prog;
 }
@@ -205,7 +205,7 @@
             CL_MEM_READ_WRITE|CL_MEM_COPY_HOST_PTR,
             sizeof(float)*n, x, &cl.error);
     check_error(cl);
-    activate_array_ongpu(mem, n, LINEAR);
+    //activate_array_ongpu(mem, n, LINEAR);
     return mem;
 }
 

--
Gitblit v1.10.0