gpgpu - OpenCL: Prevent kernel caching -
i'm making first steps opencl , have problem. i'm using nvidia opencl lib gt540m graphics card.
now seems kernel gets cached after compiling , not recompiled when changes kernel. test i'm writing values output buffer when change these values in kernel output remains same.
how can prevent behaviour?
thanks lot. greetings robin
void enable_cuda_build_cache(bool enable) { #ifdef _msc_ver if (enable) _putenv("cuda_cache_disable=0"); else _putenv("cuda_cache_disable=1"); #else // gcc if (enable) putenv("cuda_cache_disable=0"); else putenv("cuda_cache_disable=1"); #endif } to disable cache call: enable_cuda_build_cache(false);
Comments
Post a Comment