版本CUDA12.4,VS2022,Libtorch-2.4Debug版本
问题关键在VS项目属性->链接器->附加依赖项
在这里输入
D:\APP\CUDA\v12.4\lib\x64\*.lib
c10.lib
c10_cuda.lib
torch_cpu.lib
torch_cuda.lib
-INCLUDE:?warp_size@cuda@at@@YAHXZ
其中
D:\APP\CUDA\v12.4\lib\x64\*.lib
是CUDA的lib文件地址
版本CUDA12.4,VS2022,Libtorch-2.4Debug版本
问题关键在VS项目属性->链接器->附加依赖项
在这里输入
D:\APP\CUDA\v12.4\lib\x64\*.lib
c10.lib
c10_cuda.lib
torch_cpu.lib
torch_cuda.lib
-INCLUDE:?warp_size@cuda@at@@YAHXZ
其中
D:\APP\CUDA\v12.4\lib\x64\*.lib
是CUDA的lib文件地址