Questions tagged [icc]

ICC is Intel's C++ compiler, actually a group of C/C++ compilers that are available for Windows, Linux, and MacOS. This tag should be for questions about using ICC, and you should consider including the [C++] and possibly an Operating System specific tag as well.

The Intel C++ Compiler (ICC) compiles code for 64-bit applications for Windows, Linux, and MacOS. 32-bit applications are only supported on MacOS prior to compiler version 19.0. It can be used with Microsoft Visual Studio (on Windows), Eclipse/CDE (on Linux), or XCode (on MacOS).

The generated code is optimized to run specifically on Intel CPUs. This can sometimes be non-optimal on CPUs from other companies.

Intel's ICC documentation.

743 questions
-1
votes
2 answers

A int[2²⁰] array cause OpenMP Segmentation Fault

I have an int flags[(1<<20)]; array and it seems that there's something wrong, and it causes segmentation fault. Is this a stack overflow problem? How much should I set stack size and how?
-1
votes
1 answer

Compiling C++ code on Linux. Need to use intel/icpc compiler. Error: "multiple definitions" related to inerited class

I am trying to compile a large C++ code (there are a few C files too) on a Linux cluster, having run it for some time on a Mac compiled with g++. On the cluster, I have to use either gcc/4.7.2 or intel/icpc (there is other software on the cluster…
Ant
  • 753
  • 1
  • 9
  • 24
-1
votes
1 answer

int128 on Linux for Intel compiler

Linux 2.6.32 Intel compiler: icpc version 13.0.1 (gcc version 4.4.6 compatibility) #include #include int main() { std::cerr << sizeof (__uint128_t) << std::endl; return 0; } Output: 16 So, type __uint128_t…
Alex
  • 133
  • 1
  • 10
-2
votes
1 answer

Intel compiler 17.0 with gcc 7.1/8.1

/opt/intel/compilers_and_libraries_2017.2.174/linux/bin/intel64/icpc -I/home/usermy/.conan/data/toolchain/1.0.5-g0a9b008/demo/test/package/c62a7e8ca4353a55148d1aa65d313056ef6659b2/include…
themagicalyang
  • 2,493
  • 14
  • 21
-2
votes
1 answer

How to access vector class array methods in c++

class Bird{ public: void init(); Bird();//constructor void foo();//its defined somewhere }; int _tmain(int argc, _TCHAR* argv[]) { std::vector B[51]; for (int i = 0; i < 51; i++) B[i].foo(); } it seems vector…
Zen Of Kursat
  • 2,672
  • 1
  • 31
  • 47
-2
votes
2 answers

OMP Serial vs Parallel Riemann Zeta

i've been trying to learn how to use OpenMP for c++ and i'm having a huge headache trying to apply it to a code that uses the Riemann Zeta function, i only found it this way(in the code), but if you run it you will see that the serial process is way…
Alexandre Pedrecal
  • 117
  • 1
  • 2
  • 10
-2
votes
1 answer

Does the latest intel c++ compiler support implicit move constructor and move assignment?

The latest intel C++ compiler is 14.0.1.139 or in intel parallel studio xe 2013 sp1 update 1. I am wondering if it supports implicit move constructor and move assignment. I tested it the following code, it doesn't seem to work. The related article…
user1899020
  • 13,167
  • 21
  • 79
  • 154
-2
votes
1 answer

std::unordered_map not compiling with icc

Like the title says, unordered_map isn't compiling for me. I get an error saying "error: namespace "std" has no member "unordered_map"" I'm compiling with this command icc test.cpp -std=c++0x This is the program I'm trying to compile: #include…
1 2 3
49
50