Skip to content

Commit 75cbf6c

Browse files
Jieyang ChenJieyangChen7
authored andcommitted
Fix build with 3rd party programs when using HIP
1 parent c7245a2 commit 75cbf6c

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

build_scripts/build_mgard_adios2_hip_frontier.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
set -e
1010
set -x
1111

12-
module load rocm/5.5.1
12+
module load rocm/6.3.1
1313
module load cmake
1414

1515
######## User Configurations ########
1616
# Source directory
1717
mgard_x_src_dir=.
1818
# Build directory
19-
build_dir=./build-hip-crusher
19+
build_dir=./build-hip-frontier-adios2
2020
# Number of processors used for building
2121
num_build_procs=$1
2222
# Installtaion directory
23-
install_dir=./install-hip-crusher
23+
install_dir=./install-hip-frontier-adios2
2424

2525
export LD_LIBRARY_PATH=$(pwd)/${install_dir}/lib:$LD_LIBRARY_PATH
2626
export LD_LIBRARY_PATH=$(pwd)/${install_dir}/lib64:$LD_LIBRARY_PATH

build_scripts/build_mgard_hip_frontier.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
set -e
1010
set -x
1111

12-
module load rocm/5.5.1
12+
module load rocm/6.3.1
1313
module load cmake
1414

1515
######## User Configurations ########

cmake/mgard-config.cmake.in

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,21 @@ if(@CUDAToolkit_FOUND@)
2323
list(APPEND REQUIRED_VARS CUDAToolkit_FOUND)
2424
endif()
2525

26+
if(@HIP_FOUND@)
27+
find_dependency(HIP)
28+
list(APPEND REQUIRED_VARS HIP_FOUND)
29+
endif()
30+
31+
if(@rocprim_FOUND@)
32+
find_dependency(rocprim)
33+
list(APPEND REQUIRED_VARS rocprim_FOUND)
34+
endif()
35+
36+
if(@hipcub_FOUND@)
37+
find_dependency(hipcub)
38+
list(APPEND REQUIRED_VARS hipcub_FOUND)
39+
endif()
40+
2641
if(@MOAB_FOUND@)
2742
find_dependency(MOAB)
2843
list(APPEND REQUIRED_VARS MOAB_FOUND)

0 commit comments

Comments
 (0)