Unable to use std::complex
I am unable to compile the following snippet that uses std::complex, getting the error "qualified name is not allowed". The version of the compiler (15.0.6) seems pretty up to date and compatible with...
View Articleicc (ICC) 17.0.1 20161005 creates much larger and slow executable than gcc
If I compile plain C code using icc 17.0.1, it creates executable (if stripped) of 105k size, while the gcc (6.3.0 and 4.8.5) creates 8k size executable. The executable compiled with icc is also about...
View ArticleAVX best performance min function with usigned char
Hi everybody and thanks for your help!I have this piece of code :unsigned char A,B,C; // init A,B,C with mm_malloc, 64 bit aligned for(j=0;j<size;j++) C[j] = fminf(255,255-(A[j]*B[j]));Considering...
View ArticleCrash by vector destructor if used with range based for loop
Hello,I have a problem with vector destructor if I use it with range based for loop.Sample code to reproduce this issue:#include <vector> class foo { public: void bar(const...
View Article#pragma warning( disable: 46 ) does not disable
Compiling using Parallel Studio 2017 on Windows 10, VS 2015 community edition #ifdef WIN32 #pragma warning( push, 46 ) #pragma warning( disable: 46 ) #define _Pragma(text) __pragma(text) //...
View ArticleIntel C++ Compiler 16.0 OpenMP initialization of thread local static member...
Hi,it appears that on Windows thread local storage (TLS) static members in template classes do not get initialized properly in worker threads.Here is a (maybe not so minimal) reproducing...
View ArticleICC ignoring all linker information
Dear Intel forum, I am using the icc 17.0.1 for compile several ccp codes onto object then linker on a executable. Some odd thing is happening, if i use the follow lines to linker to a executable...
View Articleerror #31001: The dll for reading and writing the pdb (for example,...
Hi everyone,I recently upgraded my Intel Composer version (2016 -> 2017 update 1) and cannot compile my program anymore in 32bit mode. I get this error :"error #31001: The dll for reading and...
View ArticleInheriting an explicit constuctor
Intel C++ compiler (Version 16.0.3.207 Build 20160415) seems to drop the explicit specifier when the constructor of the base class is inherited with using.struct B { explicit B(int) { } }; struct D : B...
View ArticleEquivalent of "gcc -Q --help=target"
Intel documentation indicates that the optimization parameters used with -O3 can change between versions of the compiler. I would like to evaluate the difference in optimizations between v16.3 and v17....
View ArticleIntel compiler chokes on template instantiation
I have written code that compiles fine on GCC 6.2, clang 3.9, and MSVS 2015 (the C++ build tools version).It's available on github:https://www.github.com/rubenvb/skuiBuild with the following define to...
View Articleicpc (17.0.1.132) slow when invoking multiple icpc processes
When we use a single icpc process and perform "icpc -V", the command usually finishes in about 1 - 1.5 seconds. When we use multiple icpc processes, something appears to serialize. For example, if we...
View ArticleOMP_WAIT_POLICY and KMP_BLOCKTIME
I had assumed that the Intel OpenMP Runtime library would respect OMP_WAIT_POLICY, and further I assumed thatOMP_WAIT_POLICY=passivewould be the same as KMP_BLOCKTIME=0. I think this is a wrong...
View ArticleThread pinning with OpenMP
Hi,I need to make scaling graphs for an OpenMP application.My machine is a Dual-Xeon (14 cores per Xeon), with hyper-threading. I would like to place threads using the OpenMP 4 standard, so using...
View ArticleStatic library created with icpc, cannot use it using g++
The objects in the library are compiled as follows:icpc -c -fPIC -Wno-unused-function -Wall -pthread -static-intel -O3 -axCORE-AVX2 -fma -fp-model fast=2 -funroll-all-loops -unroll-aggressive...
View ArticleBenchmark tips
Hi, I need to make some benchmark on a Dual-Xeon and on a KNL. When doing the benchmark, I would like to get a time and an estimation of the error. For that, I run 10 benchmarks of the same program in...
View Article17.0 update 1: link break with /Quse-intel-optimized-headers
Hi, I've a project which builds and runs fine using VC's headers. Changing over to Intel optimized headers compiles without issue but fails at link time with LINK : fatal error LNK1104: cannot open...
View ArticleMisleading error message (from declaring a friend function)
Hello, the icpc returns on the following code an error: 'error: "a" has already been declared in the current scope ', which is misleading as the error can be solved by declaring the function (like in...
View ArticleLinking libimf.a statically
How do I statically link libimf using GCC compiler. I have a simple program that I want to statically link with Libimf#include <stdio.h> #include <math.h> int main(){ int c=0; float k...
View ArticleC++11 support issue - memory_order_release is undefined
Dear Sir, I am trying to compile a code , and i am getting an error:- icc -c -O2 -lpthread -xHOST -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=200112 -std=c11 -fno-strict-aliasing load.c load.c(277): warning...
View Article