onnxruntime/onnxruntime/test/framework
cao lei 6b73ab3e3e
Introduce reused_buffer_index_per_stream in allocation planner which will be reset after computing the reuse buffer for each stream (#19515)
### Description
<!-- Describe your changes. -->
Introduce reused_buffer_index_per_stream in allocation planner which
will be reset after computing the reuse buffer for each stream. So if a
NodeArg is an input of several Ops across different streams and reuses
other NodeArg, the reused NodeArg won't be involved when computing the
second stream's reuse plan.


### 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. -->
This is to fix https://github.com/microsoft/onnxruntime/issues/19480,
which is a crash for the scenario mentioned above.

---------

Co-authored-by: Lei Cao <leca@microsoft.com>
2024-02-22 10:19:08 -08:00
..
cuda Move tests from core/providers/cuda/test/* to test/providers/cuda/ and refactor CUDA UT (#16161) 2023-06-20 14:54:55 -07:00
allocation_planner_test.cc Introduce reused_buffer_index_per_stream in allocation planner which will be reset after computing the reuse buffer for each stream (#19515) 2024-02-22 10:19:08 -08:00
allocator_test.cc Disable CPU EP's allocator's arena when address sanitizer is enabled (#19485) 2024-02-12 09:39:49 -08:00
bfc_arena_test.cc Disable streams for the DML EP (#19481) 2024-02-10 00:34:34 -08:00
copy_test.cc Add support for other data types to Split CPU kernel. (#13900) 2022-12-12 09:29:15 -08:00
data_types_test.cc [C#, CPP] Introduce Float16/BFloat16 support and tests for C#, C++ (#16506) 2023-07-14 10:46:52 -07:00
distance_test.cc
dummy_allocator.cc
dummy_allocator.h
dummy_provider.cc ExecutionProvider API refactor - move allocator from EP level to SessionState level and indexed by OrtDevice (#15833) 2023-06-19 17:44:45 -07:00
dummy_provider.h ExecutionProvider API refactor - move allocator from EP level to SessionState level and indexed by OrtDevice (#15833) 2023-06-19 17:44:45 -07:00
endian_test.cc
execution_frame_test.cc Disable streams for the DML EP (#19481) 2024-02-10 00:34:34 -08:00
execution_provider_test.cc ExecutionProvider API refactor - make GenerateMetaDefId a standalone function, decouple it from EP (#18977) 2024-01-26 07:39:08 -08:00
float_8_test.cc Fix float 8 rounding on CPU (#16940) 2023-09-07 20:48:25 +02:00
float_16_test.cc [C#, CPP] Introduce Float16/BFloat16 support and tests for C#, C++ (#16506) 2023-07-14 10:46:52 -07:00
function_test.cc Build function bodies according to the imported global opset. (#18833) 2023-12-15 15:56:20 -08:00
inference_session_test.cc Make session configuration options available to kernels via OpKernelInfo (#18897) 2024-01-13 10:02:43 +10:00
insert_cast_transformer_test.cc Fix cast removal bug (#17953) 2023-10-31 15:48:32 -07:00
kernel_registry_test.cc Run clang-format in CI (#15524) 2023-04-18 09:26:58 -07:00
kernel_type_str_resolver_utils_test.cc Update absl and gtest to fix an ARM64EC build error (#18735) 2023-12-07 15:55:17 -08:00
local_kernel_registry_test.cc ExecutionProvider API refactor - move allocator from EP level to SessionState level and indexed by OrtDevice (#15833) 2023-06-19 17:44:45 -07:00
math_test.cc Fix Mac M1 build (#16763) 2023-07-20 18:24:57 -07:00
mem_pattern_planner_test.cc
memcpy_transformer_test.cc
model_builder_utils.h Run clang-format in CI (#15524) 2023-04-18 09:26:58 -07:00
opaque_kernels_test.cc ExecutionProvider API refactor - move allocator from EP level to SessionState level and indexed by OrtDevice (#15833) 2023-06-19 17:44:45 -07:00
ort_model_only_test.cc Two fixes involving minimal builds (#17000) 2023-08-23 16:01:22 +10:00
parallel_executor_test.cc Revert "fixed point based requantization on arm64 (#11540)" (#11732) 2022-06-03 19:12:25 -07:00
provider_options_utils_test.cc
random_test.cc Fix warnings preventing Onnx build (#13447) 2022-10-26 07:53:55 -07:00
save_model_with_external_initializers.cc Extend saving models optimized by inference session (#16912) 2023-07-31 16:39:35 -07:00
session_state_test.cc Disable CPU EP's allocator's arena when address sanitizer is enabled (#19485) 2024-02-12 09:39:49 -08:00
shape_inference_test.cc Share scalar constant initializer (#12878) 2022-10-10 13:32:33 +08:00
sparse_kernels_test.cc ExecutionProvider API refactor - move allocator from EP level to SessionState level and indexed by OrtDevice (#15833) 2023-06-19 17:44:45 -07:00
tensor_shape_test.cc Run clang-format in CI (#15524) 2023-04-18 09:26:58 -07:00
tensor_test.cc Disable CPU EP's allocator's arena when address sanitizer is enabled (#19485) 2024-02-12 09:39:49 -08:00
tensorutils_test.cc Run clang-format in CI (#15524) 2023-04-18 09:26:58 -07:00
test_tensor_loader.cc [js] enable external data loading for ort-web (#19087) 2024-01-12 19:24:24 -08:00
test_utils.cc ExecutionProvider API refactor - move allocator from EP level to SessionState level and indexed by OrtDevice (#15833) 2023-06-19 17:44:45 -07:00
test_utils.h remove AllocatorMgr class (#16509) 2023-06-28 15:43:19 -07:00
TestAllocatorManager.cc remove AllocatorMgr class (#16509) 2023-06-28 15:43:19 -07:00
TestAllocatorManager.h
transpose_test.cc
tunable_op_test.cc ExecutionProvider API refactor - make GenerateMetaDefId a standalone function, decouple it from EP (#18977) 2024-01-26 07:39:08 -08:00
type_info_test.cc Implement Optional Metadata support and C# test support (#15314) 2023-04-11 09:41:59 -07:00