Skip to content

Commit

Permalink
Address issue with getting device handle to follow the new multi-devi…
Browse files Browse the repository at this point in the history
…ce-ctx changes
  • Loading branch information
GeorgeWeb committed Dec 8, 2023
1 parent d259b89 commit 62d0934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/adapters/hip/enqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ urEnqueueUSMAdvise(ur_queue_handle_t hQueue, const void *pMem, size_t size,
ur_usm_advice_flags_t advice, ur_event_handle_t *phEvent) {
UR_ASSERT(pMem && size > 0, UR_RESULT_ERROR_INVALID_VALUE);
void *HIPDevicePtr = const_cast<void *>(pMem);
ur_device_handle_t Device = hQueue->getContext()->getDevice();
ur_device_handle_t Device = hQueue->getDevice();

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

0 comments on commit 62d0934

Please sign in to comment.