From 4ac78c89269138b4623993f9f1d81829d8e88131 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Tue, 20 Jan 2015 21:26:46 +0000
Subject: [PATCH] I am so done with opencl, switching to cuda
---
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