diff --git a/container/README.md b/container/README.md index 0f7141ba2ac669268b59f469a3d59a7d3a2960f7..92c7734b72f07997bb233cd97f1f7c980c6cd5b2 100644 --- a/container/README.md +++ b/container/README.md @@ -71,7 +71,7 @@ cp ./templates/qe/6.4/data.qe.container.config ./ ``` cd container -mpirun --allow-run-as-root -x OMP_NUM_THREADS=1 -np 96 singularity exec openeuler-kgcc9-openmpi4-qe-6.4.sif /hpcrunner/q-e-qe-6.4.1/bin pw.x -input /hpcrunner/workloads/QE/qe-test/test_3.in +mpirun --allow-run-as-root -x OMP_NUM_THREADS=1 -np 96 singularity exec openeuler-kgcc9-openmpi4-qe-6.4.sif /hpcrunner/q-e-qe-6.4.1/bin/pw.x -input /hpcrunner/workloads/QE/qe-test/test_3.in ``` ### 欢迎贡献更多的HPC容器! diff --git a/container/openeuler-bisheng2-hmpi1-qe-6.4-opt.def b/container/openeuler-bisheng2-hmpi1-qe-6.4-opt.def new file mode 100644 index 0000000000000000000000000000000000000000..fea007d8556f02e4f91a1de1a71e0cb84d0c9b55 --- /dev/null +++ b/container/openeuler-bisheng2-hmpi1-qe-6.4-opt.def @@ -0,0 +1,41 @@ +BootStrap: docker +From: openeuler/openeuler + +%environment + source /etc/profile || true + cd /hpcrunner + source env.sh + +%post + # Install the necessary development environment + yum install -y environment-modules git dmidecode pciutils wget vim + # Install base gcc + yum install -y gcc gcc-c++ gcc-gfortran glibc-devel make libgfortran + # install network package + yum install -y flex tcsh tcl lsof tk bc + source /etc/profile || true + git config --global http.sslVerify false + git clone https://gitee.com/openeuler/hpcrunner + cd hpcrunner + source ./init.sh + ./jarvis -i + cp ./templates/qe/6.4/data.qe.container.opt.config . + wget --no-check-certificate https://github.com/QEF/q-e/archive/refs/tags/qe-6.4.1.tar.gz + tar -xzvf qe-6.4.1.tar.gz + # Modify the case path + sed -i 's/pseudopotentials\.d/\/hpcrunner\/workloads\/QE\/qe-test\/pseudopotentials\.d/g' ./workloads/QE/qe-test/test_3.in + # Switch config + ./jarvis -use data.qe.container.opt.config + # download dependency + ./jarvis -d + # install dependency + ./jarvis -dp + # build hpc + ./jarvis -b + # run hpc + ./jarvis -r + # clean tmp directory + rm -rf downloads tmp + +%labels + Author fang \ No newline at end of file diff --git a/container/openeuler-kgcc9-openmpi4-qe-6.4.def b/container/openeuler-kgcc9-openmpi4-qe-6.4.def index b17dd62f2276b4014658b9d8adcc26ca93950cb7..9a57c760ab838270c495ad32303bd5610b7db6ff 100644 --- a/container/openeuler-kgcc9-openmpi4-qe-6.4.def +++ b/container/openeuler-kgcc9-openmpi4-qe-6.4.def @@ -12,7 +12,7 @@ From: openeuler/openeuler # Install base gcc yum install -y gcc gcc-c++ gcc-gfortran glibc-devel make libgfortran # install network package - yum install tcsh tcl lsof tk -y + yum install -y tcsh tcl lsof tk bc source /etc/profile || true git config --global http.sslVerify false git clone https://gitee.com/openeuler/hpcrunner diff --git a/templates/qe/6.4/data.qe.container.opt.config b/templates/qe/6.4/data.qe.container.opt.config new file mode 100644 index 0000000000000000000000000000000000000000..2101d704671de058d289c11db6560c245352bd61 --- /dev/null +++ b/templates/qe/6.4/data.qe.container.opt.config @@ -0,0 +1,57 @@ +[SERVER] +11.11.11.11 + +[DOWNLOAD] +bisheng/2.1.0 https://mirrors.huaweicloud.com/kunpeng/archive/compiler/bisheng_compiler/bisheng-compiler-2.1.0-aarch64-linux.tar.gz +hmpi/1.1.1 https://github.com/kunpengcompute/hucx/archive/refs/tags/v1.1.1-huawei.zip hucx-1.1.1-huawei.zip +hmpi/1.1.1 https://github.com/kunpengcompute/hmpi/archive/refs/tags/v1.1.1-huawei.zip hmpi-1.1.1-huawei.zip +hmpi/1.1.1 https://github.com/kunpengcompute/xucg/archive/refs/tags/v1.1.1-huawei.zip xucg-1.1.1-huawei.zip +openblas/0.3.18 https://github.com/xianyi/OpenBLAS/releases/download/v0.3.18/OpenBLAS-0.3.18.tar.gz + +[DEPENDENCY] +set -x +set -e +./jarvis -install bisheng/2.1.0 com +module purge +module use ./software/modulefiles +module load bisheng2/2.1.0 +export CC=`which clang` +export CXX=`which clang++` +export FC=`which flang` +./jarvis -install hmpi/1.1.1 bisheng +module load hmpi1/1.1.1 +./jarvis -bench mpi +./jarvis -install openblas/0.3.18 bisheng + +[ENV] +source /etc/profile +module purge +module use ./software/modulefiles +module load bisheng2/2.1.0 +export CC=`which clang` +export CXX=`which clang++` +export FC=`which flang` +module load hmpi1/1.1.1 +module load openblas/0.3.18 +export BLAS_LIBS="-L${JARVIS_LIBS}/bisheng2/openblas/0.3.18/lib -lopenblas" +export LAPACK_LIBS="-L${JARVIS_LIBS}/bisheng2/openblas/0.3.18/lib -lopenblas" + +[APP] +app_name = QE +build_dir = /hpcrunner/q-e-qe-6.4.1/ +binary_dir = /hpcrunner/q-e-qe-6.4.1/bin/ +case_dir = /hpcrunner/workloads/QE/qe-test + +[BUILD] +./configure F90=flang F77=flang MPIF90=mpifort MPIF77=mpifort CC=mpicc FCFLAGS="-O3" CFLAGS="-O3" --with-scalapack=no --enable-openmp +make -j 96 pwall +make install + +[CLEAN] +make clean + +[RUN] +#container-run = mpirun --allow-run-as-root -x OMP_NUM_THREADS=1 -np 96 singularity exec xx.sif /hpcrunner/q-e-qe-6.4.1/bin pw.x -input /hpcrunner/workloads/QE/qe-test/test_3.in +run = mpirun --allow-run-as-root -x OMP_NUM_THREADS=1 -np 96 +binary = pw.x -input test_3.in +nodes = 1 \ No newline at end of file