【发布时间】:2020-07-13 04:10:02
【问题描述】:
当我尝试捕获流执行以构建 CUDA 图时,调用 thrust::reduce 会导致运行时错误 cudaErrorStreamCaptureUnsupported: operation not permitted when stream is capturing。我已经尝试将归约结果返回给主机和设备变量,并且我通过thrust::cuda::par.on(stream) 在适当的流中调用归约。有什么方法可以将 thrust 函数执行添加到 CUDA 图中?
【问题讨论】:
标签: cuda thrust cuda-streams