DeepLink-org / deeplink.framework

BSD 3-Clause "New" or "Revised" License
55 stars 28 forks source link

fix camb copy_D2otherD bug #884

Closed zhaoguochun1995 closed 2 months ago

zhaoguochun1995 commented 2 months ago

寒武纪runtime不支持stream等待另一张卡上的event, cnrtQueueWaitNotifier 返回100050(This indicates that the feature is not supported now),因此我们这里使用同步级别更高的syncStream来代替stramWaitEvent。 由于测试用例中有些测例(多卡间内存拷贝至少需要两张卡,通信相关测例需要四张卡)需要多张卡,在ci中运行测例时,分配多张卡资源,避免有些测例被跳过

Cambrian runtime does not support stream waiting for events on another card, cnrtQueueWaitNotifier returns 100050 (This indicates that the feature is not supported now), so we use syncStream with a higher synchronization level instead of stramWaitEvent.

Because some test cases in the test case require multiple cards (memory copy between multiple cards requires at least two cards, and communication-related test cases require four cards), when running the test cases in CI, allocate multiple card resources to avoid some test cases being skipped.

截屏2024-07-08 下午9 11 05 截屏2024-07-08 下午9 15 07 WeChatWorkScreenshot_d893566f-0518-4cb2-aa9c-1d81be05414b