OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1663 Discussions

Listing preprocessor defines

Benjamin_Karl_B_
Beginner
140 Views
Anyone know if it's possible to list what the Intel OpenCL C compiler defines for preprocessing? I'm looking for something like __INTEL__ (this doesn't seem to be defined).
0 Kudos
1 Reply
Guy_B_Intel
Employee
140 Views

Hi,

Thanks for your post.

In the current Intel OpenCL SDK there is no pre-defined macro that helps the user identify that he runs on an Intel platform. I'll check this request, and we might add a macro like that in the future.

In the meantime, you might solve this issue by using the clGetPlatformInfo API to query the OpenCL runtime for the platform name, and then passing a macro of your choice by using the "-D" build option.

Thanks

Guy Benyei

Reply