Skip to content

Commit

Permalink
remove more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
white238 committed Mar 15, 2024
1 parent 8af1712 commit 4557274
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/projects/cuda-arch/downstream/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,6 @@ if (NOT TARGET blt::cuda)
"downstream project configuration.")
endif()

# Check that the cuda target created during the `find_package` call contains the expected
# user provided flags for clang cuda.
get_target_property(cuda_compile_flags blt::cuda INTERFACE_COMPILE_OPTIONS)

message(STATUS "CUDA target created with compile flags set to: ${cuda_compile_flags}")

string(FIND "${cuda_compile_flags}" "-x" clang_cuda_flag)
string(FIND "${cuda_compile_flags}" "sm_70" clang_cuda_arch)
string(FIND "${cuda_compile_flags}" "/usr/tce/packages/cuda/cuda-11.2.0" expected_cuda_toolkit_dir)

if (expected_cuda_toolkit_dir EQUAL -1)
message(FATAL_ERROR "Expected downstream project config flags to inherit upstream project's when alternative is not specified.")
endif()

# Compile a basic example to test correctness of link and compile flags.
blt_add_executable(
NAME hello-cuda
Expand Down

0 comments on commit 4557274

Please sign in to comment.