Skip to content

Commit

Permalink
remove clang-cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
white238 committed Mar 15, 2024
1 parent f6a4f05 commit 8af1712
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions tests/projects/cuda-arch/downstream/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@ cmake_minimum_required(VERSION 3.14)

project(cuda-clang-cpp-user LANGUAGES CXX)

set(ENABLE_CLANG_CUDA On CACHE BOOL "")
set(BLT_CLANG_CUDA_ARCH "sm_70" CACHE STRING "")
set(CMAKE_CUDA_SEPARABLE_COMPILATION On CACHE BOOL "")
# Load BLT
include(${BLT_SOURCE_DIR}/SetupBLT.cmake)

set(BLT_CXX_STD c++14 CACHE STRING "")
# Calling find_package sets up the TPL targets needed by the project
# in its argument.
find_package(cuda-clang-cpp REQUIRED
Expand All @@ -29,15 +25,7 @@ message(STATUS "CUDA target created with compile flags set to: ${cuda_compile_fl

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.1.0" expected_cuda_toolkit_dir)

if (clang_cuda_flag EQUAL -1)
message(FATAL_ERROR "Expected downstream project CLANG CUDA config flags to override upstream project's.")
endif()

if(clang_cuda_arch EQUAL -1)
message(FATAL_ERROR "Expected downstream project CLANG CUDA cuda arch config flags to override upstream project's.")
endif()
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.")
Expand Down

0 comments on commit 8af1712

Please sign in to comment.