-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip MPI-CUDA demo when not building for the CUDA backend (#10)
Also remove unused variable in send_recv_usm.cpp
- Loading branch information
Showing
3 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
find_package(MPI) | ||
if(NOT MPI_FOUND) | ||
message(STATUS "MPI not found, skipping the MPI_for_CUDA_backend demo") | ||
if(NOT ENABLE_CUDA) | ||
message(STATUS "CUDA backend is disabled, skipping the MPI_for_CUDA_backend demo") | ||
else() | ||
message(STATUS "Found MPI, configuring the MPI_for_CUDA_backend demo") | ||
foreach(TARGET send_recv_usm send_recv_buff scatter_reduce_gather) | ||
add_executable(${TARGET} ${TARGET}.cpp) | ||
target_compile_options(${TARGET} PUBLIC ${SYCL_FLAGS} ${MPI_INCLUDE_DIRS}) | ||
target_link_options(${TARGET} PUBLIC ${SYCL_FLAGS} ${MPI_LIBRARIES}) | ||
endforeach() | ||
find_package(MPI) | ||
if(NOT MPI_FOUND) | ||
message(STATUS "MPI not found, skipping the MPI_for_CUDA_backend demo") | ||
else() | ||
message(STATUS "Found MPI, configuring the MPI_for_CUDA_backend demo") | ||
foreach(TARGET send_recv_usm send_recv_buff scatter_reduce_gather) | ||
add_executable(${TARGET} ${TARGET}.cpp) | ||
target_compile_options(${TARGET} PUBLIC ${SYCL_FLAGS} ${MPI_INCLUDE_DIRS}) | ||
target_link_options(${TARGET} PUBLIC ${SYCL_FLAGS} ${MPI_LIBRARIES}) | ||
endforeach() | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters