Skip to content

Commit

Permalink
feat: onnxruntime_NVCC_THREADS
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 17, 2024
1 parent 62021da commit fa22b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vcpkg-overlay/ports/maa-onnxruntime/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ vcpkg_execute_build_process(
set(PLATFORM_OPTIONS )

if(VCPKG_TARGET_IS_WINDOWS)
set(PLATFORM_OPTIONS ${PLATFORM_OPTIONS} "-Donnxruntime_USE_DML=ON" "-Donnxruntime_USE_CUDA=ON" "-Donnxruntime_CUDA_MINIMAL=ON")
set(PLATFORM_OPTIONS ${PLATFORM_OPTIONS} "-Donnxruntime_USE_DML=ON" "-Donnxruntime_USE_CUDA=ON" "-Donnxruntime_NVCC_THREADS=0")
elseif(VCPGK_TARGET_IS_LINUX)
set(PLATFORM_OPTIONS ${PLATFORM_OPTIONS} "-Donnxruntime_USE_CUDA=ON" "-Donnxruntime_CUDA_MINIMAL=ON")
set(PLATFORM_OPTIONS ${PLATFORM_OPTIONS} "-Donnxruntime_USE_CUDA=ON")
elseif(VCPKG_TARGET_IS_OSX)
set(PLATFORM_OPTIONS ${PLATFORM_OPTIONS} "-Donnxruntime_USE_COREML=ON")
endif()
Expand Down

0 comments on commit fa22b82

Please sign in to comment.