You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build: refactor CUDA macros, adjust CUDA_TARGET_ARCH by CUDA version
Shuffle some options and macros among cmake files. Ensure that most
"find dependencies" logic is in externalpackages.cmake, and move more
options and logic related to "how do we compile to ptx and link
against cuda/optix" into cuda_macros.
The CUDA target architecture had been sm_60 for a long time, but CUDA
Toolkit 13.0+ doesn't target that old an architecture. So make the
architecture dependent on CUDA vrsion -- 13+ gets sm_75 as its default
now (still overrideable by setting build option
CUDA_TARGET_ARCH_NUMBER, but if CUDA <= 12.x is found, it gets a
default target of sm_60 in order to allow a wider range of target
cards.
Some other miscellaneous cleanup here and there.
Signed-off-by: Larry Gritz <lg@larrygritz.com>
0 commit comments