Installation of Intel oneAPI Base Toolkit + HPC Toolkit (Intel Fortran) (Linux version)

Overview

Following the previous article, we have summarized the procedure for installing the Linux version of Intel Fortran (to be exact, Intel oneAPI Base Toolkit + HPC Toolkit). I used apt for installation.

Check IntelĀ® oneAPI Base Toolkit System Requirements to see if the system supports it.

environment

Installation method

To use Intel Fortran

  1. Intel oneAPI Base Toolkit (hereafter, Base Kit)
  2. Intel oneAPI HPC Toolkit (HPC Kit)

You need to install two of them.

The Linux version of Base Kit and HPC Kit has four installation methods. There are 5 ways including Docker Hub.

  1. Download and install the installer
  2. Installation using APT Package Manager
  3. Installation using YUM Package Manager
  4. Installation using Zypper Package Manager
  5. Using Docker Hub

In this article, I will explain how to use No. 2 apt. Others are just a brief touch.

Confirmation of installation method

Access the official Intel page Free IntelĀ® Software Development Tools and click [Get the Base Kit] to go to the Base Kit download page.

Select Linux as the OS.

Five items will appear in Distribution.

If you select one of these, the installation method will be explained.

Web & Local If you select Web & Local for Distribution, an item for selecting the Installer Type will appear, so select either Local installation or Online installation.

When all the items are selected, the explanation of the installer, the contents of the software included in the installer, and the file size are displayed as shown in the figure below, and the [Download] button appears.

The extension of the installer is .sh, so download the installer and start the installer with the bash command.

sudo bash l_BaseKit_p_2021.1.0.2659_offline.sh

In the Linux version, you can also download with wget, so the download + install command is written at the bottom of the page.

The same applies to the HPC Kit. The command in that case is

sudo bash l_HPCKit_p_2021.1.0.2684_offline.sh

This method only needs to be installed once, but I received a comment that the update seems to be difficult.

Docker Hub If you select Docker Hub for Distribution, the Docker Pull command will be displayed.

docker pull intel/oneapi-basekit

The commands for the HPC Kit are as follows.

docker pull intel/oneapi-hpckit

Package Manager If you select APT, YUM, or Zypper Package Manager for Distribution, a link to the page that describes the installation method will appear.

The links to the pages that describe the installation method are as follows (common to Base Kit and HPC Kit).

Of these, only the method of installing using APT will be mentioned, but the preliminary work is common.

Installation using APT

Pre-work

--Check if the computer and OS meet the system requirements of oneAPI. --If you have the beta version of oneAPI installed, uninstall them.

apt autoremove 'intel-*kit'  'intel-oneapi*'

--When using GPGPU with Intel GPU, Install Driver

The author's environment meets the system requirements, I haven't installed the beta version, and I have no plans to do GPGPU, so I didn't have to do any prior work.

Installation action

Obtain the public key of the Intel repository and add it to the APT keyring so that the archive signed with that key is trusted.

$ wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
$ sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB

Next, set APT to check the Intel repository.

$ echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list

After that, execute sudo apt update to update the package list.

After apt update is finished, install Base Kit and HPC Kit. The package names are summarized in List of Intel one API Packages.

$ sudo apt install intel-basekit
$ sudo apt install intel-hpckit

oneAPI is installed in / opt/intel/oneapi.

To use the installed packages, including Intel Fortran, you need to run setvars.sh located in the installation directory.

source /opt/intel/oneapi/setvars.sh
$ ifort --version

Command 'ifort' not found, did you mean:

  command 'isort' from deb isort

Try: sudo apt install <deb name>

$ source /opt/intel/oneapi/setvars.sh
:: initializing oneAPI environment ...
   BASH version = 4.4.20(1)-release
:: advisor -- latest
:: ccl -- latest
:: clck -- latest
:: compiler -- latest
:: dal -- latest
:: debugger -- latest
:: dev-utilities -- latest
:: dnnl -- latest
:: dpcpp-ct -- latest
:: dpl -- latest
:: inspector -- latest
:: intelpython -- latest
:: ipp -- latest
:: ippcp -- latest
:: itac -- latest
:: mkl -- latest
:: mpi -- latest
:: tbb -- latest
:: vpl -- latest
:: vtune -- latest
:: oneAPI environment initialized ::
$ ifort --version
ifort (IFORT) 2021.1.2 20201208
Copyright (C) 1985-2020 Intel Corporation.  All rights reserved.

You can see that Intel Fortran 2021.1 is running successfully.

If you don't want to type it every time, you can solve it by adding the above command to the shell startup script.

There is also a Page equivalent to the Get Started Guide for Windows.

Summary

I introduced the installation procedure of Intel Fortran Linux version integrated as Intel one API.

By using a package manager such as APT, you can easily install with just a command.

Recommended Posts

Installation of Intel oneAPI Base Toolkit + HPC Toolkit (Intel Fortran) (Linux version)
Installation of OpenMDAO (version 1.7.1)
[Linux] Installation of nvm
Installation of OMC Cloud Agent --Linux-
[Linux] Summary of middleware version confirmation commands