当我试图捕获流执行以构建 CUDA 图时,调用会thrust::reduce导致运行时错误cudaErrorStreamCaptureUnsupported: operation not permitted when stream is capturing。我已经尝试将归约结果返回给主机和设备变量,并且我正在通过thrust::cuda::par.on(stream). 有什么方法可以将thrust函数执行添加到 CUDA 图中?
当我试图捕获流执行以构建 CUDA 图时,调用会thrust::reduce导致运行时错误cudaErrorStreamCaptureUnsupported: operation not permitted when stream is capturing。我已经尝试将归约结果返回给主机和设备变量,并且我正在通过thrust::cuda::par.on(stream). 有什么方法可以将thrust函数执行添加到 CUDA 图中?