在 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