We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 776317a commit 46f76ffCopy full SHA for 46f76ff
source/adapters/cuda/enqueue.cpp
@@ -1025,7 +1025,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueMemImageRead(
1025
if (hImage->LastEventWritingToMemObj &&
1026
hImage->LastEventWritingToMemObj->getQueue()->getDevice() !=
1027
hQueue->getDevice()) {
1028
- Device = hImage->LastEventWritingToMemObj->getQueue()->getDevice();
+ hQueue = hImage->LastEventWritingToMemObj->getQueue();
1029
+ Device = hQueue->getDevice();
1030
ScopedContext Active(Device);
1031
Stream = CUstream{0}; // Default stream for different device
1032
// We may have to wait for an event on another queue if it is the last
0 commit comments