pcchen / scopion

Scopion cluster
2 stars 0 forks source link

Migrate to oneAPI HPC Toolkit provided by OpenHPC 2.x #4

Open pcchen opened 2 years ago

pcchen commented 2 years ago

Currently, the oneAPI HPC Toolkit is installed via the repo and rpms provided by the intel

more /etc/yum.repos.d/OneAPI.repo
[oneAPI]
name=Intel(R) 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-2023.PUB

We should migrate to the oneAPI HPC Toolkit provided by OpenHPC 2.x for better consistency.

OpenHPC also provides optional compatible builds for use with the compilers and MPI stack included in newer versions of the Intel® oneAPI HPC Toolkit (using the classic compiler variants). These packages provide a similar hierarchical user environment experience as other compiler and MPI families present in OpenHPC.

pcchen commented 2 years ago

Try the following from the official doc

# Enable Intel oneAPI and install OpenHPC compatibility packages
[sms] # yum -y install intel-oneapi-toolkit-release-ohpc
[sms] # rpm --import https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
[sms] # yum -y install intel-compilers-devel-ohpc
[sms] # yum -y install intel-mpi-devel-ohpc
pcchen commented 2 years ago
# yum -y install intel-oneapi-toolkit-release-ohpc

done

rpm --import https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB

done

pcchen commented 2 years ago
yum -y install intel-compilers-devel-ohpc

done

yum -y install intel-mpi-devel-ohpc

done

pcchen commented 2 years ago

Remove /etc/yum.repos.d/OneAPI.repo which is created by us.

Keep /etc/yum.repos.d/oneAPI.repo which is installed by OpenHPC 2.4.

pcchen commented 2 years ago
# Install 3rd party libraries/tools meta-packages built with Intel toolchain
[sms]# yum -y install ohpc-intel-serial-libs
[sms]# yum -y install ohpc-intel-geopm
[sms]# yum -y install ohpc-intel-io-libs
[sms]# yum -y install ohpc-intel-perf-tools
[sms]# yum -y install ohpc-intel-python3-libs
[sms]# yum -y install ohpc-intel-mpich-parallel-libs
[sms]# yum -y install ohpc-intel-mvapich2-parallel-libs
[sms]# yum -y install ohpc-intel-openmpi4-parallel-libs
[sms]# yum -y install ohpc-intel-impi-parallel-libs

done.