Skip to content

Commit 26e2710

Browse files
JackAKirkldrumm
authored andcommitted
Add missing UR_CHECK_ERROR.
Signed-off-by: JackAKirk <[email protected]>
1 parent c159a8e commit 26e2710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/adapters/hip/device.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class ScopedDevice {
104104
if (!hDevice) {
105105
throw UR_RESULT_ERROR_INVALID_DEVICE;
106106
}
107-
hipSetDevice(hDevice->getIndex());
107+
UR_CHECK_ERROR(hipSetDevice(hDevice->getIndex()));
108108
}
109109
};
110110
} // namespace

0 commit comments

Comments
 (0)