gudge
gudge

Reputation: 1083

Offline compilation for AMD and NVIDIA OpenCL Kernels without cards installed

I was trying to figure out a way to perform offline compilation of OpenCL kernels without installing Graphics cards. I have installed the SDK's.

Does anyone has any experience with compiling OpenCL Kernels without having the graphics cards installed for both any one of them NVIDIA or AMD.

I had asked a similar question on AMD forums 
(http://devgurus.amd.com/message/1284379). 
NVIDIA forums for long are in accessible so couldn't get any help from there. 

Thanks

Upvotes: 1

Views: 2892

Answers (2)

Erik Smistad
Erik Smistad

Reputation: 1019

AMD has an OpenCL extension for compiling binaries for devices that are not present on the system. The extension is called cl_amd_offline_devices. Pass the property CL_CONTEXT_OFFLINE_DEVICES_AMD when creating a context and all of AMDs supported devices are reported and can be used to create binaries as if they were present on the system.

Check out their OpenCL programming guide at http://developer.amd.com/tools/hc/AMDAPPSDK/assets/AMD_Accelerated_Parallel_Processing_OpenCL_Programming_Guide.pdf for more info

Upvotes: 4

lashgar
lashgar

Reputation: 5470

No need to graphic card, you can compile OpenCL programs for CPU too. If you have Intel or AMD CPU this idea works. Download latest OpenCL SDK from corresponding manufacturer website and compile OpenCL program: Intel OpenCL SDK AMD APP

Upvotes: -1

Related Questions