Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Linked Issue
Fix #5414
What's changed?
#!/bin/bash
PACKAGES=/work/home/acfvnd0rku/liu/packages
CC=clang CXX=clang++
cmake -B build -DUSE_OPENMP=OFF -DENABLE_LCAO=OFF
-DFFTW3_DIR=${PACKAGES}/fftw-3.3.9/build/
-DLAPACK_DIR=${PACKAGES}/OpenBLAS-0.3.21/build/lib
-DSCALAPACK_DIR=${PACKAGES}/scalapack-2.2.0/
-DUSE_ROCM=ON
cmake --build build -j50
and with the sbatch file as bellow
#!/bin/bash
#SBATCH --job-name=ABACUS_GPU
#SBATCH --partition=work
#SBATCH --nodes=1
#SBATCH --output=output.log
#SBATCH --ntasks-per-node=32
#SBATCH --mail-user=username@email
#SBATCH --gres=dcu:4 #dcu个数
#SBATCH --time=01:00:00
#SBATCH --error=error.log
abacus=/work/home/acfvnd0rku/liu/fft2/abacus-develop/build/abacus_pw
module purge
module load compiler/intel
module load compiler/devtoolset/7.3.1
module load compiler/dtk/23.10
module load compiler/cmake/3.23.3
module load mpi/intelmpi/2021.3.0
#cd your_task_path
mpirun -np 4 $abacus
the result is as follow: