mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Enable streams for DML EP. This change is to revert PR 19481 since the bug 19480 is fixed by PR 19515 (#19609)
### Description <!-- Describe your changes. --> Enable streams for DML EP. This change is to revert PR 19481 since the bug 19480 is fixed by PR 19515 ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> Enable streams for DML EP. This change is to revert PR 19481 since the bug 19480 is fixed by PR 19515
This commit is contained in:
parent
ae3d73c981
commit
f430600432
1 changed files with 2 additions and 7 deletions
|
|
@ -92,13 +92,8 @@ if (onnxruntime_MINIMAL_BUILD)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
# Enable stream for all the non-minimal build, except for DML. There's currently a bug
|
||||
# in the allocation planner when reusing buffers and more than one streams are used that
|
||||
# make it possible (although rarely) to reach a reference count of 0 for a buffer that is
|
||||
# still being used. Since DML doesn't benefit from multiple streams, disabling it is the
|
||||
# safest option for now.
|
||||
# https://github.com/microsoft/onnxruntime/issues/19480
|
||||
if (NOT onnxruntime_MINIMAL_BUILD AND NOT onnxruntime_USE_DML)
|
||||
# Enable stream for all the non-minimal build
|
||||
if (NOT onnxruntime_MINIMAL_BUILD)
|
||||
add_compile_definitions(ORT_ENABLE_STREAM)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue