Page 1 of 1

installing intel composer 2011

Posted: Thu Mar 15, 2012 3:12 pm
by quantum
Hi,

I just finished installing parallel_studio_xe_2011_sp1_update2_intel64 on Ubuntu 11.10 without error.

I tried to compile stockfish and received the following.

Code: Select all

tobias@brutus:~$ cd Downloads/mcostalba-Stockfish-9934b8e/src/
tobias@brutus:~/Downloads/mcostalba-Stockfish-9934b8e/src$ make build ARCH=x86-64 COMP=icc
make ARCH=x86-64 COMP=icc config-sanity
make[1]: Entering directory `/home/tobias/Downloads/mcostalba-Stockfish-9934b8e/src'

Config:
debug: 'no'
optimize: 'yes'
arch: 'x86_64'
os: 'any'
bits: '64'
bigendian: 'no'
prefetch: 'yes'
bsfq: 'yes'
popcnt: 'no'

Flags:
CXX: icpc
CXXFLAGS: -g -Wall -Wcast-qual -fno-exceptions -fno-rtti  -wd383,981,1418,1419,10187,10188,11505,11503 -Wcheck -Wabi -Wdeprecated -strict-ansi -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ
LDFLAGS:  -lpthread

Testing config sanity. If this fails, try 'make help' ...

make[1]: Leaving directory `/home/tobias/Downloads/mcostalba-Stockfish-9934b8e/src'
make ARCH=x86-64 COMP=icc all
make[1]: Entering directory `/home/tobias/Downloads/mcostalba-Stockfish-9934b8e/src'
icpc -g -Wall -Wcast-qual -fno-exceptions -fno-rtti  -wd383,981,1418,1419,10187,10188,11505,11503 -Wcheck -Wabi -Wdeprecated -strict-ansi -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ   -c -o benchmark.o benchmark.cpp
make[1]: icpc: Command not found
make[1]: *** [benchmark.o] Error 127
make[1]: Leaving directory `/home/tobias/Downloads/mcostalba-Stockfish-9934b8e/src'
make: *** [build] Error 2
tobias@brutus:~/Downloads/mcostalba-Stockfish-9934b8e/src$ 
It tells me that icpc is not defined. So I read a bit further and found out that I have to set the environment variable by running a script.

However I fail at this point. I ran some script I found in /opt/intel/ but that didn't change anything.

Could anyone tell me the path to the script I have to run in order to get thing work?

Greetings,

Re: installing intel composer 2011

Posted: Thu Mar 15, 2012 4:09 pm
by quantum
After source /opt/intel/composer_xe_2011_sp1.9.293/bin/compilervars.sh intel64

things work fine for me ;)

Re: installing intel composer 2011

Posted: Fri Mar 16, 2012 4:43 am
by kingliveson
For future reference for anyone else, my ~/.bashrc has the following:

Code: Select all

source /opt/intel/bin/compilervars.sh intel64

export VTune_Amplifier="/opt/intel/vtune_amplifier_xe"
export PATH="${VTune_Amplifier}/bin64:${PATH}"

export Inspector="/opt/intel/inspector_xe"
export PATH="${Inspector}/bin64:${PATH}"

Re: installing intel composer 2011

Posted: Sat Mar 17, 2012 1:37 am
by quantum
I like your ~/.bashrc, especially the first line. I did edit this file as well but it did not work as properly as your solution :)