Post v13.5 (#470)

This commit is contained in:
Dheemanth
2026-11-04 12:48:54 -08:00
committed by GitHub
parent 5443602d89
commit 0ec046d5e9
53 changed files with 1750 additions and 183 deletions

View File

@@ -4,10 +4,16 @@ cmake_minimum_required(VERSION 3.20)
# toolkit ships only for the native Tegra archs; drop the desktop archs there.
get_filename_component(_ctk_root "${CMAKE_CUDA_COMPILER}" DIRECTORY)
get_filename_component(_ctk_root "${_ctk_root}" DIRECTORY)
if(EXISTS "${_ctk_root}/targets/aarch64-linux" OR EXISTS "${_ctk_root}/targets/aarch64-qnx")
file(GLOB _tegra_targets "${_ctk_root}/targets/aarch64-linux*" "${_ctk_root}/targets/aarch64-qnx*")
if(_tegra_targets)
set(SAMPLE_DISALLOW_ARCHS 75 80 86 89 90 100 103 107 120)
else()
# The sm_86 device runtime changes the linked PTX architecture of sm_87
# code, so Thrust cannot select the matching compiled policy.
set(SAMPLE_DISALLOW_ARCHS 87)
endif()
unset(_ctk_root)
unset(_tegra_targets)
include("${CMAKE_CURRENT_SOURCE_DIR}/../../../cmake/DetectCudaArch.cmake")