src/hmem_ze.c Question about ze_hmem_copy
wckzhang opened this issue · comments
Hello, I'm not very familiar with the ze Core API, so I don't quite understand the behavior of ze_hmem_copy functions.
What I know:
A command list with the command to perform a memory copy is created and the command queue is told to execute this list.
What I don't know:
The (optional) fence parameter was left NULL, I don't think zeCommandQueueExecuteCommandLists
appears to be a blocking call (unless this is the behavior when fence is left NULL, I couldn't quite figure it out). So I'm not sure how we detect when the command has finished executing. Perhaps @aingerson can shed some light here for me, thanks!
The command queue is created with ZE_COMMAND_QUEUE_MODE_SYNCHRONOUS
mode. See https://github.com/ofiwg/libfabric/blob/main/src/hmem_ze.c#L62
Thank you very much j-xiong!