Cannot compile OpenCL applications

Bug #989439 reported by epii
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
NVIDIA Drivers Ubuntu
New
Undecided
Unassigned

Bug Description

I tried to compile an OpenCL application, but gcc exited with the following error message:

$ gcc -I/usr/include/nvidia-current -march=native test.c
In file included from /usr/include/nvidia-current/CL/cl.h:32:0,
                 from test.c:8:
/usr/include/nvidia-current/CL/cl_platform.h:318:28: fatal error: gmmintrin.h: No such file or directory
compilation terminated.

I'm using Intel Core i7-2600 CPU, so -march=native flag enables intel AVX feature and
NVIDIA's OpenCL header file(CL/cl_platform.h) tries to include gmmintrin.h header file,
which is not included in the current gcc.

Revision history for this message
Vasco Alexandre da Silva Costa (vasco-costa) wrote :

I had the same issue. The NVIDIA header file is borked. Replace this line in '/usr/include/nvidia-current/CL/cl_platform.h':
    #include <gmmintrin.h>

With this line:
    #include <immintrin.h>

Everything should compile fine again.

Revision history for this message
Vasco Alexandre da Silva Costa (vasco-costa) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.