Ubuntu安装Intel® oneAPI Base & HPC Toolkit
1. 下载
在Download the Intel® oneAPI Base Toolkit页面,选择 Linux
-网络和本地
-脱机
,并下载l_BaseKit_p_2021.4.0.3422_offline.sh
文件。
在Download the Intel® oneAPI HPC Toolkit页面,选择 Linux
-网络和本地
-脱机
,并下载l_HPCKit_p_2021.4.0.3347_offline.sh
文件。
2. 安装
cd进入,ls查看,而后安装:
sudo sh l_BaseKit_p_2021.4.0.3422_offline.sh
sudo sh l_HPCKit_p_2021.4.0.3347_offline.sh
选择合适的安装路:By default, <install_dir> is:
- For root installations: /opt/intel/oneapi
- For non-root installations: $HOME/intel
3. 调用
$ gedit ~/.bashrc
加入:
source /opt/intel/oneapi/setvars.sh intel64
$ source ~/.bashrc
:: initializing oneAPI environment ...
bash: BASH_VERSION = 5.0.17(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
:: ipp -- latest
:: itac -- latest
:: mkl -- latest
:: mpi -- latest
:: tbb -- latest
:: vpl -- latest
:: vtune -- latest
:: oneAPI environment initialized ::
验证是否调用成功:
$ ifort -V
Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.4.0 Build 20210910_000000
Copyright (C) 1985-2021 Intel Corporation. All rights reserved.
至此,安装成功。