onnxruntime/tools/ci_build/github/azure-pipelines
Yulong Wang 405ca49012
build ONNXRuntime into WebAssembly (#6478)
* Simplified version of WebAssembly support to keep most of existing data structures and add cmake using Ninja and emcmake

* Clean up CMakeLists.txt and add an example to create and compute a kernel

* Load a model from bytes and remove graph building steps

* Add all cpu and contrib ops with mlas library

* WebAssembly build with Onnxruntime C/CXX API

* Use protobuf cmakefile directory instead of adding every necessary source file

* Fix invalid output at example

* add missing files

* Change an example to use Teams model and support ort mobile format

* add API for javascript

* fix input releasing in _ort_run()

* update API

* Let onnxruntime cmake build WebAssembly with option '--wasm'

* allow one-step building for wasm

* Make build script working on Linux and MacOS

* Fix broken build from Windows command

* Enable unit test on building WebAssembly

* Resolve comments

* update build flags

* wasm conv improvement from: 1) GemmV; 2) Depthwise direct convolution 3x3; 3) Direct convolution 3x3

* Cleaned mlas unittest.

* use glob

* update comments

* Update baseline due to loss scale fix (#6948)

* fix stream sync issue (#6954)

* Enable type reduction in EyeLike, Mod, random.cc CPU kernels. (#6960)

* Update EyeLike CPU kernel.

* Update Mod CPU kernel.

* Update Multinomial CPU kernel.

* Slight improvement to Pad CPU kernel binary size.

* Update RandomNormal[Like], RandomUniform[Like] CPU kernels.

* Fix warning from setting multiple MSVC warning level options. (#6917)

Fix warning from setting multiple MSVC warning level options. Replace an existing /Wn flag instead of always appending a new one.

* MLAS: quantized GEMM update (#6916)

Various updates to the int8_t GEMMs:

1) Add ARM64 udot kernel to take advantage of dot product instructions available in newer cores. Some models run 4x faster than the stock implementation we used before.
2) Refactor the x64 kernels to share common code for AVX2(u8u8/u8s8/avxvnni) vs AVX512(u8u8/u8s8/avx512vnni) to reduce binary size.
3) Extend kernels to support per-column zero points for matrix B. This is not currently wired to an operator.

* Implement QLinearAveragePool with unit tests. (#6896)

Implement QLinearAveragePool with unit tests.

* Attention fusion detect num_heads and hidden_size automatically (#6920)

* fixed type to experimental session constructor (#6950)

* fixed type to experimental session constructor

Co-authored-by: David Medine <david.medine@brainproducts.com>

* Update onnxruntime_perf_test.exe to accept free dimension overrides (#6962)

Co-authored-by: Ori Levari <orlevari@microsoft.com>

* Fix possible fd leak in NNAPI (#6966)

* Release buffers for prepacked tensors (#6820)

Unsolved problems:

1. One test failure was caused by a bug in Cudnn rnn kernels, when they can allocate a buffer and partially initialize it, the garbage data near tail of the buffer caused problem in some of the hardware. To attack this problem in a broader sense, should we add code in our allocators, and during a memory fuzzing test, fill an allocated buffer with garbage before returning to the caller?


2. Prepacking is used more widely than we know. For instance, Cudnn rnn kernels also cache their weights. They mix several weight tensors together into a single buffer, and never touch the original weight tensor anymore. This is the same idea with pre-pack, but they didn't override the virtual function, and they never tried to release those weight tensors, leading to memory waste. It also seems to me that there are some other kernels have similar behavior. Wonder how much memory we can save if we try to cleanup those too.

3. Turning off memory pattern planning does increase memory fragmentation, leading to out of memory error in some training test cases. Perhaps we can revisit the idea of pushing kernels-creation stage earlier, and then during initializer deserialization, we only avoid tracing those that will be prepacked.

* Enable type reduction for Range, ReverseSequence, ScatterND, Split, and Unique CPU kernels. (#6963)

* add CI

* fix test in ci

* fix flags for nsync in wasm build

* add copyright banner

* fix wasm source glob

* add missing exports

* resolve comments

* Perf gain by make packb wide to 4 from 16 on GEMM for WASM.
Remove no need direct conv in previous perf tuning.

* fix buildbreak introduced from latest master merge

* fix buildbreak in mlasi.h

* resolve all comments except MLAS

* rewrite packb related 3 functions for WASM_SCALAR seperately rather than using #ifdef in each.
and other changes according to PR feedback in mlas.

* More complete scalar path in sgemm from Tracy.

* Fix edge case handling in depthwise conv2d kernel 3x3. where:
  *) support input W==1 and H==1
  *) recalc in accurate pad_right and pad_bottom
  *) support hidden pad_right == 2 or pad_bottom == 2 when W == 1 or H==1 and no pad left/top

* Add more test coverage for conv depthwise from Tracy.
Fix one typo according to PR.

* resolve comments

* replace typedef by using

* do not use throw in OrtRun()

* output error message

Co-authored-by: Sunghoon <35605090+hanbitmyths@users.noreply.github.com>
Co-authored-by: Lei Zhang <zhang.huanning@hotmail.com>
Co-authored-by: Wei-Sheng Chin <wschin@outlook.com>
Co-authored-by: Tianlei Wu <tlwu@microsoft.com>
Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
Co-authored-by: Tracy Sharpe <42477615+tracysh@users.noreply.github.com>
Co-authored-by: David Medine <david.eric.medine@gmail.com>
Co-authored-by: David Medine <david.medine@brainproducts.com>
Co-authored-by: Ori Levari <ori.levari@microsoft.com>
Co-authored-by: Ori Levari <orlevari@microsoft.com>
Co-authored-by: Guoyu Wang <62914304+gwang-msft@users.noreply.github.com>
Co-authored-by: Chen Fu <chenfucs@gmail.com>
2021-04-06 16:18:10 -07:00
..
nodejs Remove openmp related packaging pipeline (#6991) 2021-03-12 10:02:59 -08:00
nuget Move the Windows GPU machine pool of Onnxruntime packaging pipelines to a new one (#7161) 2021-03-29 17:32:03 -07:00
templates . (#7165) 2021-03-30 13:58:30 -07:00
android-x86_64-crosscompile-ci-pipeline.yml Increase timeout for Android CI pipeline by 30 minutes. (#7065) 2021-03-19 08:03:22 -07:00
c-api-noopenmp-packaging-pipelines.yml Move the Windows GPU machine pool of Onnxruntime packaging pipelines to a new one (#7161) 2021-03-29 17:32:03 -07:00
clean-build-docker-image-cache-pipeline.yml Update build docker image cache cleanup (#6048) 2020-12-07 13:07:19 -08:00
featurizers-py-packaging-pipeline.yml
linux-ci-pipeline.yml Remove openmp related packaging pipeline (#6991) 2021-03-12 10:02:59 -08:00
linux-cpu-minimal-build-ci-pipeline.yml Check kernel def hashes (#7120) 2021-04-01 17:42:58 -07:00
linux-dnnl-ci-pipeline.yml Add python 3.8/3.9 support for Windows GPU and Linux ARM64 (#6615) 2021-02-11 16:43:35 -08:00
linux-gpu-ci-pipeline.yml Specify CUDA compute capability 7.5 in Linux GPU build (#7203) 2021-03-31 18:51:44 -07:00
linux-gpu-cuda-11-pipeline.yml Remove openmp related packaging pipeline (#6991) 2021-03-12 10:02:59 -08:00
linux-gpu-tensorrt-ci-perf-pipeline.yml Mem trt (#6868) 2021-04-05 22:16:12 -07:00
linux-gpu-tensorrt-ci-pipeline.yml Upgrade TensorRT to v7.2.2 (#6452) 2021-02-18 04:30:47 -08:00
linux-multi-gpu-ci-pipeline.yml Remove openmp related packaging pipeline (#6991) 2021-03-12 10:02:59 -08:00
linux-multi-gpu-tensorrt-ci-pipeline.yml Upgrade TensorRT to v7.2.2 (#6452) 2021-02-18 04:30:47 -08:00
linux-nocontribops-ci-pipeline.yml Remove openmp related packaging pipeline (#6991) 2021-03-12 10:02:59 -08:00
linux-nuphar-ci-pipeline.yml Add python 3.8/3.9 support for Windows GPU and Linux ARM64 (#6615) 2021-02-11 16:43:35 -08:00
linux-openvino-ci-pipeline.yml Openvino ep 2021.3 (#7180) 2021-04-01 11:28:54 -07:00
linux-openvino-nightly-pipeline.yml Remove openmp related packaging pipeline (#6991) 2021-03-12 10:02:59 -08:00
linux-ort-srv-ci-pipeline.yml Update ORT server build pipeline (#7030) 2021-03-16 18:02:09 -07:00
linux-pytorch-custom-ops-ci-pipeline.yml
mac-ci-pipeline.yml deprecate omp in ci 2021-02-08 19:10:13 -08:00
mac-coreml-ci-pipeline.yml Sync ORTModule branch with master and fix tests (#6526) 2021-02-02 08:59:56 -08:00
mac-ios-ci-pipeline.yml Enable iOS CI pipeline (#5360) 2020-10-02 20:14:45 -07:00
mac-nocontribops-ci-pipeline.yml
orttraining-linux-ci-pipeline.yml Add python 3.8/3.9 support for Windows GPU and Linux ARM64 (#6615) 2021-02-11 16:43:35 -08:00
orttraining-linux-gpu-amd-e2e-test-ci-pipeline.yml Add BERT-L perf regression test on MI100 and re-enable batch size test (#7240) 2021-04-05 15:51:52 -07:00
orttraining-linux-gpu-ci-pipeline.yml Remove openmp related packaging pipeline (#6991) 2021-03-12 10:02:59 -08:00
orttraining-linux-gpu-distributed-e2e-test-pipeline.yml Merge pull request #6973 from microsoft/thiagofc/merge-ortmodule-into-master 2021-03-17 10:30:06 -07:00
orttraining-linux-gpu-distributed-test-ci-pipeline.yml Remove openmp related packaging pipeline (#6991) 2021-03-12 10:02:59 -08:00
orttraining-linux-gpu-docker-release-pipeline.yml icnrease timeout (#7145) 2021-03-26 11:26:18 -07:00
orttraining-linux-gpu-ortmodule-distributed-test-ci-pipeline.yml Support non tuple return values from torch.nn.module (#6660) 2021-02-16 20:48:32 -08:00
orttraining-linux-gpu-ortmodule-test-ci-pipeline.yml Mount hf model cache and use cache for loading hf models (#6810) 2021-02-25 13:30:14 -08:00
orttraining-linux-gpu-ortmodule-test-clear-cache-pipeline.yml Add pipeline to clear the cache for huggingface transormers models (#6813) 2021-02-26 10:39:22 -08:00
orttraining-linux-gpu-perf-test-ci-pipeline.yml Pass arguments to azure_scale_set_vm_mount_test_data from perf test ci pipeline (#7094) 2021-03-22 21:48:32 -07:00
orttraining-mac-ci-pipeline.yml
orttraining-pai-ci-pipeline.yml Add BERT-L perf regression test on MI100 and re-enable batch size test (#7240) 2021-04-05 15:51:52 -07:00
orttraining-py-packaging-pipeline.yml Clean up builds (#6015) 2020-12-04 15:13:17 -08:00
orttraining-win-ci-pipeline.yml
orttraining-win-gpu-ci-pipeline.yml
post-merge-jobs.yml
py-packaging-pipeline.yml
win-ci-fuzz-testing.yml Add python 3.8/3.9 support for Windows GPU and Linux ARM64 (#6615) 2021-02-11 16:43:35 -08:00
win-ci-pipeline.yml Add python 3.8/3.9 support for Windows GPU and Linux ARM64 (#6615) 2021-02-11 16:43:35 -08:00
win-gpu-ci-pipeline.yml Change Windows GPU CI pipeline to CUDA11 (#6616) 2021-02-17 09:44:44 -08:00
win-gpu-cuda-10-2-pipeline.yml Move the Windows GPU machine pool of Onnxruntime packaging pipelines to a new one (#7161) 2021-03-29 17:32:03 -07:00
win-gpu-reduce-op-ci-pipeline.yml Change how ONNX get installed 2021-02-10 14:41:26 -08:00
win-gpu-tensorrt-ci-pipeline.yml Move TensorRT Windows CI build to the machine pool (#7127) 2021-03-24 14:28:25 -07:00
win-wasm-ci-pipeline.yml build ONNXRuntime into WebAssembly (#6478) 2021-04-06 16:18:10 -07:00