SWDEV-306854 - Observed conformance subtest SVM failure

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

Change-Id: I604e9b49368fa1f143302fddda674c18d7351108
This commit is contained in:
Alex Xie
2021-10-14 21:01:31 -04:00
zatwierdzone przez German Andryeyev
rodzic 3e75cd150e
commit ea48fc029b
+6 -5
Wyświetl plik
@@ -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);