在 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