Skip to content

Commit

Permalink
style(cuda): split the cuda and cxx settings for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
pplmx committed Sep 11, 2024
1 parent 116437c commit 283a176
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions template/cuda/{{cookiecutter.project_slug}}/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ project({{cookiecutter.project_slug}}

# ===================== Build Settings =====================

# Set C++ and CUDA standards
# Set CXX standards
set(CMAKE_CXX_STANDARD {{cookiecutter.cxx_standard_version}})
set(CMAKE_CUDA_STANDARD {{cookiecutter.cuda_standard_version}})
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CUDA_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

# Set CUDA standards
set(CMAKE_CUDA_STANDARD {{cookiecutter.cuda_standard_version}})
set(CMAKE_CUDA_STANDARD_REQUIRED ON)
set(CMAKE_CUDA_EXTENSIONS OFF)
set(CMAKE_CUDA_ARCHITECTURES 80)

Expand Down

0 comments on commit 283a176

Please sign in to comment.