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

#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

color diagnostics in icc?

Is there a way to enable color diagnostics in icc like the one available in gcc 4.9 and later or...

View Article


C++11 issue: compile fail. Probably a Bug

The following code returns error on compiling with intel 2016.1.056, on Linux.#include <chrono> #include <map> #include <memory> #include <thread> #include <utility> int...

View Article

Optimization miss with __builtin_expect

The following codeint foo(int a, int b) { do { a *= 77; } while (b-- > 0); return a * 77; }gets perfectly optimised into foo(int, int): ..B1.2: # Preds ..B1.2 ..B1.1 imul edi, edi, 77 #4.6 dec esi...

View Article

Anyone tried to compile 7-zip 16.04 under Win?

guide would be great

View Article
Browsing all 2797 articles
Browse latest View live


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