当我试图捕获流执行以构建CUDA图时,调用thrust::reduce会导致运行时错误cudaErrorStreamCaptureUnsupported: operation not permitted我已经尝试将缩减结果返回给主机和设备变量,并且我正在通过thrust::cuda::par.on(stream)的方式在适当的流中调用缩减。有没有方法可以将thrust函数的执行添加到CUDA图中?
我正在数组上运行一个推力并行二进制搜索类型例程:thrust::device_ptr<int// Search for first position where 0 could be inserted in arraythrustreturn device_function(array2,x) <= devic