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 authored and German Andryeyev committed 2021-10-15 09:28:06 -04:00
1 родитель b14a42302f
Коммит e5816ea048
1 file changed
+6 -5
+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);