when trying to run computeprof with the OpenCL SDK examples. The CUDA examples on the other hand work flawlessly. Running the OpenCL examples in the terminal by setting the environment variables CUDA_PROFILE=1; CUDA_PROFILE_CSV=1 does not provide any output file, while it does with the CUDA examples.
My setup:
Mac Os X 10.6.4 (Processor: 2.4 Ghz Intel Core 2 Duo / Memory: 4GB 1067 MHz DDR3 / Graphics: NVIDIA GeForce 9400M)
On MacOS, the only OpenCL platform I know of is Apple’s, so despite it has surely been developed in cooperation with NVIDIA, this is not the same NVIDIA OpenCL implementation as on Linux or Win. I’d be glad to hear something else, but personally I never got computeprof + OpenCL working on MacOS.
From what I read, one should use OPENCL_PROFILE=1 or better COMPUTE_PROFILE=1 now, but I’m not sure if it really makes a difference. Another common problem is that people forget to release their OpenCL objects explicitly - only then a log file is written.
I thank you for your quick response. I reviewed my code and didn’t found any recources that where not released. To be sure I have also tried to profile the example applications (oclDotProduct and oclBandwidthTest) ut I still get the same results. I tried a lot of combinations of the environment variables by setting them in the Visual Profiler Application (is this the same as from commandline?).