Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rscohn2 committed Oct 25, 2023
1 parent 18dc739 commit 943ae81
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
endif()
endif()

# Make this first to workaround issue with device memory and MPI
add_subdirectory(test/gtest/mhp)

if(ENABLE_SYCL)
# disables rng::detail::box_compress::coalesce which causes rng::box to use
# global non-const variable, which can not be used in SYCL kernels
Expand All @@ -260,7 +263,6 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
add_subdirectory(examples/serial)
add_subdirectory(test/gtest/serial)
add_subdirectory(examples/mhp)
add_subdirectory(test/gtest/mhp)
add_subdirectory(benchmarks/gbench)

# Requires clang, icpx/llvm nightly do not support the tools
Expand Down
8 changes: 6 additions & 2 deletions test/gtest/mhp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ if(ENABLE_ISHMEM)
ze_loader fabric)
endif()

# Make this first to workaround issue with device memory and MPI
if(ENABLE_SYCL)
add_mpi_offload_test(mhp-sycl-device-tests-2 mhp-tests 2 --sycl
--device-memory --gtest_filter=-*Slide*)
endif()

add_mpi_test(mhp-quick-test-1 mhp-quick-test 1)
add_mpi_test(mhp-quick-test-2 mhp-quick-test 2)
add_mpi_test(mhp-sycl-quick-test-1 mhp-quick-test 1 --sycl)
Expand All @@ -91,8 +97,6 @@ add_mpi_test(mhp-tests-4 mhp-tests 4)
add_mpi_test(mhp-tests-3-only mhp-tests-3 3)

if(ENABLE_SYCL)
add_mpi_offload_test(mhp-sycl-device-tests-2 mhp-tests 2 --sycl
--device-memory --gtest_filter=-*Slide*)
if(NOT MPI_IMPL STREQUAL "openmpi")
# MPI_Win_create fails for communicator with size 1
add_mpi_test(mhp-sycl-tests-1 mhp-tests 1 --sycl --gtest_filter=-*Slide*)
Expand Down

0 comments on commit 943ae81

Please sign in to comment.