Open adayton1 opened 1 year ago
@robinson96 found a workaround where we add blt::hip as a dependency to multimat, sidre, and slam. We are still using hipcc, with support for that added to BLT, so I'm not sure if this is a general issue or just related to our particular environment.
Reformatting the build line to make it easier to read:
cd axom/build-toss4_mi250x_cray_rocm-relwithdebinfo/axom/multimat &&
/usr/tce/packages/cray-mpich-tce/cray-mpich-8.1.21-rocmcc-5.4.3/bin/mpiamdclang++ \
-DCAMP_HAVE_HIP \
-D__HIP_PLATFORM_AMD__=1 \
-D__HIP_PLATFORM_HCC__=1 \
-Iaxom/build-toss4_mi250x_cray_rocm-relwithdebinfo/include \
-Iinstall/camp/include \
-Iinstall/umpire/include \
-Iinstall/raja/include \
-Iaxom/src/axom/core/../.. \
-isystem /axom/src/thirdparty \
-isystem /usr/tce/packages/rocmcc/rocmcc-5.4.3-magic/include \
-ffp-model=strict -fbracket-depth=512 -g -O3 -fdebug-default-version=4 -fPIC -std=c++17 \
-MD -MT \
axom/multimat/CMakeFiles/multimat.dir/multimat.cpp.o \
-MF \
CMakeFiles/multimat.dir/multimat.cpp.o.d \
-o CMakeFiles/multimat.dir/multimat.cpp.o \
-c axom/src/axom/multimat/multimat.cpp
Happy to hear you have a solution @adayton1 and @robinson96
We've had to explicitly add some extra cuda
target dependencies to our components, so it doesn't seem completely unexpected to need additional blt::hip
dependencies.
I suspect it's related to our usage of object libraries within our components. @white238 is hoping to refactor this in the near future.
Build command:
Error message: