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 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

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

Accedere per lasciare un commento.