diff --git a/projects/clr/rocclr/device/rocm/rocdevice.cpp b/projects/clr/rocclr/device/rocm/rocdevice.cpp index dfe64f8dd5..9aaca7c774 100644 --- a/projects/clr/rocclr/device/rocm/rocdevice.cpp +++ b/projects/clr/rocclr/device/rocm/rocdevice.cpp @@ -2479,6 +2479,7 @@ bool Device::GetSvmAttributes(void** data, size_t* data_sizes, int* attributes, // Cast ROCr value into the hip format *reinterpret_cast(data[idx]) = (static_cast(it.value) > 0) ? true : false; + ++rocr_attr; break; // The logic should be identical for the both queries case amd::MemRangeAttribute::PreferredLocation: @@ -2499,6 +2500,7 @@ bool Device::GetSvmAttributes(void** data, size_t* data_sizes, int* attributes, *reinterpret_cast(data[idx]) = static_cast(amd::CpuDeviceId); } } + ++rocr_attr; break; case amd::MemRangeAttribute::AccessedBy: { uint32_t entry = 0; @@ -2557,6 +2559,7 @@ bool Device::GetSvmAttributes(void** data, size_t* data_sizes, int* attributes, // Cast ROCr value into the hip format *reinterpret_cast(data[idx]) = static_cast(it.value); } + ++rocr_attr; break; default: return false;