Intel® C++ Compiler

C++ and Fortran linking

Hello,

I'm trying to link C++ and fortran prorgam together, but I get the following error

/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start':

(.text+0x20): undefined reference to `main'

The main program is fortran, calling a C routine. The linking must be done using C compiler (Because in my work I'm in fact compiling with nvcc (nvidia compiler for cuda) and the linking then can not be done using fortran compiler). I didn't find on the web anything that worked.

Integration between Intel® System Studio Professional Edition and Microsoft Visual Studio

I have installed on both of my computers Microsoft Visual Studio Ultimate 2013 Version 12.0.40629.00 Update 5 and Microsoft Visual Studio Community 2015 Version 14.0.25431.01 Update 3. I have also installed Intel® System Studio Professional Edition Version 2017 Update 1 twice, first time using system_studio_2017.1.045_online.exe and after using system_studio_2017.1.045.exe. In both times and on both of my computers, I could not use Intel C++ Compiler inside both version of Microsoft Visual Studio (MVS).

False positive: warning #1125: function ${A} is hidden by function ${B}

struct A {
 private:
  virtual void foo() {}  // Side-info: template-method pattern in the real code.
};

struct B : public A {
 private:
  void foo(int) {}
};

The warning is stating that A::foo is hidden by B::foo.

A::foo() is private and cannot be called from B, anyway.

The warning does not happen if A::foo is not virtual.

The compiler version is icpc (ICC) 17.0.1 20161005.

Error compiling with Visual Studio 2015 Update 3 and Intel C++ Compiler 17.0

When trying to compile any project with the Intel C++ compiler 17.0, I get 100 compilation errors before the compilation aborts. I have not found any other topic describing the same problems, has anyone experienced the same and fixed it somehow? I have gotten these errors since the release of VS2015 Update 3, on compiler versions 17.0, 17.0.1 and 17.0.2. I hoped the newer version would have fixed it, but sadly, it hasn't.

lambda capture [this]

EDIT: Please disregard this post. JD

V 17.0.132 Build 20161005

I am doing some template meta functions, and have made great progress.... up until now.

I have an object (struct), with a member function. I wish to construct a lambda capture of either:

auto x = [=]() { this->memvar = 0; };
auto x = [this]() { memvar = 0; };

In both cases, the this pointer is corrupted.

I've also tried, with no success:

myType* This = this;
auto x = [&]() { This->memvar = 0; };
auto x = [=]() { This->memvar = 0; };

"xilink.exe" exited with code -1073741515

I cannot link any Intel Compiler 17.0 Update 2 library Targets in Visual Studio 2015

Both static and dynamic libs fail with the following error

"xilink.exe" exited with code -1073741515

 

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\Intel C++ Compiler 17.0\Toolset.targets(1108,5): error MSB6006: "xilink.exe" exited with code -1073741515.

 

OpenMP detects only a single core on multi-socket/multi-core system

I program in C++ and uses MPI/OpenMP for parallelization. The machine has 2 CPU sockets and 8 cores per each socket.
The program additionally uses c++11 threads. Their affinity is controlled by 'pthread_setaffinity_np' calls.

I compile with intel compiler (16.0.1), I set the following environment variables

export I_MPI_PERHOST=1
export I_MPI_FABRICS=tcp
export I_MPI_FALLBACK=0
export I_MPI_PIN=1
export I_MPI_PIN_DOMAIN=node
export OMP_NUM_THREADS=16
export KMP_AFFINITY=verbose,scatter

NaN boxing

Hi,

 

 

 

 

 

I am designing a class called Dynamic that can store many different types: a null, a boolean, a 48-bit signed integer, a 64-bit floating point, or a pointer to one of a few defined types. This object contains only one data member: a double.

Subscribe to Intel® C++ Compiler