Files
charms/hpc.sh

35 lines
1007 B
Bash
Raw Permalink Normal View History

#!/bin/sh
2022-06-03 15:45:24 +09:00
# Install the required packages
sudo apt install slurm-client mpi-default-bin slurm-wlm-torque
2022-06-03 08:35:36 +09:00
# THis is workaround using MKL library in AMD node
2022-06-03 08:24:46 +09:00
export MKL_DEBUG_CPU_TYPE=5
export MKL_CBWR=AUTO
# For WSL2
#export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
#export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
#export LIBGL_ALWAYS_INDIRECT=1
# This is workaround for QE-GPU edition to work with NVHPC
export CUFFT_ALLOWED_L2_CACHE=0
export OMP_NUM_THREADS=1
export OMPI_MCA_mca_btl_base_warn_component_unused=0
# remove FORTRAN STOP message when nvfortran job finishes
2022-06-03 08:35:36 +09:00
# It can be ignored because this is not error.
2022-06-03 08:24:46 +09:00
export NO_STOP_MESSAGE=1
2022-06-03 15:52:10 +09:00
# Install Miniconda
bash /mnt/hpc/pkgs/Miniconda3-latest-Linux-x86_64.sh
2022-06-03 08:24:46 +09:00
# For Quantum Espresso
export ESPRESSO_PSEUDO='/mnt/hpc/pseudo/'
# Conda environment
export PATH=/home/$USER/miniconda3/bin:/mnt/hpc/pkgs/pwtk-2.0:$PATH
2022-06-03 15:59:08 +09:00
# Install QE through conda
conda install -c conda-forge qe