Skip to content

Commit

Permalink
clean up options
Browse files Browse the repository at this point in the history
  • Loading branch information
white238 committed Jun 17, 2022
1 parent 8434881 commit fc66efa
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions cmake/BLTOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,16 @@ option(ENABLE_FORTRAN "Enables Fortran compiler support" ${_fortran_already
option(ENABLE_MPI "Enables MPI support" OFF)
option(ENABLE_OPENMP "Enables OpenMP compiler support" OFF)
option(ENABLE_CUDA "Enable CUDA support" OFF)
cmake_dependent_option(ENABLE_CLANG_CUDA "Enable Clang's native CUDA support" OFF
"ENABLE_CUDA" OFF)
mark_as_advanced(ENABLE_CLANG_CUDA)
set(BLT_CLANG_CUDA_ARCH "sm_30" CACHE STRING "Compute architecture to use when generating CUDA code with Clang")
mark_as_advanced(BLT_CLANG_CUDA_ARCH)
option(ENABLE_HIP "Enable HIP support" OFF)

option(ENABLE_HIP "Enable HIP support" OFF)
set(CMAKE_HIP_ARCHITECTURES "gfx900" CACHE STRING "gfx architecture to use when generating HIP/ROCm code")

option(BLT_CUDA_LINK_WITH_NVCC "Enable linking with NVCC" OFF)
set(_link_with_nvcc OFF)
if (DEFINED CUDA_LINK_WITH_NVCC)
message(WARNING "CUDA_LINK_WITH_NVCC is deprecated and will eventually be removed.")
set(BLT_CUDA_LINK_WITH_NVCC ${CUDA_LINK_WITH_NVCC})
set(_link_with_nvcc ${CUDA_LINK_WITH_NVCC})
endif()
option(BLT_CUDA_LINK_WITH_NVCC "Enable linking with NVCC" ${_link_with_nvcc})

#------------------------------------------------------------------------------
# Test Options
Expand Down

0 comments on commit fc66efa

Please sign in to comment.