cmake_minimum_required(VERSION 3.28)
project(OpenCV)
set(CMAKE_CXX_STANDARD 17)
find_package(Torch REQUIRED)
find_package(libcudacxx REQUIRED)
add_executable(Torch main.cpp)
target_link_libraries(Torch ${TORCH_LIBRARIES})
libtorch + cuda12.5 cmake配置
最新推荐文章于 2024-11-08 21:42:04 发布