Jeff Bloomfield
0180c0429f
Fix DML regression from allocator refactor and enable unrounded weight allocation in ORT API ( #17030 )
...
This addresses a DML performance regression from the following PR
resulting in allocations not being rounded and pooled in the DML
execution provider.
https://github.com/microsoft/onnxruntime/pull/15833
This also fixes a pre-existing limitation that allocations during
session initialization (primarily large weights and persistent
resources) only bypassed rounding and pooling while using the Winml API.
The allocator now also respects a caller's rounding mode parameter when
provided.
2023-08-10 17:02:24 -07:00
Justin Chu
eeef157888
Format c++ code under winml/ ( #16660 )
...
winml/ was previously excluded from lintrunner config. This change
includes the directory and adds the clang-format config file specific to
winml/ that fits existing style.
---------
Signed-off-by: Justin Chu <justinchu@microsoft.com>
2023-07-25 21:56:50 -07:00
Sheil Kumar
3d0bd2596f
Enable creating OrtValues from ID3D12Resources from the onnxruntime C-API ( #9686 )
...
* Add onnxruntime-windows api.
* minor fixes
* add to package headers
* Build ort_dml_api for provider extensions.
* Cleanup
* misc comment
* remove winml specific comments
* use dml check in onnxruntime
* Update include/onnxruntime/core/providers/dml/dml_provider_factory.h
Co-authored-by: Dwayne Robinson <dwayner@microsoft.com>
* Update include/onnxruntime/core/session/onnxruntime_c_api.h
Co-authored-by: Dwayne Robinson <dwayner@microsoft.com>
* Update include/onnxruntime/core/providers/dml/dml_provider_factory.h
Co-authored-by: Dwayne Robinson <dwayner@microsoft.com>
* Update include/onnxruntime/core/providers/dml/dml_provider_factory.h
Co-authored-by: Dwayne Robinson <dwayner@microsoft.com>
* Update onnxruntime/core/session/onnxruntime_c_api.cc
Co-authored-by: Dwayne Robinson <dwayner@microsoft.com>
* Update onnxruntime/core/session/ort_apis.h
Co-authored-by: Dwayne Robinson <dwayner@microsoft.com>
* Update winml/test/adapter/AdapterSessionTest.cpp
Co-authored-by: Dwayne Robinson <dwayner@microsoft.com>
* Update onnxruntime/core/session/onnxruntime_c_api.cc
Co-authored-by: Dwayne Robinson <dwayner@microsoft.com>
* Update winml/adapter/winml_adapter_c_api.cpp
Co-authored-by: Dwayne Robinson <dwayner@microsoft.com>
* Update include/onnxruntime/core/session/onnxruntime_c_api.h
Co-authored-by: Pranav Sharma <prs@microsoft.com>
* Update onnxruntime/core/session/onnxruntime_c_api.cc
Co-authored-by: Pranav Sharma <prs@microsoft.com>
* Update winml/adapter/winml_adapter_c_api.cpp
* PR feedback
* Update include/onnxruntime/core/providers/dml/dml_provider_factory.h
Co-authored-by: Dwayne Robinson <dwayner@microsoft.com>
* Update include/onnxruntime/core/providers/dml/dml_provider_factory.h
Co-authored-by: Dwayne Robinson <dwayner@microsoft.com>
* Update include/onnxruntime/core/providers/dml/dml_provider_factory.h
Co-authored-by: Dwayne Robinson <dwayner@microsoft.com>
* PR feedback
* merge resolution and unreference param
* (naming) Remove Dml prefix
* maybe unused version
* move DML code into DML path. CIs failing because DML is not available when --use_dml is not on
* fix warning causing local build failures after merging
* Change getvaluememoryinfo to gettensormemoryinfo
* minor breaks
* fix comment paste
* fix comment
Co-authored-by: Sheil Kumar <sheilk@microsoft.com>
Co-authored-by: Dwayne Robinson <dwayner@microsoft.com>
Co-authored-by: Pranav Sharma <prs@microsoft.com>
2021-11-13 03:34:54 -08:00
Tiago Koji Castro Shibata
eb7486d632
WinML Adapter DMLEP tests ( #3752 )
...
* Add DML EP tests
* wip
* Fix DmlCopyTensor
* Cleanup
* Remove leaks in AdapterDmlEpTest
* Fix rebase conflicts
* Move GPUTEST macro to tests instead of suite setup
* Address PR feedback
2020-05-07 16:25:41 -07:00