[AMBER] Compiling AMBER24 for AMDGPU - undeclared identifier 'cusparseErrorCheck'

From: Robert Welch - STFC UKRI via AMBER <amber.ambermd.org>
Date: Mon, 3 Jun 2024 16:06:28 +0000

Hi all,

Has anyone here had success compiling Amber24 with -DHIP-ON? I'm trying to compile on archer2. Here's what I'm doing:

module load PrgEnv-amd
module load rocm
module load craype-accel-amd-gfx90a
export CC=/opt/rocm/bin/amdclang
export CXX=/opt/rocm/bin/amdclang++
export FC=/usr/bin/gfortran
cmake $AMBER_PREFIX/amber24_src -DCMAKE_INSTALL_PREFIX=$AMBER_PREFIX/amber24 -DHIP=ON -DMPI=FALSE -DCUDA=FALSE -DINSTALL_TESTS=TRUE -DDOWNLOAD_MINICONDA=FALSE -DBUILD_PYTHON=FALSE -DCMAKE_SHARED_LINKER_FLAGS='-lm' -DCMAKE_FORTRAIN_COMPILER=/usr/bin/gfortran -DHIP_TOOLKIT_ROOT_DIR=/opt/rocm -DCOMPILER=MANUAL

This loads rocm 5.2.3 and clang 15.0.0. cmake runs without errors, but when I make, I only get 78% of the way through before it fails while trying to compileAmberTools/src/pbsa/cusparse_LinearSolvers.cu.

/work/c01/c01/rwelch/software/amberhip/Amber24/amber24_src/AmberTools/src/pbsa/cusparse_LinearSolvers.cu:48:5: error: use of undeclared identifier 'cusparseErrorCheck'
    cusparseErrorCheck(cusparseStatus);
    ^
/work/c01/c01/rwelch/software/amberhip/Amber24/amber24_src/AmberTools/src/pbsa/cusparse_LinearSolvers.cu:96:5: error: use of undeclared identifier 'cusparseErrorCheck'
    cusparseErrorCheck(cusparseStatus);
    ^
/work/c01/c01/rwelch/software/amberhip/Amber24/amber24_src/AmberTools/src/pbsa/cusparse_LinearSolvers.cu:198:5: error: use of undeclared identifier 'cusparseErrorCheck'
    cusparseErrorCheck(cusparseStatus);
    ^
/work/c01/c01/rwelch/software/amberhip/Amber24/amber24_src/AmberTools/src/pbsa/cusparse_LinearSolvers.cu:250:5: error: use of undeclared identifier 'cusparseErrorCheck'
    cusparseErrorCheck(cusparseStatus);
    ^

I am a little confused by this message, because it looks like cusparseErrorCheck is defined in Ambertools/src/pbsa/helper_cuda.h which is included in cusparse_LinearSovers.cu.

Many thanks,

Rob
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Mon Jun 03 2024 - 09:30:02 PDT
Custom Search