Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update the DCU compile #5563

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open

update the DCU compile #5563

wants to merge 9 commits into from

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

@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
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