Exemple #1
0
        /// <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);
            }
        }
Exemple #2
0
 private static extern CUSPARSEStatus cusparseSetStream(cusparseHandle handle, cudaStream streamId);
Exemple #3
0
 private static extern CUFFTResult cufftSetStream_ext(cufftHandle p, cudaStream stream);
Exemple #4
0
 public CUFFTResult cufftSetStream(cufftHandle plan, cudaStream stream)
 {
     return(cufftSetStream_ext(plan, stream));
 }
Exemple #5
0
 public static extern cudaError cudaGLUnmapBufferObjectAsync(uint bufObj, cudaStream stream);
Exemple #6
0
 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);