clray

diff src/ocl.cc @ 43:f9eec11e5acc

shoehorned the kdtree into an opnecl image and improved performance slightly
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 28 Aug 2010 09:38:49 +0100
parents 1169f3d04135
children 8047637961a2
line diff
     1.1 --- a/src/ocl.cc	Sat Aug 28 02:01:16 2010 +0100
     1.2 +++ b/src/ocl.cc	Sat Aug 28 09:38:49 2010 +0100
     1.3 @@ -503,7 +503,9 @@
     1.4  {
     1.5  	int err;
     1.6  
     1.7 -	if((err = clBuildProgram(prog, 0, 0, "-cl-mad-enable", 0, 0)) != 0) {
     1.8 +	const char *opt = "-cl-mad-enable -cl-single-precision-constant -cl-fast-relaxed-math";
     1.9 +
    1.10 +	if((err = clBuildProgram(prog, 0, 0, opt, 0, 0)) != 0) {
    1.11  		size_t sz;
    1.12  		clGetProgramBuildInfo(prog, devinf.id, CL_PROGRAM_BUILD_LOG, 0, 0, &sz);
    1.13