Changes for building for aarch64, specifically jetson orin nano

This commit is contained in:
Jonathan Bentz
2025-01-08 17:05:45 -06:00
parent 1e0c660f22
commit a1cf9e4183
15 changed files with 189 additions and 120 deletions

View File

@@ -16,10 +16,14 @@ include_directories(../../../Common)
# Source file
# Add target for simpleP2P
add_executable(simpleP2P simpleP2P.cu)
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
message(STATUS "Will not build sample simpleP2P - not supported on aarch64")
else()
add_executable(simpleP2P simpleP2P.cu)
target_compile_options(simpleP2P PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:--extended-lambda>)
target_compile_options(simpleP2P PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:--extended-lambda>)
target_compile_features(simpleP2P PRIVATE cxx_std_17 cuda_std_17)
target_compile_features(simpleP2P PRIVATE cxx_std_17 cuda_std_17)
set_target_properties(simpleP2P PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
set_target_properties(simpleP2P PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
endif()