Sync v13.5-public from internal repo

This commit is contained in:
cuda-samples sync
2026-11-04 20:44:00 +00:00
parent 5443602d89
commit a9315c55fb
53 changed files with 1750 additions and 183 deletions

View File

@@ -33,12 +33,14 @@ target_link_libraries(ptxjit PUBLIC
set(CUDA_PTX_FILE "${CMAKE_CURRENT_BINARY_DIR}/ptxjit_kernel64.ptx")
set(CUDA_KERNEL_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/ptxjit_kernel.cu")
if(CMAKE_SYSTEM_NAME STREQUAL "QNX")
set(INCLUDES_LIST)
# This custom command does not inherit CMAKE_CUDA_FLAGS (e.g. --target-directory), so pass the
# toolkit include dirs explicitly. On aarch64 (Tegra/QNX/SBSA) the toolkit may keep its headers
# in a chip-suffixed targets/ dir that nvcc does not search by default.
set(INCLUDES)
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
foreach(dir ${CUDAToolkit_INCLUDE_DIRS})
list(APPEND INCLUDES_LIST "-I${dir}")
list(APPEND INCLUDES "-I${dir}")
endforeach()
string(JOIN " " INCLUDES "${INCLUDES_LIST}")
endif()
add_custom_command(