Wednesday, October 8, 2014

Install Intel compiler on CentOS

To install any Intel compiler, follow these steps:

1. Download the latest version from Intel's Development site(you need to register for an evaluation and then get a link in the mail).

2. Extract the archive:
tar xvf parallel_studio_xe_2015.tgz
3. Install 32Bit libraries:
yum install libstdc*i686 -y
4. Change directory the extracted archive:
cd parallel_studio_xe_2015
5. Launch the GUI installer:
./install_GUI.sh
6. Nothing special to choose from, just the evaluation check box when asked about a serial number(or enter a serial number if you have one).

7. Create the following files in /etc/profile.d/:
vi /etc/profile.d/intel.sh
#!/bin/bashsource /opt/intel/composerxe/bin/compilervars.sh intel64source /opt/intel/impi/5.0.1.035/bin64/mpivars.sh
8. Copy the file and make a c shell version:
cp /etc/profile.d/intel.sh /etc/profile.d/intel.csh
9. Edit it:
vi /etc/profile.d/intel.csh
#!/bin/cshsource /opt/intel/composerxe/bin/compilervars.csh intel64source /opt/intel/impi/5.0.1.035/bin64/mpivars.csh
10. Make both file executable:
chmod +x /etc/profile.d/intel* 
11. Test it using icc -v mpicc -v

No comments:

Post a Comment