Skip to content

Commit

Permalink
fix: do not access UMD-managed SVM-allocation while in-use
Browse files Browse the repository at this point in the history
It is illegal with UMD-managed migrations to access a SVM-allocation
from CPU side while it is still in-use on GPU side. A CPU-side access
fetches the data from GPU-side and then any subsequent GPU-side
modification will not be observable on the CPU-side. With UMD-managed
migrations there is no way to tell the GPU that it should fetch the
allocation back from CPU-side before modifying it.

Signed-off-by: Maciej Bielski <[email protected]>
  • Loading branch information
MaciejBielski committed Jan 22, 2025
1 parent d6f60a2 commit a78e94c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion conformance_tests/core/test_copy/src/test_copy_events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ void RunGivenMemoryCopiesWithDependenciesWhenExecutingCommandListTest(
// Verify Copy Waits for Signal
lzt::event_host_synchronize(test.hEvent, UINT64_MAX);
EXPECT_EQ(ZE_RESULT_NOT_READY, zeEventQueryStatus(hEvent1));
EXPECT_NE(0, memcmp(src_buffer, dst_buffer, test.size));

EXPECT_EQ(ZE_RESULT_SUCCESS, zeEventHostSignal(hEvent1));

Expand Down

0 comments on commit a78e94c

Please sign in to comment.