Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ ur_result_t TsanInterceptor::allocateMemory(ur_context_handle_t Context,
UR_CALL(SafeAllocate(Context, Device, Size, Params.USMDesc, Params.Pool,
Type, &Allocated));
} else {
// Check if the device is not NULL as AllocExportableMemoryExp requires it
if (!Device) {
return UR_RESULT_ERROR_INVALID_ARGUMENT;
}

UR_CALL(
getContext()->urDdiTable.MemoryExportExp.pfnAllocExportableMemoryExp(
Context, Device, Params.Alignment, Size, Params.HandleTypeToExport,
Expand Down
Loading