Skip to content

Commit c159a8e

Browse files
JackAKirkldrumm
authored andcommitted
Use device ID in hipSetDevice.
Signed-off-by: JackAKirk <[email protected]>
1 parent 7e38b39 commit c159a8e

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->get());
107+
hipSetDevice(hDevice->getIndex());
108108
}
109109
};
110110
} // namespace

0 commit comments

Comments
 (0)