C/C++教程

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

本文主要是介绍质子重离子快速蒙卡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

这篇关于质子重离子快速蒙卡MCsquare在ubuntu-20.04下的安装的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!