Open zerollzeng opened 1 year ago
The above patch still have some problems and we are trying to fix it.
The above patch still have some problems and we are trying to fix it.
@zerollzeng hello, has the problem with this patch been resolved?
Yes the patch is under review, I'll try to public ASAP.
The patch has been merge in https://github.com/NVIDIA-AI-IOT/cuDLA-samples/commit/a2d645b61920fead0cf70c79506518b0a159463c
Please pull the latest code and rebuild.
This help users running cuDLA-samples on some old Drive-OS release.
Problem Description
If you see following error when import a external semaphore to cuDLA on 6.0.6.0.
Root Cause
cuDLA doesn't support regular system semaphores. cuDLA supports sync point and deterministic semaphores. In 6.0.8, CUDA has changed the priority to prioritize NvSciSyncInternalAttrValPrimitiveType_Syncpoint over NvSciSyncInternalAttrValPrimitiveType_SysmemSemaphore. Hence, NvSciSync object of syncpoint type will be created when CUDA and cuDLA are participating entities as both prefer NvSciSyncInternalAttrValPrimitiveType_Syncpoint over NvSciSyncInternalAttrValPrimitiveType_SysmemSemaphore. But we didn't port the priority change to 6.0.6(previous releases may have the same issue but we didn't test) so it use NvSciSyncInternalAttrValPrimitiveType_SysmemSemaphore by default and cause the error.
Fix info:
NvSciSyncAttrKey_RequireDeterministicFences attribute will create NvSciSync object of determinitic semaphore, please apply the following patch on 6.0.6 manually.