I’m having troubles with the OpenCL Header in CUDA Toolkit 3.2 RC and the Intel Compiler (ICC) 11.1 64bit. Just including cl.h leeds to following error during compilation of that source file:
— begin —
/opt/cuda/include/CL/cl_platform.h(358): error: invalid attribute for “__cl_float2={float}”
typedef cl_float __cl_float2 attribute((vector_size(8)));
— end —
If I use the g++ there are no problems but in the release notes is written that ICC 11.1 is supported by CUDA toolkit 3.2.
Looks like you are really desperate. The issue is Intel related. You can take cl_platform.h distributed by AMD in their streaming SDK and replace the one provided by NVIDIA - they included define to handle explicitly Intel compiler.
Looks like you are really desperate. The issue is Intel related. You can take cl_platform.h distributed by AMD in their streaming SDK and replace the one provided by NVIDIA - they included define to handle explicitly Intel compiler.