Update all samples to build position-independent code

This commit is contained in:
Rob Armstrong
2025-01-09 09:55:07 -08:00
parent e8492d1a78
commit f753e86e7a
197 changed files with 418 additions and 19 deletions

View File

@@ -6,6 +6,8 @@ project(cuSolverRf LANGUAGES C CXX)
find_package(CUDAToolkit REQUIRED)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_CUDA_ARCHITECTURES 50 52 60 61 70 75 80 86 89 90)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
# set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -G") # enable cuda-gdb (expensive)