-
Notifications
You must be signed in to change notification settings - Fork 125
Open
Labels
specificationChanges or additions to the specificationChanges or additions to the specification
Description
The description of urUSMFree
notes:
Note that implementations are required to wait for previously enqueued commands that may be accessing pMem to finish before freeing the memory.
The CUDA and HIP adapters don't do any kind of dependency analysis to make sure that previously enqueued commands are complete before the native free is called. The OpenCL adapter seems to be the only adapter that gives blocking behaviour by using clMemBlockingFreeINTEL
.
I suggest the spec is updated to not require urUSMFree
to wait on previously enqueued commands to finish, and the OpenCL adapter can therefore use a simple clMemFreeINTEL
, or that the CUDA and HIP adapters are updated to do some dependency analysis.
Metadata
Metadata
Assignees
Labels
specificationChanges or additions to the specificationChanges or additions to the specification