Skip to content

Commit

Permalink
[onnxruntime] disable training feature
Browse files Browse the repository at this point in the history
  • Loading branch information
luncliff committed May 3, 2024
1 parent 534822b commit e0577e4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
12 changes: 0 additions & 12 deletions ports/onnxruntime/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,6 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
cuda onnxruntime_USE_MEMORY_EFFICIENT_ATTENTION
)


if("training" IN_LIST FEATURES)
# check cmake/deps.txt
vcpkg_from_github(
OUT_SOURCE_PATH TENSORBOARD_SOURCE_PATH
REPO tensorflow/tensorboard
REF 373eb09e4c5d2b3cc2493f0949dc4be6b6a45e81
SHA512 7f76af0ee40eba93aca58178315a2e6bb7b85eefe8721567ed77aeeece13190e28202fc067e9f84f84fab21d8ac7dfcbd00c75e6e0771ed9992ff6ac6bba67c7
)
list(APPEND FEATURE_OPTIONS "-Dtensorboard_SOURCE_DIR:PATH=${TENSORBOARD_SOURCE_PATH}")
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
3 changes: 0 additions & 3 deletions ports/onnxruntime/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@
"tensorrt": {
"description": "Build with NVIDIA TensorRT support"
},
"training": {
"description": "Build with NCCL support"
},
"xnnpack": {
"description": "Build with XNNPack support",
"dependencies": [
Expand Down
3 changes: 1 addition & 2 deletions test/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
{
"name": "onnxruntime",
"features": [
"python",
"training"
"python"
],
"platform": "windows"
},
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": "dc71c42ca854b150b79ce1b8a9391edf50214c79",
"git-tree": "75f700a84db359253eb9dc9d662e17080d7c3b6e",
"version-semver": "1.17.3",
"port-version": 0
},
Expand Down

0 comments on commit e0577e4

Please sign in to comment.