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

build CUDA smoketest if CUDA is found #168

Merged
merged 2 commits into from
Sep 28, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
5 changes: 0 additions & 5 deletions src/c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ cmake_minimum_required(VERSION 3.12)

project(PerfFlowAspect VERSION "0.1.0")

# Build Options
option(PERFFLOWASPECT_WITH_CUDA "Build CUDA smoketest" ON)
option(PERFFLOWASPECT_WITH_MPI "Build MPI smoketest" ON)
option(PERFFLOWASPECT_WITH_MULTITHREADS "Build multi-threaded smoketest" ON)

# Fail if using Clang < 9.0
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
# require at least Clang 9.0
Expand Down
11 changes: 11 additions & 0 deletions src/c/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ foreach(TEST ${SMOKETESTS})
target_link_libraries(${TEST} ${perfflow_deps})
endforeach()

# Build Options
option(PERFFLOWASPECT_WITH_MULTITHREADS "Build multi-threaded smoketest" ON)
find_package(CUDA QUIET)
if(CUDA_FOUND)
option(PERFFLOWASPECT_WITH_CUDA "Build CUDA smoketest" ON)
endif()
find_package(MPI QUIET)
if(MPI_FOUND)
option(PERFFLOWASPECT_WITH_MPI "Build MPI smoketest" ON)
endif()

if(PERFFLOWASPECT_WITH_MULTITHREADS)
message(STATUS " [*] Adding test: smoketest_MT")
add_executable(smoketest_MT smoketest_MT.cpp)
Expand Down
Loading