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.
2 parents d06ba9d + 526f7e6 commit 25e0b60Copy full SHA for 25e0b60
source/adapters/hip/memory.cpp
@@ -458,9 +458,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urMemRetain(ur_mem_handle_t hMem) {
458
return UR_RESULT_SUCCESS;
459
}
460
461
-inline ur_result_t
462
-allocateMemObjOnDeviceIfNeeded(ur_mem_handle_t Mem,
463
- const ur_device_handle_t hDevice) {
+ur_result_t allocateMemObjOnDeviceIfNeeded(ur_mem_handle_t Mem,
+ const ur_device_handle_t hDevice) {
464
ScopedContext Active(hDevice);
465
ur_lock LockGuard(Mem->MemoryAllocationMutex);
466
0 commit comments