SWDEV-306854 - Observed conformance subtest SVM failure

Revert "SWDEV-292408 - Keep tracking of subbuffers for multiple devices"

Change-Id: I604e9b49368fa1f143302fddda674c18d7351108


[ROCm/clr commit: ea48fc029b]
Цей коміт міститься в:
Alex Xie
2021-10-14 21:01:31 -04:00
зафіксовано German Andryeyev
джерело b14a42302f
коміт e5816ea048
+6 -5
Переглянути файл
@@ -457,11 +457,12 @@ bool Memory::setDestructorCallback(DestructorCallBackFunction callback, void* da
}
void Memory::signalWrite(const Device* writer) {
// The potential race condition below doesn't matter, no critical section needed
++version_;
lastWriter_ = writer;
// Keep subbuffers tracking only for multiple devices and it's not system memory
if ((numDevices() > 1) && (nullptr == getHostMem())) {
// Disable cache coherency layer for HIP
if (!amd::IS_HIP) {
// (the potential race condition below doesn't matter, no critical
// section needed)
++version_;
lastWriter_ = writer;
// Update all subbuffers for this object
for (auto buf : subBuffers_) {
buf->signalWrite(writer);