Installing Intel Compilers on OpenSUSE

Navigation:

Linux and Mac OS X Compilers Installation Help Center: /en-us/articles/intel-compilers-linux-installation-help


COMPATIBLE Linux Versions: Beta and recently released versions of OpenSUSE/SLES/SLED may NOT be officially supported by Intel Compilers.  Please see your ReleaseNotes document with your compiler to find the supported Linux distributions and versions.  These instructions are merely to help install the compiler, keep in mind that versions of this linux distribution NOT in the ReleaseNotes document for your compiler version are NOT tested nor supported.

COMPATIBLE Intel Compiler Versions: In order to use Intel® Compilers (C++  or  Fortran) under the lastest release of OpenSLES/SLES/SLED, you will need the latest version of the Intel compiler(s).   Do NOT try to install older Intel Compilers such as 12.x, 11.0, 10.x, 9.x or 8.x under OpenSUSE 12.3 or newer - they will not install easily and probably will not work - and they are NOT supported.  If you need an older Intel Compiler version, please read their ReleaseNotes and obtain an older, supported distribution (read this): http://software.intel.com/en-us/articles/older-version-product

Also, determine your needs and get the right installation tarball.  Most linux users are on 64bit systems with x86_64 versions of linux installed.  Do you need to create older 32bit applications?  If not, download the Intel 64 ONLY tarball, the *_intel64.tgz named package.  Not only does this save download time, this will eliminate your need to install 32bit libraries on the development system.

If you have active support for your compiler, you can download the latest Intel compiler version from the Intel Registration Center at:

https://registrationcenter.intel.com

PREREQUISITES : Add several packages to your OpenSUSE installation PRIOR to installation of the compiler.


0) First determine whether you have installed a 32bit or 64bit version of OpenSUSE.  Do this with the uname -a command:

uname -m

which will return:
x86_64   if you have a 64bit installation
i686  if you have a 32bit installation

Based on whether you have a 32bit or 64bit installation, choose one of the 2 procedures below.

1)  i686 32bit Installation

a) login as root or super user.
If you do not have the root password or priviledge, check if you have SUDO priviledges. 
If you do not have either root/admin or SUDO priviledges STOP.  You will be unable to install the Intel compilers on this installation until you are able to add system-wide packages as a root or admin user.
If you use SUDO to gain access, open a root window with this command:
sudo bash

b) Add Base Development and C/C++ Development
start Yast2 in interactive mode.  From the root window:   yast2
When the graphical admin tool Yast2 opens, there is a button (lower right) for "Software Manager".
Click Software Manager button to open the Software Manager tool. 
On this Software Manager window, find the "Filter" pull-down.  Set Filter to "Patterns" to display groups of packages in the left-hand list of package groups.  Scroll down in this list to find the group named "Development".
Under the "Development" group, select the following package sets to install:
"Base Development"
"C/C++ Development"

in addition, if you are installing the Intel C++ compiler and wish to use Eclipse integration, also install the "Integrated Development Environments"/"Eclipse" package set.

Once these package sets are select, select "Install" to install the developer packages on your system.

c) Install 32bit gcc and g++ 3.3 and make the default
From the terminal window, as root:

zypper install gcc33-32bit
zypper install libstdc++33-32bit

Try the installation of the Intel Compiler at this point.  If this does not work, consider doing the following:
rm /usr/bin/gcc
ln -s /usr/bin/gcc-3.3 /usr/bin/gcc

You may now proceed with an installation of the Intel Compilers.


2) x86_64 64bit OS Installation

a) login as root or super user.
If you do not have the root password or priviledge, check if you have SUDO priviledges. 
If you do not have either root/admin or SUDO priviledges STOP.  You will be unable to install the Intel compilers on this installation until you are able to add system-wide packages as a root or admin user.
If you use SUDO to gain access, open a root window with this command:
sudo bash

b) Add Base Development and C/C++ Development
start Yast2 in interactive mode.  From the root window:   yast2
When the graphical admin tool Yast2 opens, there is a button (lower right) for "Software Manager".
Click Software Manager button to open the Software Manager tool. 
On this Software Manager window, find the "Filter" pull-down.  Set Filter to "Patterns" to display groups of packages in the left-hand list of package groups.  Scroll down in this list to find the group named "Development".
Under the "Development" group, select the following package sets to install:
"Base Development"
"C/C++ Development"

in addition, if you are installing the Intel C++ compiler and wish to use Eclipse integration, also install the "Integrated Development Environments"/"Eclipse" package set.

Once these package sets are select, select "Install" to install the developer packages on your system.

c) Install gcc and g++ 3.3
From the terminal window, as root:

zypper install gcc33
zypper install libstdc++33
zypper install libstdc++33-32bit (only if you need the 32bit compiler )

At this point you are ready to install the 64bit versions of the Intel Compiler.  But before you do, read below:

d) Determine if you want or need to develop 32bit applications
Up to this point you have everything you need to install the 64bit Intel compilers and develop 64bit applications.  If this is all you need, locate the Intel compiler tarball named *_intel64.tgz, for example, l_cprof_p_11.1.046_intel64.tgz and install. 
IF you want to be able to create 32bit applications AND 64bit applications:

zypper install gcc33-32bit


You may now proceed with an installation of the Intel Compilers.  Use the combined IA-32 and Intel64 package, for example l_cprof_p_11.1.046.tgz.

UMASK before you install:  If you will install as root or use sudo for the installation, check the umask setting for your root user:
#   umask
or
sudo bash ; umask

the value should be 0022.  If not, set it to 0022 so that the files you install are readable by non-root users:
umask 0022

INSTALLATION
untar the package tarball in a scratch directory such as /tmp.  tar -zxvf l_fcompxe_2013.x.yyy[_intel64 | _ia32].tgz
cd into the extracted directory
./install.sh and follow the instructions.



Finishing up:  Usage

Once the compilers are installed, it is necessary to source the ifortvars.sh or ifortvars.csh file to properly set the user environment to use the Intel compilers.  This (these) commands can be placed in a user's ~/.bashrc or other system login file (fortran 11.1.046 example shown below, bash user):

64bit compiler selection:
source /opt/intel/Compiler/11.1/046/bin/ifortvars.sh intel64

32bit compiler selection:
source /opt/intel/Compiler/11.1/046/bin/ifortvars.sh  ia32

C/C++ users: substitute "iccvars" for "ifortvars" above.

Other versions: substitute your actual minor version for "046" above. 
Also, if you are a CSH or TCSH user, use ifortvars.csh or iccvars.csh as appropriate.


Using the Compiler:

Locate your documentation:  it is installed in <installdir>/Documentation/en_US   (currently, US English is the language supported in the documentation).   Under this directory, read the <installdir>/Documentation/en_US/getting_started_f.pdf or getting_started_c.pdf document.  Read how to use iccvars.sh or ifortvars.sh (or the .csh equivalents) to set your environment to use the compiler(s).  You may wish to put the 'source ifortvars.....' command into your home startup scripts.

Next, use a browser to open <installdir>/Documentation/en_US/documentation_f.htm or documentation_c.htm which is an index to the rest of the online documents.  Browse the documents to familiarize yourself with their locations and contents.

Need more help?  Join our User Forums:
Fortran: /en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/
C/C++: /en-us/forums/intel-c-compiler/

It is hoped this guide proves helpful for installing the Intel Compilers Professional Edition on an OpenSUSE installation.  Please add comments to this article if you have suggestions or tips to improve this guide.


Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.