Skip to content

Conversation

@A-006
Copy link
Collaborator

@A-006 A-006 commented Nov 21, 2024

Linked Issue

Fix #5414

What's changed?

  • Change the DCU FFT.
  • With the help of @Qianruipku ,the complie link error has been finished.
  • In the DCU file, i use the complie instruction as bellow
    #!/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:
img_v3_02gr_6e3c89ac-ca18-436b-a5d0-c0f1a1cccc6g

@A-006 A-006 requested a review from Qianruipku November 21, 2024 11:30
@mohanchen mohanchen added the Compile & CICD & Docs & Dependencies Issues related to compiling ABACUS label Nov 22, 2024
@mohanchen mohanchen changed the title update the dcu compile update the DCU compile Nov 23, 2024
@Qianruipku Qianruipku merged commit 0fd832e into deepmodeling:develop Nov 26, 2024
14 checks passed
Fisherd99 pushed a commit to Fisherd99/abacus-BSE that referenced this pull request Mar 31, 2025
* update the duc compile

* update the FFT_CUDA in the fft_bundle.cpp

* update the rcom to rocm

---------

Co-authored-by: Qianrui Liu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Compile & CICD & Docs & Dependencies Issues related to compiling ABACUS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Daily DCU test failed since 20241102

4 participants