Requirement.
Windows ํ๊ฒฝ์ Ubuntu 20.04๋ฅผ ๊ฐ๋ํ๊ธฐ ์ํ ๊ฐ์ ํ๊ฒฝ ์ค์น. VMware, VirtualBox, Docker ๋ฑ ๋ณธ์ธ์๊ฒ ํธํ ํ๊ฒฝ์ ์ ํํ์ฌ ์ฌ์ฉํ๋ฉด ๋๋ค. ์ด์ ํฌ์คํ ์ VMware ์ค์น ๊ณผ์ ์ด ์์ธํ ๋์ด๋์ด ์์ผ๋ ์ด์ฌ์๋ผ๋ฉด ๊ทธ๋๋ก ๋ฐ๋ผํ๋ ๊ฒ์ ์ถ์ฒ.
VMware (์ถ์ฒ)
๋ณธ๋ฌธ์ ์ฐ์ฌ์ง ๋๋ก CentOS๋ฅผ ์ฌ์ฉํด๋ ๋๋, ๋ณธ ํฌ์คํ ์ Ubuntu 20.04๋ฅผ ๊ธฐ์ค์ผ๋ก ํฌ์คํ ํ ๊ฒ์ด๋ฏ๋ก ๋์ผํ๊ฒ Ubuntu 20.04๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ ๊ถ์ฅํ๋ค. ๋ฐฉ๋ฒ์ CentOS ISO ํ์ผ ๋์ Ubuntu ISO ํ์ผ์ ์ด์ฉํ๋ฉด ๋๋ค.
[VMware] VMware Workstation 17 + CentOS 8 ์ค์น ๋ฐฉ๋ฒ
๋ํ์ ๊ฐ์ํ๊ฒฝ์ด๋ผ๊ณ ํ ์ ์๋ VMware์ Linux๋ฅผ ์ฌ์ฉํ๊ธฐ ์ํ CentOS๋ฅผ ์ค์นํ๋ค. VMware Workstation 17 Player : https://www.vmware.com/products/workstation-player.html CentOS 8 : https://www.centos.org/download/ Download Home D
idox.tistory.com
Get Ubuntu Server | Download | Ubuntu
Get Ubuntu Server one of three ways; by using Multipass on your desktop, using MAAS to provision machines in your data centre or installing it directly on a server.
ubuntu.com
VirtualBox
Downloads – Oracle VM VirtualBox
Download VirtualBox Here you will find links to VirtualBox binaries and its source code. VirtualBox binaries By downloading, you agree to the terms and conditions of the respective license. If you're looking for the latest VirtualBox 6.1 packages, see Virt
www.virtualbox.org
VirtualBox์์ ๊ตฌ๋ํ Ubuntu 20.04 ์ด๋ฏธ์ง ํ์ผ(.iso)์ ๋ค์ด๋ก๋ํ๋ค.
Get Ubuntu Server | Download | Ubuntu
Get Ubuntu Server one of three ways; by using Multipass on your desktop, using MAAS to provision machines in your data centre or installing it directly on a server.
ubuntu.com
์ดํ ๋ค์๊ณผ ๊ฐ์ด ์ค์ ํ๊ณ Finish ๋ฒํผ์ ๋๋ฌ VM ์ค์น๋ฅผ ๋ง๋ฌด๋ฆฌํ๋ค. ์ค์ ๊ฐ์ ๊ฐ์ธ์ด ์ํ๋ ๋๋ก ์ค์นํ๋ฉด ๋จ.
์ดํ๋ก๋ ์ญ์ญ Done๋ง ์ ํํด์ฃผ๋ฉด ๋๋ค. ์ค์น ๋ด์ฉ ํ์ธํ๋ ๊ฑฐ๊ณ , ์ถ๊ฐ ํจํค์ง ์ค์นํ ๊ฑด์ง ๋ฌป๋ ๊ฑด๋ฐ ์ต์ ์ฌ์์ผ๋ก ์ค์นํ ๋ค์ ํ์ํ ํจํค์ง๋ ์ง์ ์ค์นํ ๊ฒ์ด๋ฏ๋ก ๊ทธ๋ฅ ๋ค ๋์ด๊ฐ์ค๋ค. Install OpsnSSH ์ค์ ๋ง ์ฒดํฌํด์ฃผ๊ธฐ.
Quantum Espresso.
Quantum Espresso, QE ์ค์น๋ ํด๋น ๋ฌธ์๋ฅผ ์ฐธ๊ณ ํ์ฌ ์ค์น ํ ๊ณผ์ ์ ์์ฑํ์๋ค.
A. Install Quantum Espresso | mysite
1. Day 1 (installation) Install Quantum Espresso (a) First of all, install the following basic software by typing $sudo apt-get install build-essential fftw3-dev gfortran (b) Then, install software to be used for graphical analysis. Type the following comm
osuginoissp.wixsite.com
Install
QE ๊ตฌ๋์ ์ํด ํ์ํ ์์กด ํจํค์ง๋ฅผ ์ค์นํ๋ค.
# ํจํค์ง ๋ฆฌ์คํธ ์
๋ฐ์ดํธ
$ sudo apt-get update
# ์์กด ํจํค์ง ์ค์น
$ sudo apt-get -y install build-essential gfortran
$ sudo apt-get -y install wget
$ sudo apt-get -y install numactl
$ sudo apt-get -y install hwloc libhwloc-dev libevent-dev
# ์์์ ์ ์ธต๊ณผ ๊ฒฐ๊ณผ ๊ทธ๋ํ๋ฅผ ๊ทธ๋ฆฌ๊ธฐ ์ํ ํจํค์ง
$ sudo apt-get -y install xcrysden
$ sudo apt-get -y install gnuplot
๋ค์ค PC์์ parallel ๊ณ์ฐ์ ํ๊ธฐ ์ํด open-mpi๋ฅผ ์ค์นํ๋ค. (์ต์ ๋ฒ์ v4.1.5)
$ wget https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.5.tar.gz
$ tar xvf openmpi-4.1.5.tar.gz
$ cd openmpi-4.1.5/
$ ./configure --prefix=/usr/local/openmpi-4.1.5 --enable-orterun-prefix-by-default # ์๊ฐ ์์
$ make -j all # ์๊ฐ ์์
$ sudo make install
open-mpi ๋๋ ํ ๋ฆฌ ๋ด์ executable์ ์ฌ์ฉํ๊ธฐ ์ํด bashrc๋ฅผ ์์ ํ๋ค.
$ sudo vi ~/.bashrc
# ๊ฐ์ฅ ํ๋จ์ ์๋ export๋ฌธ ์ฝ์
export PATH="/usr/local/openmpi-4.1.5/bin":${PATH}
$ source ~/.bashrc # ๋๋ ํฐ๋ฏธ๋ ์ฌ๊ธฐ๋
slurm-wlm ์ฌ์ฉ์ ์ํ ๊ฒฝ์ฐ pmix2 ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ถ๊ฐ๋ก ์ค์นํ๋ค.
$ sudo apt-get install -y libpmix2
openmpi ์ค์น ํ์ธ์ ๋ค์๊ณผ ๊ฐ๋ค. mpirun ์ค์น ๊ฒฝ๋ก๊ฐ ์ถ๋ ฅ๋๋ฉด ์ ์์ ์ผ๋ก ์ค์น๋ ๊ฒ.
$ which mpirun
์ํ ์ฐ์ฐ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ธ lapack์ ์ค์นํ๋ค.
$ wget https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v3.10.1.tar.gz
$ tar -xzvf v3.10.1.tar.gz
$ cd lapack-3.10.1
$ cp make.inc.example make.inc
$ make blaslib # ์๊ฐ ์์
$ make lapacklib # ์๊ฐ ์์
$ make tmglib # ์๊ฐ ์์
$ sudo cp librefblas.a /usr/local/lib/libblas.a
$ sudo cp liblapack.a /usr/local/lib/liblapack.a
$ sudo cp libtmglib.a /usr/local/lib/libtmg.a
FFTW3 ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ค์นํ๋ค.
$ sudo apt-get -Y install fftw3 fftw3-dev
Quantum Espresso๋ฅผ ์ค์นํ๋ค.
$ wget https://www.quantum-espresso.org/rdm-download/488/v7-2/42f9520418aa45f19026b70d36485a31/qe-7.2-ReleasePack.tar.gz
$ tar -xzvf qe-7.2-ReleasePack.tar.gz
$ cd qe-7.2
$ ./configure -prefix=/usr/local/qe-7.2
$ make -j all
# ๊ถํ ํ์ํ ๊ฒฝ์ฐ sudo ์ฌ์ฉ
$ make install
์ค์นํ Quantum Espresso ๊ฒฝ๋ก๋ฅผ ์ก์์ฃผ๊ธฐ ์ํด bashrc๋ฅผ ์์ ํ๋ค.
$ sudo vi ~/.bashrc
# ๊ฐ์ฅ ํ๋จ์ ์๋ export๋ฌธ ์ฝ์
export PATH="${PATH}:/usr/local/qe-6.7MaX/bin/"
export PATH="${PATH}:/home/user/qe-7.2/bin/" # user ๋ถ๋ถ์ ๋ณธ์ธ์ username์ผ๋ก ๋ณ๊ฒฝ
$ source ~/.bashrc # ๋๋ ํฐ๋ฏธ๋ ์ฌ๊ธฐ๋
Wannier90์ ์ค์นํ๋ค.
$ wget https://github.com/wannier-developers/wannier90/archive/v3.1.0.tar.gz
$ tar -xzvf v3.1.0.tar.gz
$ cd wannier90-3.1.0
$ cp ./config/make.inc.gfort ./make.inc
$ make # ์๊ฐ ์์
$ sudo cp *.x /usr/local/qe-7.2/bin