Skip to content

Commit 8961e19

Browse files
nicebertshiltian
andauthored
Review nit add braces to for loop body
Co-authored-by: Shilei Tian <[email protected]>
1 parent 584553e commit 8961e19

File tree

1 file changed

+2
-1
lines changed
  • offload/plugins-nextgen/amdgpu/src

1 file changed

+2
-1
lines changed

offload/plugins-nextgen/amdgpu/src/rtl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3040,9 +3040,10 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy {
30403040
return false;
30413041

30423042
// Checks if the pointer is known by HSA and accessible by the device
3043-
for (uint32_t i = 0; i < Count; i++)
3043+
for (uint32_t i = 0; i < Count; i++) {
30443044
if (Agents[i].handle == getAgent().handle)
30453045
return Info.sizeInBytes >= Size;
3046+
}
30463047

30473048
// If the pointer is unknown to HSA it's assumed a host pointer
30483049
// in that case the device can access it on unified memory support is

0 commit comments

Comments
 (0)