Intel® oneAPI
言わずと知れたインテル謹製のコンパイラー、ライブラリー群。
管理者が入れることもできるけれど、一般ユーザー権限でインストールするときの記録。
Ubuntu22.04へのインストール
Intel® oneAPI HPC Toolkitを入れたいが、その前にIntel® oneAPI Base Toolkitを入れる必要がある。
Intel® oneAPI Base Toolkit: Essential oneAPI Tools & LibrariesのDownloadのペインを選択。
Packages: Intel® oneAPI Base Toolkit
Operating System: Linux
Installer Type: offline installer
ユーザー登録面倒なので、Continue as a Guest (download starts immediately) →からダウンロード。
bash intel-oneapi-base-toolkit-2025.1.0.651_offline.sh
で実行。GUIが立ち上がるので従っていけばインストール完了。
例えばicxは$(HOME)/intel/oneapi/2025.1/binにインストールされている。
. $(HOME)/intel/oneapi/setvars.sh
で、環境設定が終了して、PATHも通る。
Configure System After Installationによると、以下のパッケージをインストールしておくと良い:
sudo apt update
sudo apt -y install cmake pkg-config build-essential
bash ./intel-oneapi-hpc-toolkit-2025.1.0.666_offline.sh
で実行。GUIが立ち上がるので従っていけばインストール完了。
which ifxでFortranコンパイラーのPATHが出てくれば、正常にインストールが成功していることが確認できる。(最近のoneAPIでは、Fortranコンパイラーはifortではなくifxらしい。)
modulefiles-setup.shの使い方
このスクリプトでモジュールファイルが指定先のディレクトリに生成される。以下が使用例
bash modulefiles-setup.sh --output-dir=/home/ユーザー名/opt/modulefiles/oneapi
module availで
----------------------- /home/ユーザー名/opt/modulefiles ------------------------
oneapi/advisor/2025.1 oneapi/dpl/2022.8
oneapi/advisor/latest oneapi/dpl/latest
oneapi/ccl/2021.15.0 oneapi/intel_ipp_intel64/2022.1
oneapi/ccl/latest oneapi/intel_ipp_intel64/latest
oneapi/compiler-intel-llvm/2025.1.0 oneapi/intel_ippcp_intel64/2025.1
oneapi/compiler-intel-llvm/latest oneapi/intel_ippcp_intel64/latest
oneapi/compiler-rt/2025.1.0 oneapi/ishmem/1.3.0
oneapi/compiler-rt/latest oneapi/ishmem/latest
oneapi/compiler/2025.1.0 oneapi/mkl/2025.1
oneapi/compiler/latest oneapi/mkl/latest
oneapi/debugger/2025.1.0 oneapi/mpi/2021.15
oneapi/debugger/latest oneapi/mpi/latest
oneapi/dev-utilities/2025.1.0 oneapi/tbb/2022.1
oneapi/dev-utilities/latest oneapi/tbb/latest
oneapi/dnnl/3.7.1 oneapi/umf/0.10.0
oneapi/dnnl/latest oneapi/umf/latest
oneapi/dpct/2025.1.0 oneapi/vtune/2025.1
oneapi/dpct/latest oneapi/vtune/latest