- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I met an error when I try to compile my code. The error is:
": internal error: ** The compiler has encountered an unexpected problem.
** Segmentation violation signal raised. **
Access violation or stack overflow. Please contact Intel Support for assistance.
compilation aborted for a.cpp (code 4)
This is the command I used:
icpc -qopenmp -g -o a.cpp.o -c a.cpp
icpc --version
icpc (ICC) 19.1.0.166 20191121
Copyright (C) 1985-2019 Intel Corporation. All rights reserved.
Here is my code of a.cpp:
namespace AAAA {
void setP(int n) {
return;
}
class TEST {
public:
void f();
};
void TEST::f(){
int i, n = 0;
int* pts[8];
#pragma omp parallel for default (shared) private(i, pts)
for(i=0;i<10000;i++)
{
#pragma omp critical
{
try{ setP(n);}
catch (...){
}
}
}
}
}
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is another crash situation. This one happens on windows 64 bit with visual studio 2019 and Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.1.0.166 Build 20191121.
The command is:
"C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020\windows\bin\Intel64\icl.exe" /c /Qm64 /nologo /W3 /MP /O2 /Ob2 /D NDEBUG /D _WINDLL /D _MBCS /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /GR /Fo"Release\\" /Fd"Release\vc142.pdb" /TP -Qopenmp intel_window_fail.cpp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for reaching out to us.
Could you please try using icpx compiler instead of icpc compiler
Meanwhile we will look into this issue internally. we will get back to you soon.
Regards,
Vidya.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
On Intel compiler 2020.0.166, icpx works. But if I use 2020.4.304, it failed with:
clang++: error: unsupported option '-qopenmp'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you add either -O1, -O2 or -O3 as a workaround for Linux case and use /Od for Windows case?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not sure if you removed /O2 and /Ob2 on Windows.
and icx.exe should work for your Windows case too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, something is wrong with that version. Can you use other versions?
$ icpx -fopenmp -g -c a.cpp
$ icpx -qopenmp -g -c a.cpp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you confirm icpx worked for your case? We would like to close this thread if icpx compiles it.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please let us know if icpx works for you. We would like to close this thread.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not sure if you already knew, but Intel Classic Compiler will enter "Legacy Product Support" mode, signaling the end of regular updates. Please refer to the article bellow for more details.
For that reason, Developer isn't plan to to fix this in Classic compiler. Can you migrate to icx/icpx?
We are going to close this case. If you have any questions/concerns, please create a new thread.
Thanks,
Viet
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page