Skip to content

Commit c10968f

Browse files
GeorgeWebkbenzie
authored andcommitted
Address issue with getting device handle to follow the new multi-device-ctx changes
1 parent 71dd495 commit c10968f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/adapters/hip/enqueue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ urEnqueueUSMAdvise(ur_queue_handle_t hQueue, const void *pMem, size_t size,
15401540
ur_usm_advice_flags_t advice, ur_event_handle_t *phEvent) {
15411541
UR_ASSERT(pMem && size > 0, UR_RESULT_ERROR_INVALID_VALUE);
15421542
void *HIPDevicePtr = const_cast<void *>(pMem);
1543-
ur_device_handle_t Device = hQueue->getContext()->getDevice();
1543+
ur_device_handle_t Device = hQueue->getDevice();
15441544

15451545
#if HIP_VERSION_MAJOR >= 5
15461546
// NOTE: The hipPointerGetAttribute API is marked as beta, meaning, while this

0 commit comments

Comments
 (0)