Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New hybrid MPI + OpenMP test program #43

Merged
merged 2 commits into from
Aug 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ add_executable(
test-hwloc.c
)

add_test(
threads
test-threads
)

if (OPENMP_FOUND)
target_link_libraries(
test-hwloc
Expand Down Expand Up @@ -144,6 +149,21 @@ if(MPI_FOUND)
test-mpi-getdev
quo-vadis-mpi
)
################" HYBRID TESTS #####################
####################################################
if(OPENMP_FOUND)
add_executable(
test-mpi-threads
test-mpi-threads.c
)

target_link_libraries(
test-mpi-threads
quo-vadis
quo-vadis-mpi
OpenMP::OpenMP_C
)
endif()
endif()

if (OPENMP_FOUND)
Expand Down Expand Up @@ -270,10 +290,18 @@ set_target_properties(
test-mpi-scopes
PROPERTIES LINKER_LANGUAGE C
)

if (OPENMP_FOUND)
set_target_properties(
test-mpi-threads
PROPERTIES LINKER_LANGUAGE C
)
endif()
endif()

# Set test timeout
set_tests_properties(
threads
hwloc
rmi
scopes
Expand Down
Loading