Is there an Occupancy Calculator for OpenCL?

Is there an Occupancy Calculator for OpenCL like the one for CUDA?

thanks
eyal

You may want to take a look at section 4.2 “Calculating Occupancy” in the OpenCL Best Practices Guide: In fact you can use the CUDA calculator spreadsheet, or the Compute Visual Profiler (which will show you the occupancy for you kernels).

Yes but in CUDA I can get the resource usage when compiling the .cu file using the -v option to nvcc.

Is there an equiv in OpenCL or I should run the OpenCL visual profiler to get the occupancy??

Can I get the numbers in compile time?

thanks

eyal

Just use -cl-nv-verbose option on clBuildProgram. Get the register usage for your kernel.

http://developer.download.nvidia.com/compute/cuda/3_2_prod/toolkit/docs/OpenCL_Extensions/cl_nv_compiler_options.txt