__cudaPushCallConfiguration 和 __cudaPopCallConfiguration 的 stream 参数相同吗?
不一定。
__cudaPushCallConfiguration 和 __cudaPopCallConfiguration 的 stream 参数可以不同。
__cudaPushCallConfiguration 函数的 stream 参数指定了在调用内核函数时使用的流,而 __cudaPopCallConfiguration 函数的 stream 参数指定了在弹出调用配置后使用的流。这两个函数的流参数可以不同,因为在调用内核函数期间,可以使用不同的流来执行其他 CUDA 操作。
AI 优化版
原文地址:https://www.cveoy.top/t/topic/oupQ 著作权归作者所有。请勿转载和采集!