Cycles: reenable opencl binary caching on mac, it's not the cause of the problem.

This commit is contained in:
Brecht Van Lommel
2011-09-16 10:29:30 +00:00
parent 5f13b52c67
commit 28cb4cb957

View File

@@ -353,23 +353,19 @@ public:
string clbin = string_printf("cycles_kernel_%s_%s.clbin", device_md5.c_str(), kernel_md5.c_str());; string clbin = string_printf("cycles_kernel_%s_%s.clbin", device_md5.c_str(), kernel_md5.c_str());;
clbin = path_user_get(path_join("cache", clbin)); clbin = path_user_get(path_join("cache", clbin));
#ifndef __APPLE__
if(path_exists(clbin)) { if(path_exists(clbin)) {
/* if exists already, try use it */ /* if exists already, try use it */
if(!load_binary(kernel_path, clbin)) if(!load_binary(kernel_path, clbin))
return false; return false;
} }
else { else {
#endif
/* compile kernel */ /* compile kernel */
if(!compile_kernel(kernel_path, kernel_md5)) if(!compile_kernel(kernel_path, kernel_md5))
return false; return false;
#ifndef __APPLE__
/* save binary for reuse */ /* save binary for reuse */
save_binary(clbin); save_binary(clbin);
} }
#endif
/* find kernels */ /* find kernels */
ckPathTraceKernel = clCreateKernel(cpProgram, "kernel_ocl_path_trace", &ciErr); ckPathTraceKernel = clCreateKernel(cpProgram, "kernel_ocl_path_trace", &ciErr);