Closed pvelesko closed 10 months ago
Hi, zeCommandListHostSynchronize can be used only on immediate command lists. According to attached log, you are using "regular" command list, which is not allowed. You are right, error code should be different (ZE_RESULT_ERROR_INVALID_ARGUMENT), but this feature is still under development - this is why you see ZE_RESULT_ERROR_UNSUPPORTED_FEATURE.
https://spec.oneapi.io/level-zero/latest/core/api.html#zecommandlisthostsynchronize "Synchronizes an immediate command list by waiting on the host for the completion of all commands previously submitted to it."
Opps, forgot to uncomment the line that enables imm lists. Just tested and it works. Keep it open to track the return code or close. Thanks. @BartoszDunajski
Saw this new feature and wanted to try it.
Possible return codes: ZE_RESULT_SUCCESS
ZE_RESULT_ERROR_UNINITIALIZED
ZE_RESULT_ERROR_DEVICE_LOST
ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY
ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY
ZE_RESULT_ERROR_INVALID_NULL_HANDLE
nullptr == hCommandList
ZE_RESULT_NOT_READY
timeout expired
ZE_RESULT_ERROR_INVALID_ARGUMENT
handle does not correspond to an immediate command list
Actual result:
Driver Version 23.17.26241.22