Install Intel Parallel Studio XE for Linux 2020

Table of Contents

Obtaining the installation package

Intel Parallel Studio XE Composer Edition for Fortran and C ++ Linux on Ubuntu 18.04 LTS (WSL1 on Windows 10 Pro 64bit) is being installed. Its version is 2020 Update 1 (Build on March 26, 2020). It is assumed that a tgz file of full package has been downloaded from the license management site and is in an appropriate folder (directory). The default download folder on Windows 10 is C:\Users\username\Downloads (replace username). On Linux, it corresponds to /mnt/c/Users/username/Downloads. The size of this file is 1.7GB.
WSL2 has already been released, but I installed it on Ubuntu 18.04 LTS of WSL1. The Intel compiler seems not to support Ubuntu 20.04 LTS as of May 21, 2020.
Parallel Studio Cluster Edidtion may be used free of charge for students if the conditions are met. A note is added at the end of this article.
The following is performed on a terminal of Ubuntu.

Pre-requisites

Install the required g++ in advance as follows:

$ sudo apt update
$ sudo apt install g++

Extract and execute install.sh

Move to the folder (directory) where you downloaded the installation package and extract it. After that, move to the extracted directory and start the installation script as root (su command):

$ cd /mnt/c/Users/username/Downloads/
$ tar xf parallel_studio_xe_2020_update1_composer_edition.tgz
$ cd parallel_studio_xe_2020_update1_composer_edition/
$ sudo ./install.sh

About Intel Disbribution for Python

If you install by the following method, Intel Distribution for Python will also be installed. This Python package management can be done with conda, but root privileges are required. .conda/ and /opt/intel/intelpython3 will be owned by root. This makes Python package management cumbersome, so it's better to remove Intel Distribution for Python from the installation. Although it is not explained below, you can remove it with the option to select the package to install.
To disable Intel Distribution for Python after installation, it is easy to change the installation directory name appropriately. For example, in the installation destination /opt/intel/, execute as follows so that its environment setting is disabled:

$ sudo mv intelpython3 / intelpython3-deactivate /

Install interactively by answering questions

We will proceed with the installation by interactively answering questions.
The first is consent to the license terms. At the last, type accept.
Next, select whether you agree with Intel's information collection or not according to your preference.
Next is License Activation. It is necessary to know the activation method such as the serial number in advance. I chose the default, checking the serial number at the Intel Registration Center and then activating online with Internet connection.
Next, Configuration> Pre-install Summary appears, and the default installation destination of /opt/intel and the component list are displayed. IA-32 components are also being installed by default, but the 64-bit version lacks the prerequisites. So, select 2. Customized Installation; then select 1 as shown below. Confirm x for IA-32 has been unchecked.

--------------------------------------------------------------------------------
Select the target architecture(s) where the applications you develop will run.
--------------------------------------------------------------------------------

   1. [ ]    IA-32
   2. [x]    Intel(R) 64

   3. Finish architecture selection [ default ]

   Note: This system is an Intel(R) 64 architecture system.
   Your application may be built to run on either IA-32 or Intel(R) 64 arch.

   b. Back
   q. Quit installation

--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [ 3 ]:

Select the default 3 to proceed. 32-bit libraries not found may appear as below; then ignore them, select the default, and proceed.


--------------------------------------------------------------------------------
Checking the prerequisites. It can take several minutes. Please wait...
--------------------------------------------------------------------------------
Prerequisites > Missing Prerequisite(s)
--------------------------------------------------------------------------------
There are one or more unresolved issues based on your system configuration and
component selection.

You can resolve all the issues without exiting the installer and re-check, or
you can exit, resolve the issues, and then run the installation again.

--------------------------------------------------------------------------------
Missing optional prerequisites
-- 32-bit libraries not found
--------------------------------------------------------------------------------
   1. Skip prerequisites [ default ]
   2. Show the detailed info about issue(s)
   3. Re-check the prerequisites

   h. Help
   b. Back
   q. Quit installation

--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [ 1 ]:

The installation will finally begin. It takes a long time. Finally, when Installation Complete appears, press Enter to finish.

Environmental setting

The environment setting is required to actually use the Intel compiler. Do the following. If the result after invoking ifort looks like the last line, it is successful.

$ cd /opt/intel/parallel_studio_xe_2020
$ source ./psxevars.sh
$ ifort
ifort: command line error: no files specified; for help type "ifort -help"

Since setting the environment every time is redundant, let's write this environment setting in .bashrc. Open ~/.bashrc using an editor and write the following in the bottom line (or at an appropriate line). The Intel compiler can be used immediately after opening the Linux terminal.

source /opt/intel/parallel_studio_xe_2020/psxevars.sh

Note on installing Cluster Edition

Whlie the above gudance is for Composer Edition, the edition that students can use for free is Cluster Edition. After confirming with some student, the default installation failed because some prerequisites were not met. This is probably because X-Window related items are not installed. So, referring to a release note , some of the components were removed. As shown below, we changed 2 to 6 from All to None. Also remove the IA-32 as explained above. Now you will be able to install.

Enter a and change each item from All to None first. Then, select one by one from 7 to 16 so that they become All.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.