From 86ee354691945251914d025797dd6398a2ea3829 Mon Sep 17 00:00:00 2001 From: Elliott Slaughter Date: Tue, 1 Dec 2026 13:58:33 -0800 Subject: [PATCH] Synchronize on Realm events in tests before reading tensors. --- lib/realm-execution/test/src/realm-execution/test_e2e.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/realm-execution/test/src/realm-execution/test_e2e.cc b/lib/realm-execution/test/src/realm-execution/test_e2e.cc index fb047ef62d..7e3fb54069 100644 --- a/lib/realm-execution/test/src/realm-execution/test_e2e.cc +++ b/lib/realm-execution/test/src/realm-execution/test_e2e.cc @@ -463,7 +463,7 @@ TEST_SUITE(FF_TEST_SUITE) { loss_values.push_back(copy_tensor_accessor_r( dynamic_tensor_accessor_from_instance( pcg_instance.get_loss_tensor_instance().value(), - Realm::Event::NO_EVENT, + ctx.get_outstanding_events(), lift_shape_to_parallel(cfg.loss_shape), Permissions::RO, ctx.get_current_processor()) @@ -590,7 +590,7 @@ TEST_SUITE(FF_CUDA_TEST_SUITE) { loss_values.push_back(copy_tensor_accessor_r( dynamic_tensor_accessor_from_instance( pcg_instance.get_loss_tensor_instance().value(), - Realm::Event::NO_EVENT, + ctx.get_outstanding_events(), lift_shape_to_parallel(cfg.loss_shape), Permissions::RO, ctx.get_current_processor())