不一定。

__cudaPushCallConfiguration 和 __cudaPopCallConfiguration 的 stream 参数可以不同。

__cudaPushCallConfiguration 函数的 stream 参数指定了在调用内核函数时使用的流,而 __cudaPopCallConfiguration 函数的 stream 参数指定了在弹出调用配置后使用的流。这两个函数的流参数可以不同,因为在调用内核函数期间,可以使用不同的流来执行其他 CUDA 操作。

__cudaPushCallConfiguration 和 __cudaPopCallConfiguration 的 stream 参数相同吗?