update to build system: (#277)

- make adding PMIx library to compile time based on the result of
  finding PMIx support. This is required eg if compiling rocSHMEM with ompi
  4.0/4.1, which do not have a built-in PMIx version.
- when setting USE_EXTERNAL_MPI=OFF  which ensures that we do not
  check for external MPI libraries (even if one would be available).
This commit is contained in:
Edgar Gabriel
2025-10-17 07:42:11 -05:00
committed by GitHub
parent 3cfe76522e
commit ed957302d4
4 changed files with 10 additions and 7 deletions
+1 -3
View File
@@ -73,8 +73,6 @@ target_sources(
###############################################################################
if (BUILD_TESTS_ONLY)
#TODO check that build_test_only still works with external-mpi
#find_package(MPI REQUIRED)
#find_package(hip REQUIRED PATHS /opt/rocm)
find_package(rocshmem REQUIRED PATHS /opt/rocm)
target_include_directories(
@@ -97,5 +95,5 @@ target_link_libraries(
${PROJECT_NAME}
PRIVATE
roc::rocshmem
PMIx::pmix
$<$<BOOL:${PMIx_FOUND}>:PMIx::pmix>
)