mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-11-18 01:48:16 +08:00
Sync v13.5-public from internal repo
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
@@ -10,6 +10,11 @@ Cooperative Groups, CUDA Dynamic Parallelism
|
||||
|
||||
## Supported SM Architectures
|
||||
|
||||
SM 8.7 builds are disabled with the SBSA CUDA Toolkit. Linking its SM 8.6
|
||||
device runtime into SM 8.7 code changes the reported PTX architecture,
|
||||
which prevents Thrust from selecting the matching compiled policy.
|
||||
DriveOS toolkits retain native SM 8.7 support.
|
||||
|
||||
## Supported OSes
|
||||
|
||||
Linux, Windows
|
||||
|
||||
Reference in New Issue
Block a user