Skip to content

Commit

Permalink
[onnxruntime] move NVCC flags into deps.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
luncliff committed Jan 7, 2024
1 parent 4f9f55f commit 56e065e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions ports/onnxruntime/onnxruntime_vcpkg_deps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,5 @@ if (onnxruntime_USE_CUDA)
find_package(CUDAToolkit REQUIRED)
include_directories(${CUDAToolkit_INCLUDE_DIRS})
list(APPEND onnxruntime_LINK_DIRS ${CUDAToolkit_LIBRARY_DIR})
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -diag-suppress 2803")
endif()
4 changes: 0 additions & 4 deletions ports/onnxruntime/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ if("training" IN_LIST FEATURES)
list(APPEND FEATURE_OPTIONS "-Dtensorboard_SOURCE_DIR:PATH=${TENSORBOARD_SOURCE_PATH}")
endif()

if("cuda" IN_LIST FEATURES)
list(APPEND FEATURE_OPTIONS -DCMAKE_CUDA_FLAGS="-diag-suppress 2803")
endif()

if(VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP)
# For some reason CUDA compiler detection is not working in WINDOWS_USE_MSBUILD
if(NOT ("cuda" IN_LIST FEATURES))
Expand Down
2 changes: 1 addition & 1 deletion versions/o-/onnxruntime.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"versions": [
{
"git-tree": "c84b3a4afbe389b3452d376c7aad3abb42435710",
"git-tree": "ce00adfe9695998a322ea3be0d00144b23b739f1",
"version-date": "2024-01-04",
"port-version": 0
},
Expand Down

0 comments on commit 56e065e

Please sign in to comment.