Intel® C++ Compiler

Intel Composer 2015 will throw a Segmentation fault when installed to a docker container

Intel Composer 2015 will throw a Segmentation fault when installed to a docker container. Steps to reproduce (using ubuntu as a host): mkdir data cd data wget http://registrationcenter-download.intel.com/akdlm/irc_nas/4933/l_compxe... tar xvzf l_compxe_2015.1.133.tgz docker run -i -t -v `pwd`:/data ubuntu /bin/bash data/l_compxe_2015.1.133/install.sh # This step will throw segfault ############################## root@8d5781f9642a:/# sh -x data/l_compxe_2015.1.133/install.sh ......

Cache, row major and column major

I've been testing the differences of time it takes to sum the element of a matrix in row major order

std::vector<double> v( n * n );

// Timing begins
double sum{ 0.0 };
for (std::size_t i = 0; i < n; i++) {
    for (std::size_t j = 0; j < n; j++) {
        sum += v[i * n + j];
    }
}
// Timing ends

and in column major order

Bug in icc 2015.1.148???

My code:

#include <stdio.h>

int dd, dm, dy, i;
char s[32], d[5];
FILE *file;

int main() {

  file = fopen("d.txt", "r");

  for(i=0; i<5; i++) {

    fgets(s, 30, file);

    d[0]=s[0];
    d[1]=s[1];
    d[2]=0;
    dd=atoi(d);

    d[0]=s[3];
    d[1]=s[4];
    d[2]=0;
    dm=atoi(d);

    d[0]=s[6];
    d[1]=s[7];
    d[2]=s[8];
    d[3]=s[9];
    d[4]=0;
    dy=atoi(d);

    printf("%i %i %i %s", dd, dm, dy, s);

SSA not generating results file

I am trying to run the SSA (2013) on a project of ours  in VS 2010. When I build for static analysis the build completes but I do not get a results file. I do have some link warnings (see below):

1>message.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
1>library.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library

bug: -fast -msse does not warn

$ icc -xHost -msse
icc: command line warning #10120: overriding '-xHost' with '-msse'
icc: command line error: no files specified; for help type "icc -help"
$ icc -fast -msse
icc: command line error: no files specified; for help type "icc -help"

Because -fast is short for -xHost and some other options, it should also warn that -msse overrides.

icpc: error #10106: Fatal error in /opt/intel/composer_xe_2015.1.133/bin/intel64/mcpcom, terminated by floating point exception

Translation unit produced when compiling Firefox:

$ icpc -std=c++11 -w0 -O3 -c icpc-sig136.ii
icpc: error #10106: Fatal error in /opt/intel/composer_xe_2015.1.133/bin/intel64/mcpcom, terminated by floating point exception
compilation aborted for icpc-sig136.ii (code 1)

Works fine with -O2 instead of -O3. Preprocessed translation unit (gzipped) attached.

S’abonner à Intel® C++ Compiler