インストーラーをダウンロードせずにリポジトリ情報を登録してdnfでoneAPIを入れてみます

リポジトリ登録

[root@rockylinux ~]# cat /etc/redhat-release
Rocky Linux release 8.7 (Green Obsidian)
 
[root@rockylinux ~]#
[root@rockylinux ~]# vi /etc/yum.repos.d/oneAPI.repo
[oneAPI]
name=IntelR oneAPI repository
baseurl=https://yum.repos.intel.com/oneapi
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
 
[root@rockylinux ~]#

リポジトリの確認

登録したリポジトリの確認をしてみます

[root@rockylinux ~]# dnf repolist -v oneAPI
 :
 :
DNF version: 4.7.0
cachedir: /var/cache/dnf
Last metadata expiration check: 0:00:04 ago on Mon 15 May 2023 12:56:59 AM JST.
Repo-id            : oneAPI
Repo-name          : IntelR oneAPI repository
Repo-status        : enabled
Repo-revision      : 1683139960
Repo-updated       : Thu 04 May 2023 03:52:40 AM JST
Repo-pkgs          : 1,265
Repo-available-pkgs: 1,265
Repo-size          : 432 G
Repo-baseurl       : https://yum.repos.intel.com/oneapi
Repo-expire        : 172,800 second(s) (last: Mon 15 May 2023 12:56:59 AM JST)
Repo-filename      : /etc/yum.repos.d/oneAPI.repo
Total packages: 1,265
 
[root@rockylinux ~]#

このリポジトリ「oneAPI」が抱えるパッケージの一覧は

[root@rockylinux ~]# dnf list available --disablerepo=* --enablerepo=oneAPI
Last metadata expiration check: 0:03:49 ago on Mon 15 May 2023 12:56:59 AM JST.
Available Packages
intel-aikit.x86_64                                                      2023.1.1-48862 oneAPI
intel-aikit-2021.1.0.x86_64                                             2021.1.0-935   oneAPI
 :
 :
[root@rockylinux ~]#

パッケージインストール

oneAPIと同じ構成、
oneAPI DPC++/C++ Compiler
Fortran Compiler
oneAPI Math Kernel Library
MPI Library
oneAPI Threading Building Blocks
を入れています

[root@rockylinux ~]# dnf install intel-oneapi-compiler-dpcpp-cpp         <--- 「DPC++/C++ Compiler」と「Threading Building Blocks」 classicのicc/icpcは入らない
 
[root@rockylinux ~]# dnf install intel-oneapi-compiler-fortran           <--  「Fortran Compiler」 classicのifortも入ります
 
[root@rockylinux ~]# dnf install intel-oneapi-mkl-devel
 
[root@rockylinux ~]# dnf install intel-oneapi-mpi-devel

インストール先は「/opt/intel/oneapi」です
使用するには「source /opt/intel/oneapi/setvars.sh」を実行して環境を整わさせます.

[saber@rockylinux ~]$ source /opt/intel/oneapi/setvars.sh
 
:: initializing oneAPI environment ...
   -bash: BASH_VERSION = 4.4.20(1)-release
   args: Using "$@" for setvars.sh arguments:
:: compiler -- latest
:: debugger -- latest
:: dev-utilities -- latest
:: dpl -- latest
:: mkl -- latest
:: mpi -- latest
:: tbb -- latest
:: oneAPI environment initialized ::
 
[saber@rockylinux ~]$
[saber@rockylinux ~]$ which icx
/opt/intel/oneapi/compiler/2023.1.0/linux/bin/icx
 
[saber@rockylinux ~]$ which icpx
/opt/intel/oneapi/compiler/2023.1.0/linux/bin/icpx
 
[saber@rockylinux ~]$ which ifx
/opt/intel/oneapi/compiler/2023.1.0/linux/bin/ifx
 
[saber@rockylinux ~]$ which ifort
/opt/intel/oneapi/compiler/2023.1.0/linux/bin/intel64/ifort
 
[saber@rockylinux ~]$ which mpirun
/opt/intel/oneapi/mpi/2021.9.0/bin/mpirun
 
[saber@rockylinux ~]$

runtimeのみなら
intel-oneapi-compiler-dpcpp-cpp-runtime
intel-oneapi-compiler-fortran-runtime
intel-oneapi-mkl
intel-oneapi-mpi
みたい.

最新の60件
2024-05-21 2024-05-16 2024-04-26 2024-04-19 2024-04-18 2024-04-15 2024-04-11 2024-04-06 2024-04-05 2024-03-30 2024-03-29 2024-03-19 2024-03-17 2024-03-15 2024-03-06 2024-03-05 2024-03-03 2024-02-23 2024-02-22 2024-02-21 2024-02-20 2024-02-19 2024-02-18 2024-02-17 2024-02-13 2024-02-12 2024-02-09 2024-02-04 2024-02-03 2024-01-31 2024-01-30 2024-01-29 2024-01-28 2024-01-22 2024-01-16 2024-01-13 2024-01-09 2024-01-08 2024-01-07 2024-01-03 2023-12-22 2023-12-17

edit


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2023-09-02 (土) 05:24:01