Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[onnxruntime] Update to 1.16.0 #118

Merged
merged 16 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ jobs:
Pop-Location
- restore_cache:
keys:
- v2338-downs-{{ .Branch }}
- v2338-downs-{{ checksum ".circleci/config.yml" }}
- restore_cache:
keys:
- v2338-bins-{{ .Branch }}
- v2338-bins-{{ checksum ".circleci/config.yml" }}
- run:
name: "Install: port-windows.txt"
Expand All @@ -114,15 +116,13 @@ jobs:
paths:
- C:/vcpkg-bins
- save_cache:
key: v2338-downs-{{ checksum ".circleci/config.yml" }}
key: v2338-downs-{{ .Branch }}
paths:
- C:/vcpkg-downs
when: always
- C:/vcpkg-bins
- save_cache:
key: v2338-bins-{{ checksum ".circleci/config.yml" }}
key: v2338-bins-{{ .Branch }}
paths:
- C:/vcpkg-bins
when: always
- store_artifacts:
name: "Upload buildtrees log"
path: vcpkg/buildtrees/ # buildtrees-log
Expand Down
3 changes: 2 additions & 1 deletion .circleci/port-setup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ zstd:x64-windows
draco:x64-windows
civetweb:x64-windows
cgltf:x64-windows
protobuf[zlib]:x64-windows
protobuf:x64-windows
grpc[codegen]:x64-windows
flatbuffers:x64-windows
opencl:x64-windows
egl-registry:x64-windows
opengl-registry:x64-windows
vulkan-headers:x64-windows
nlohmann-json:x64-windows
3 changes: 2 additions & 1 deletion .circleci/port-windows.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
google-filament[gles3,test]:x64-windows
grpc[codegen]:x64-windows
onnxruntime[directml,xnnpack,test]:x64-windows
24 changes: 13 additions & 11 deletions ports/onnx/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,22 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
protobuf-lite ONNX_USE_LITE_PROTO
)

# Like protoc, python is required for codegen.
x_vcpkg_get_python_packages(
PYTHON_VERSION 3
PACKAGES numpy pybind11
OUT_PYTHON_VAR PYTHON3
)
if("python" IN_LIST FEATURES)
x_vcpkg_get_python_packages(
PYTHON_VERSION 3
PACKAGES numpy pybind11
OUT_PYTHON_VAR PYTHON3
)
get_filename_component(PYTHON_PATH "${PYTHON3}" PATH)
else()
vcpkg_find_acquire_program(PYTHON3)
get_filename_component(PYTHON_PATH "${PYTHON3}" PATH)
endif()
message(STATUS "Using python3: ${PYTHON3}")
get_filename_component(PYTHON_PATH "${PYTHON3}" PATH)
get_filename_component(PYTHON_ROOT "${PYTHON_PATH}" PATH)
# PATH for .bat scripts so it can find 'python'
vcpkg_add_to_path(PREPEND "${PYTHON_PATH}")

if("python" IN_LIST FEATURES)
get_filename_component(PYTHON_ROOT "${PYTHON_PATH}" PATH)
find_path(pybind11_DIR NAMES pybind11Targets.cmake PATHS "${PYTHON_ROOT}/Lib/site-packages/pybind11/share/cmake/pybind11" REQUIRED)
message(STATUS "Using pybind11: ${pybind11_DIR}")
list(APPEND FEATURE_OPTIONS
Expand Down Expand Up @@ -74,8 +77,6 @@ vcpkg_cmake_configure(
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ONNX)

file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share"
Expand Down Expand Up @@ -105,3 +106,4 @@ file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/include/onnx/onnx_data"
"${CURRENT_PACKAGES_DIR}/include/onnx/onnx_operators_ml"
)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
13 changes: 8 additions & 5 deletions ports/onnx/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "onnx",
"version-semver": "1.14.1",
"port-version": 1,
"description": "Open standard for machine learning interoperability",
"homepage": "https://onnx.ai",
"license": "Apache-2.0",
Expand All @@ -17,16 +18,18 @@
{
"name": "vcpkg-cmake-config",
"host": true
},
{
"name": "vcpkg-get-python-packages",
"host": true
}
],
"features": {
"python": {
"description": "Build Python binaries",
"supports": "x64"
"supports": "x64",
"dependencies": [
{
"name": "vcpkg-get-python-packages",
"host": true
}
]
}
}
}
Loading
Loading