质子重离子快速蒙卡MCsquare在ubuntu-20.04下的安装

质子重离子快速蒙卡MCsquare在ubuntu-20.04下的安装

基本命令如下

wget https://registrationcenter-download.intel.com/akdlm/irc_nas/17912/l_HPCKit_p_2021.3.0.3230_offline.sh
sudo bash l_HPCKit_p_2021.3.0.3230_offline.sh
sudo apt autoremove 'intel-*kit'  'intel-oneapi*'
cd /tmp
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt update
sudo apt install intel-basekit intel-hpckit
sudo apt update
sudo apt install git
git clone https://gitlab.com/openmcsquare/MCsquare.git
source /opt/intel/oneapi/setvars.sh
cd MCsquare
make all -j4
./MCsquare_linux -v

上述命令可以写成一个脚本,然后自动安装。

如果在虚拟机安装,可能遇到空间不足的问题。空间不足请参考博文《虚拟机硬盘容量不够如何解决》,如有疑问,留言,作者会写的更加详细。

以后有机会可以将makefile的方式改为cmake的方式。

参考:

https://software.intel.com/content/www/us/en/develop/tools/oneapi/hpc-toolkit/download.html?operatingsystem=linux&distributions=webdownload&options=offline

https://software.intel.com/content/www/us/en/develop/tools/oneapi/base-toolkit.html#gs.6q9lnr

https://gitlab.com/openmcsquare/MCsquare

上一篇:CPU 编程手册 Intel® 64 and IA-32;AMD64;


下一篇:有赞零售移动CI/CD实践