Ubuntu 安装 intel 编译器并配置Set Environment Variables

下载 intel 编译器

Free Intel® Software Development Tools

 下载Base Toolkit for Linux

Command Line Download

Command Line Installation Parameters

wget https://registrationcenter-download.intel.com/akdlm/irc_nas/18679/l_HPCKit_p_2022.3.0.8751_offline.sh

sudo sh ./l_HPCKit_p_2022.3.0.8751_offline.sh

Installation Instructions

The initial download is for the installer application files only. The installer will acquire all the tools during the installation process.

SStep 1: From the console, locate the downloaded install file.
Step 2: Use $ sudo sh ./<installer>.sh to launch the GUI Installer as root.
Optionally, use $ sh ./<installer>.sh to launch the GUI Installer as current user.
Step 3: Follow the instructions in the installer.
Step 4: Explore the Get Started Guide.

安装界面

 安装过程

配置环境变量 Set Environment Variables 

Get Started with the Intel® oneAPI HPC Toolkit for Linux*

Configure Your System

Set Environment Variables for CLI Development

Option 2: One time setup for setvars.sh

Environment variables can be set up to automatically set using one of the methods below:

使用modulefiles去设置环境变量

​​​​​​Use Modulefiles with Linux*

Run the modulefiles-setup.sh script.

/opt/intel/oneapi/modulefiles-setup.sh