Listing preprocessor defines

Listing preprocessor defines

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).

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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

Leave a Comment

Please sign in to add a comment. Not a member? Join today