Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Browsing all 1175 articles
Browse latest View live

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 Article


icc (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 Article


AVX 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 Article

Crash 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 Article


Intel 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 Article

ICC 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 Article

error #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 Article


Inheriting 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 Article


Equivalent 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 Article

Intel 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 Article

icpc (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 Article

OMP_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 Article


Thread 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 Article

Static 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 Article


Benchmark 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 Article

Image may be NSFW.
Clik here to view.

17.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 Article


Misleading 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 Article

Linking 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 Article

Image may be NSFW.
Clik here to view.

C++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
Browsing all 1175 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>