- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
When trying to compile a very simple OpenCL kernel.cl on a MIC device, I get the following error: LLVM ERROR: Non implemented constant type
Apparently, the source of the problem is the static array:
__constant _Complex double lookupTable_ipow_pos[4] = { 1, I, -1,-I };
The compilation of the same kernel and the execution on a CPU Xeon device works perfectly.
If I use double or int instead of _Complex double, it also compiles and runs fine, so this LLVM error is triggered exclusively by the _Complex double and the MIC device.
This is the kernel.cl:
#include <complex.h> #include "ipown.h" void kernel simple_add(global const _Complex double * A, global const _Complex double* B, global _Complex double* C){ C[get_global_id(0)]=A[get_global_id(0)]+B[get_global_id(0)] + ipown(get_global_id(0)); }
And this is ipown.h:
__constant _Complex double lookupTable_ipow_pos[4] = { 1, I, -1,-I }; inline _Complex double ipown( int n ) { return lookupTable_ipow_pos[ n % 4 ]; }
Anyone is familiar with this issue?
Thanks in advance.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Which version of runtime are you using, and which Xeon Phi family?
Xeon Phi is only supported in the deprecated 14.2 runtime package (more info on the OpenCL driver page here). This runtime package only supports the x100 family (Knights Corner).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I understand correctly, no OpenCL Phi support anymore?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, Xeon Phi OpenCL support is deprecated. You can still download the runtime package but it is no longer maintained/updated and it doesn't support newer Xeon Phi hardware.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page