在 3.27 版本中新增。
在 目标库 中将 CUDA 源文件编译为 .fatbin 文件,而不是 .obj 文件。
.fatbin
.obj
例如
add_library(myfbins OBJECT a.cu b.cu) set_property(TARGET myfbins PROPERTY CUDA_FATBIN_COMPILATION ON)
CUDA_EXTENSIONS
CUDA_OPTIX_COMPILATION