3 Replies Latest reply on Mar 2, 2011 2:46 PM by MicahVillmow

    Enable extensions based on platform


      And I have yet another question.


      I am cross compiling/running my code on both AMD and Nvidia hardware. And I have an annoyance. On AMD 64bit is enabled by cl_amd_fp64, and on Nvidia it is enabled using cl_khr_fp64.

      Are there any defines that allow me to know which vendor I am using? I noticed on the Khronos site, they have some files that use __APPLE__ to identify apple products.

      Are there things like __AMD__ or __NVIDIA__?

      Right now, I have to remember to edit each kernel file manually and comment out one of the extension enables