Skip to content

Commit

Permalink
Make: Build CUDA for multiple platforms
Browse files Browse the repository at this point in the history
Currently covering Volta, Turing, Ampere,
Ada Lovelace, and Hopper.
  • Loading branch information
ashvardanian committed Jan 27, 2025
1 parent 1bdb5df commit 3283ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ endif()
if(CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA" OR CMAKE_CUDA_COMPILER_ID STREQUAL "NVHPC")
set_property(SOURCE less_slow.cpp PROPERTY LANGUAGE CUDA)
set_target_properties(less_slow PROPERTIES POSITION_INDEPENDENT_CODE ON)
set_target_properties(less_slow PROPERTIES CUDA_ARCHITECTURES "86")
set_target_properties(less_slow PROPERTIES CUDA_ARCHITECTURES "70;75;80;89;90")
target_compile_options(less_slow PRIVATE
-Wfatal-errors # Stop on first error
-fopenmp # OpenMP support, also requires linking
Expand Down

0 comments on commit 3283ab0

Please sign in to comment.