Skip to content

Commit 4afc95c

Browse files
Merge branch 'microsoft:main' into jclohess_kleidiai_gemv_implementation
2 parents c9dab46 + 0600482 commit 4afc95c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+980
-319
lines changed

cmake/deps.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protoc_mac_universal;https://github.com/protocolbuffers/protobuf/releases/downlo
4747
psimd;https://github.com/Maratyszcza/psimd/archive/072586a71b55b7f8c584153d223e95687148a900.zip;1f5454b01f06f9656b77e4a5e2e31d7422487013
4848
pthreadpool;https://github.com/google/pthreadpool/archive/dcc9f28589066af0dbd4555579281230abbf74dd.zip;533a77943203ef15ca608bcd9dbe2c94da7451d2
4949
pybind11;https://github.com/pybind/pybind11/archive/refs/tags/v2.13.6.zip;f780292da9db273c8ef06ccf5fd4b623624143e9
50-
pytorch_cpuinfo;https://github.com/pytorch/cpuinfo/archive/de0ce7c7251372892e53ce9bc891750d2c9a4fd8.zip;c45b8d3619b9bccbd26dc5f657959aee38b18b7a
50+
pytorch_cpuinfo;https://github.com/pytorch/cpuinfo/archive/877328f188a3c7d1fa855871a278eb48d530c4c0.zip;9152d4bf6b8bde9f19b116de3bd8a745097ed9df
5151
re2;https://github.com/google/re2/archive/refs/tags/2024-07-02.zip;646e1728269cde7fcef990bf4a8e87b047882e88
5252
safeint;https://github.com/dcleblanc/SafeInt/archive/refs/tags/3.0.28.zip;23f252040ff6cb9f1fd18575b32fa8fb5928daac
5353
tensorboard;https://github.com/tensorflow/tensorboard/archive/373eb09e4c5d2b3cc2493f0949dc4be6b6a45e81.zip;67b833913605a4f3f499894ab11528a702c2b381

