|
|
老师您好,我重新写了一个脚本,如下,但是它仍旧产生一个报错,无法进行计算,报错如下图
- #!/bin/bash
- #SBATCH -J CP2K ## Job name
- #SBATCH -p pBigNode ## Partition
- #SBATCH --ntasks-per-node=48 ## Job will launch a maximum of number tasks per node
- #SBATCH --cpus-per-task=1 ## Ncpus number of processors per task
- #SBATCH --time=72:00:00 ## Time for the job
- #SBATCH --nodes=1 ## Number of nodes
- #SBATCH --mail-type=END,FAIL
- ulimit -s unlimited
- # Initialize modules and load modules
- module load compilers/gnu/11.1.1
- source /gpfs/home/zhangy10/Software/cp2k-2025.1/tools/toolchain/install/setup
- export PATH=$PATH:/gpfs/home/zhangy10/Software/cp2k-2025.1/exe/local
- export OMPI_MCA_btl_openib_allow_ib=1
- # Run the calculation
- INPUT_FILE=$1
- OUTPUT_FILE="${INPUT_FILE%.*}.out"
- mpirun -np $SLURM_NTASKS cp2k.popt -i $INPUT_FILE -o $OUTPUT_FILE
- exit
复制代码 |
|