/// <summary> /// Sets the stream. /// </summary> /// <param name="plan">The plan to set the stream for.</param> /// <param name="streamId">The stream id.</param> public override void SetStream(FFTPlan plan, int streamId) { if (streamId < 0) { throw new ArgumentOutOfRangeException("streamId"); } CUstream cus = (CUstream)_gpu.GetStream(streamId); FFTPlanEx planEx = Plans[plan]; cudaStream cs = new cudaStream(); //cs.Value = cus.Pointer.ToInt32(); CUFFTResult res = _driver.cufftSetStream(planEx.CudaFFTHandle, cs); if (res != CUFFTResult.Success) { throw new CudafyMathException(CudafyMathException.csCUDA_EXCEPTION_X, res); } }
private static extern CUSPARSEStatus cusparseSetStream(cusparseHandle handle, cudaStream streamId);
private static extern CUFFTResult cufftSetStream_ext(cufftHandle p, cudaStream stream);
public CUFFTResult cufftSetStream(cufftHandle plan, cudaStream stream) { return(cufftSetStream_ext(plan, stream)); }
public static extern cudaError cudaGLUnmapBufferObjectAsync(uint bufObj, cudaStream stream);
public static extern cudaError cudaGLMapBufferObjectAsync(ref IntPtr devPtr, uint bufObj, cudaStream stream);
public CUBLASStatusv2 cublasGetStream(cublasHandle handle, ref cudaStream streamId) { return cublasGetStream_v2(handle, ref streamId); }
private static extern CUBLASStatusv2 cublasGetStream_v2(cublasHandle handle, ref cudaStream streamId);
public static extern CUFFTResult cufftSetStream(cufftHandle p, cudaStream stream);