clray

diff src/ocl.cc @ 45:8047637961a2

fixed the issue of hitting maximum vertical image sizes for large kdtrees
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 29 Aug 2010 04:20:42 +0100
parents f9eec11e5acc
children 8c858e1a89e8
line diff
     1.1 --- a/src/ocl.cc	Sat Aug 28 21:50:17 2010 +0100
     1.2 +++ b/src/ocl.cc	Sun Aug 29 04:20:42 2010 +0100
     1.3 @@ -61,8 +61,6 @@
     1.4  		return false;
     1.5  	}
     1.6  
     1.7 -
     1.8 -
     1.9  #ifndef CLGL_INTEROP
    1.10  	cl_context_properties *prop = 0;
    1.11  #else
    1.12 @@ -499,12 +497,9 @@
    1.13  	return num_args;
    1.14  }
    1.15  
    1.16 -bool CLProgram::build()
    1.17 +bool CLProgram::build(const char *opt)
    1.18  {
    1.19  	int err;
    1.20 -
    1.21 -	const char *opt = "-cl-mad-enable -cl-single-precision-constant -cl-fast-relaxed-math";
    1.22 -
    1.23  	if((err = clBuildProgram(prog, 0, 0, opt, 0, 0)) != 0) {
    1.24  		size_t sz;
    1.25  		clGetProgramBuildInfo(prog, devinf.id, CL_PROGRAM_BUILD_LOG, 0, 0, &sz);