From d9a1cc06c1aea3fdf18bf5b040bbe3811b027fbb Mon Sep 17 00:00:00 2001 From: Basil Milanich Date: Mon, 6 Apr 2026 13:33:05 -0500 Subject: [PATCH] Fix repro build: add -arch=native to use correct GPU architecture NVCC 13.1 defaults to a PTX version incompatible with the installed driver (580.105.08), causing kernels to silently fail with "provided PTX was compiled with an unsupported toolchain". Use -arch=native so NVCC auto-detects the target GPU (H100, sm_90) at build time. Co-Authored-By: Claude Sonnet 4.6 --- examples/CUDAGraphRepro/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/CUDAGraphRepro/Makefile b/examples/CUDAGraphRepro/Makefile index 665f2e89..a59098cd 100644 --- a/examples/CUDAGraphRepro/Makefile +++ b/examples/CUDAGraphRepro/Makefile @@ -10,8 +10,8 @@ LIBS := -L$(CUPTI_LIB) -lcuda -lcupti -lpthread -ldl CXXFLAGS_REL := -O2 -DTRACY_ENABLE CXXFLAGS_DBG := -g -O0 -DTRACY_ENABLE -NVCCFLAGS_REL := -O2 -DTRACY_ENABLE -NVCCFLAGS_DBG := -g -O0 -DTRACY_ENABLE +NVCCFLAGS_REL := -arch=native -O2 -DTRACY_ENABLE +NVCCFLAGS_DBG := -arch=native -g -O0 -DTRACY_ENABLE .PHONY: all debug clean