Cannot compile OpenCL applications
Bug #989439 reported by
epii
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/
In file included from /usr/include/
/usr/include/
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/
which is not included in the current gcc.
To post a comment you must log in.
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.