cmake/external/onnxruntime_external_deps.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ if(onnxruntime_USE_VCPKG)
440440
find_package(flatbuffers REQUIRED)
441441
else()
442442
# We do not need to build flatc for iOS or Android Cross Compile
443-
if (CMAKE_SYSTEM_NAME STREQUAL "iOS" OR CMAKE_SYSTEM_NAME STREQUAL "Android" OR CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
443+
if (CMAKE_SYSTEM_NAME STREQUAL "iOS" OR CMAKE_SYSTEM_NAME STREQUAL "tvOS" OR CMAKE_SYSTEM_NAME STREQUAL "visionOS" OR CMAKE_SYSTEM_NAME STREQUAL "Android" OR CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
444444
set(FLATBUFFERS_BUILD_FLATC OFF CACHE BOOL "FLATBUFFERS_BUILD_FLATC" FORCE)
445445
endif()
446446
set(FLATBUFFERS_BUILD_TESTS OFF CACHE BOOL "FLATBUFFERS_BUILD_TESTS" FORCE)

cmake/onnxruntime_python.cmake

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,13 +962,33 @@ if (onnxruntime_USE_TENSORRT)
962962
endif()
963963

964964
if (onnxruntime_USE_NV)
965+
if (WIN32 OR ${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
966+
file(GLOB NV_LIB_FILES LIST_DIRECTORIES false "${TENSORRT_RTX_ROOT}/lib/tensorrt_*.dll"
967+
"${TENSORRT_RTX_ROOT}/bin/tensorrt_*.dll"
968+
"${TENSORRT_RTX_ROOT}/lib/libtensorrt_*.so"
969+
"${TENSORRT_RTX_ROOT}/bin/libtensorrt_*.so")
970+
message(STATUS "NV lib files: " ${NV_LIB_FILES})
971+
endif()
965972
add_custom_command(
966973
TARGET onnxruntime_pybind11_state POST_BUILD
967974
COMMAND ${CMAKE_COMMAND} -E copy
975+
${NV_LIB_FILES}
968976
$<TARGET_FILE:onnxruntime_providers_nv_tensorrt_rtx>
969977
$<TARGET_FILE:onnxruntime_providers_shared>
970978
$<TARGET_FILE_DIR:${build_output_target}>/onnxruntime/capi/
971979
)
980+
if (EXISTS "${TENSORRT_RTX_ROOT}/doc/LICENSE.txt")
981+
add_custom_command(
982+
TARGET onnxruntime_pybind11_state POST_BUILD
983+
COMMAND ${CMAKE_COMMAND} -E copy "${TENSORRT_RTX_ROOT}/doc/LICENSE.txt" $<TARGET_FILE_DIR:${build_output_target}>/onnxruntime/TRT_RTX_LICENSE.txt
984+
)
985+
endif()
986+
if (EXISTS "${TENSORRT_RTX_ROOT}/doc/Acknowledgements.txt")
987+
add_custom_command(
988+
TARGET onnxruntime_pybind11_state POST_BUILD
989+
COMMAND ${CMAKE_COMMAND} -E copy "${TENSORRT_RTX_ROOT}/doc/Acknowledgements.txt" $<TARGET_FILE_DIR:${build_output_target}>/onnxruntime/TRT_RTX_Acknowledgements.txt
990+
)
991+
endif()
972992
endif()
973993

974994
if (onnxruntime_USE_MIGRAPHX)

cmake/vcpkg-ports/cpuinfo/portfile.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ endif()
66
vcpkg_from_github(
77
OUT_SOURCE_PATH SOURCE_PATH
88
REPO pytorch/cpuinfo
9-
REF de0ce7c7251372892e53ce9bc891750d2c9a4fd8
10-
SHA512 0fde9210b700d2648d37c8deeb0d5c0d007d8ca5689578dd3bce4c460886b20d7649f0194d2ea06b02238fe9d4f06193599ec3ab5cafb19f1f860b00404264fa
9+
REF 877328f188a3c7d1fa855871a278eb48d530c4c0
10+
SHA512 b6d5a9ce9996eee3b2f09f39115f7ae178fe4d4814cc35b049a59d04a82228e268aa52d073c307ccb56a427428622940e1c77f004c99851dfca0d3a5d803658b
1111
HEAD_REF master
1212
PATCHES
1313
patch_cpuinfo_h_for_arm64ec.patch

cmake/vcpkg-ports/cpuinfo/vcpkg.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cpuinfo",
3-
"version-date": "2024-12-09",
4-
"port-version": 3,
3+
"version-date": "2025-10-23",
4+
"port-version": 4,
55
"description": "CPU INFOrmation library (x86/x86-64/ARM/ARM64, Linux/Windows/Android/macOS/iOS)",
66
"homepage": "https://github.com/pytorch/cpuinfo",
77
"license": "BSD-2-Clause",

js/web/package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,15 @@
115115
"default": "./dist/ort.jspi.bundle.min.mjs"
116116
},
117117
"require": "./dist/ort.jspi.min.js"
118-
}
118+
},
119+
"./ort-wasm-simd-threaded.wasm": "./dist/ort-wasm-simd-threaded.wasm",
120+
"./ort-wasm-simd-threaded.jsep.wasm": "./dist/ort-wasm-simd-threaded.jsep.wasm",
121+
"./ort-wasm-simd-threaded.jspi.wasm": "./dist/ort-wasm-simd-threaded.jspi.wasm",
122+
"./ort-wasm-simd-threaded.asyncify.wasm": "./dist/ort-wasm-simd-threaded.asyncify.wasm",
123+
"./ort-wasm-simd-threaded.mjs": "./dist/ort-wasm-simd-threaded.mjs",
124+
"./ort-wasm-simd-threaded.jsep.mjs": "./dist/ort-wasm-simd-threaded.jsep.mjs",
125+
"./ort-wasm-simd-threaded.jspi.mjs": "./dist/ort-wasm-simd-threaded.jspi.mjs",
126+
"./ort-wasm-simd-threaded.asyncify.mjs": "./dist/ort-wasm-simd-threaded.asyncify.mjs"
119127
},
120128
"types": "./types.d.ts",
121129
"description": "A Javascript library for running ONNX models on browsers"

js/web/test/e2e/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"rollup": "^4.13.2",
2121
"rollup-plugin-copy": "^3.5.0",
2222
"tree-kill": "^1.2.2",
23+
"vite": "^7.1.12",
2324
"webpack-cli": "^5.1.4"
2425
},
2526
"scripts": {
@@ -32,7 +33,10 @@
3233
"build:p:esmjs": "parcel build --no-autoinstall --target esm && node ./bundler.esm.postprocess.js ./dist/parcel_esm_js/main.js",
3334
"build:p:umdjs": "parcel build --no-autoinstall --target umd",
3435
"build:p": "npm run build:p:esmjs && npm run build:p:umdjs",
35-
"build": "npm run build:w && npm run build:r && npm run build:p"
36+
"build:v:esmjs": "vite build -c vite.config.esm-js.js",
37+
"build:v:umdjs": "vite build -c vite.config.umd-js.js",
38+
"build:v": "npm run build:v:esmjs && npm run build:v:umdjs",
39+
"build": "npm run build:v && npm run build:w && npm run build:r && npm run build:p"
3640
},
3741
"@parcel/resolver-default": {
3842
"packageExports": true

js/web/test/e2e/run-data.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ const BUNDLER_TEST_CASES = [
7777
['./dist/rollup_umd_js/ort-test-e2e.bundle.js', 'iife'],
7878
['./dist/parcel_esm_js/main.js', 'esm'],
7979
['./dist/parcel_umd_js/main.js', 'iife'],
80+
['./dist/vite_esm_js/ort-test-e2e.bundle.mjs', 'esm'],
81+
['./dist/vite_umd_js/ort-test-e2e.bundle.js', 'iife'],
8082
];
8183

8284
module.exports = {
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
require('onnxruntime-web/ort-wasm-simd-threaded.wasm?url&no-inline');
2+
require('onnxruntime-web/ort-wasm-simd-threaded.mjs?url&no-inline');
3+
4+
require('onnxruntime-web/ort-wasm-simd-threaded.jsep.wasm?url&no-inline');
5+
require('onnxruntime-web/ort-wasm-simd-threaded.jsep.mjs?url&no-inline');
6+
7+
require('onnxruntime-web/ort-wasm-simd-threaded.jspi.wasm?url&no-inline');
8+
require('onnxruntime-web/ort-wasm-simd-threaded.jspi.mjs?url&no-inline');
9+
10+
require('onnxruntime-web/ort-wasm-simd-threaded.asyncify.wasm?url&no-inline');
11+
require('onnxruntime-web/ort-wasm-simd-threaded.asyncify.mjs?url&no-inline');
12+
13+
require('./main');
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import 'onnxruntime-web/ort-wasm-simd-threaded.wasm?url&no-inline';
2+
import 'onnxruntime-web/ort-wasm-simd-threaded.mjs?url&no-inline';
3+
4+
import 'onnxruntime-web/ort-wasm-simd-threaded.jsep.wasm?url&no-inline';
5+
import 'onnxruntime-web/ort-wasm-simd-threaded.jsep.mjs?url&no-inline';
6+
7+
import 'onnxruntime-web/ort-wasm-simd-threaded.jspi.wasm?url&no-inline';
8+
import 'onnxruntime-web/ort-wasm-simd-threaded.jspi.mjs?url&no-inline';
9+
10+
import 'onnxruntime-web/ort-wasm-simd-threaded.asyncify.wasm?url&no-inline';
11+
import 'onnxruntime-web/ort-wasm-simd-threaded.asyncify.mjs?url&no-inline';
12+
13+
import './main.js';

0 commit comments

Comments
 (0)