- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm using gmp (https://gmplib.org/) for a project. With c++11 enabled AND using offload to mic, compilation gives me an internal error. I attached a small example for demonstration
$icpc -fopenmp -std=c++11 -wd3218 -I. -o device_nr.o -c device_nr.cpp ./gmpxx.h(1927) (col. 18): internal error: assertion failed at: "shared/cfe/edgcpfe/il_to_str.c", line 6593 compilation aborted for device_nr.cpp (code 4)
The example itself is not important, the relevant part is
#pragma offload_attribute (push,target(mic)) #include <gmpxx.h> #pragma offload_attribute (pop)
The error is then triggered by this line in gmpxx.h
inline mpz_class operator"" _mpz(const char* s)
(which is only active with c++11 enabled). Compilation on the host is no problem, it only happens compilation for mic.
Is this an compile bug?
EDIT: I'm using icpc (ICC) 15.0.0 20140723
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, this is in a compiler bug. Any internal error whether source is correct or not should not trigger an internal error. I will try reproducing this and post an update shortly. Thank you for isolating and reporting this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I submitted this to Development (see internal tracking id below) for further analysis and repair. I was unable to find a work around but requested Development's advice/help with that and I will pass that along if something is available.
(Internal tracking id: DPD200364017)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the feedback. For now I can comment out the code in the gmpxx header as I don't use this part.

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