本文整理汇总了C#中GASS.CUDA.Types.CUdeviceptr类的典型用法代码示例。如果您正苦于以下问题:C# CUdeviceptr类的具体用法?C# CUdeviceptr怎么用?C# CUdeviceptr使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CUdeviceptr类属于GASS.CUDA.Types命名空间,在下文中一共展示了CUdeviceptr类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EllpackDenseVectorBuilder
public EllpackDenseVectorBuilder(CUDA cu,CUdeviceptr vector, CUdeviceptr vals,CUdeviceptr cols,CUdeviceptr length,int rows,int dim)
{
cuda = cu;
vecPtr = vector;
valsPtr = vals;
idxPtr = cols;
vecLengthPtr = length;
nrRows = (uint)rows;
vecDim = (uint)dim;
blocksPerGrid = (int) Math.Ceiling( (vecDim + 0.0) / threadsPerBlock);
var blocksPerGrid1 = (vecDim + threadsPerBlock - 1) / threadsPerBlock;
Debug.Assert(blocksPerGrid == blocksPerGrid1);
}
示例2: cublasSsyrk
public static extern void cublasSsyrk(char uplo, char trans, int n, int k, float alpha, CUdeviceptr A, int lda, float beta, CUdeviceptr C, int ldc);
示例3: cublasDger
public static extern void cublasDger(int m, int n, double alpha, CUdeviceptr x, int incx, CUdeviceptr y, int incy, CUdeviceptr A, int lda);
示例4: cublasDgemm
public static extern void cublasDgemm(char transa, char transb, int m, int n, int k, double alpha, CUdeviceptr A, int lda, CUdeviceptr B, int ldb, double beta, CUdeviceptr C, int ldc);
示例5: cublasDcopy
public static extern void cublasDcopy(int n, CUdeviceptr x, int incx, CUdeviceptr y, int incy);
示例6: cublasCtrsv
public static extern void cublasCtrsv(char uplo, char trans, char diag, int n, CUdeviceptr A, int lda, CUdeviceptr x, int incx);
示例7: cublasZtrmm
public static extern void cublasZtrmm(char side, char uplo, char transa, char diag, int m, int n, cuDoubleComplex alpha, CUdeviceptr A, int lda, CUdeviceptr B, int ldb);
示例8: cublasZsyrk
public static extern void cublasZsyrk(char uplo, char trans, int n, int k, cuDoubleComplex alpha, CUdeviceptr A, int lda, cuDoubleComplex beta, CUdeviceptr C, int ldc);
示例9: cublasZgemv
public static extern void cublasZgemv(char trans, int m, int n, cuDoubleComplex alpha, CUdeviceptr A, int lda, CUdeviceptr x, int incx, cuDoubleComplex beta, CUdeviceptr y, int incy);
示例10: cublasZgemm
public static extern void cublasZgemm(char transa, char transb, int m, int n, int k, cuDoubleComplex alpha, CUdeviceptr A, int lda, CUdeviceptr B, int ldb, cuDoubleComplex beta, CUdeviceptr C, int ldc);
示例11: cublasZdscal
public static extern void cublasZdscal(int n, double alpha, CUdeviceptr x, int incx);
示例12: cublasZdrot
public static extern void cublasZdrot(int n, CUdeviceptr x, int incx, CUdeviceptr y, int incy, double c, double s);
示例13: cublasZdotu
public static extern cuDoubleComplex cublasZdotu(int n, CUdeviceptr x, int incx, CUdeviceptr y, int incy);
示例14: cublasZaxpy
public static extern void cublasZaxpy(int n, cuDoubleComplex alpha, CUdeviceptr x, int incx, CUdeviceptr y, int incy);
示例15: cublasStrsm
public static extern void cublasStrsm(char side, char uplo, char transa, char diag, int m, int n, float alpha, CUdeviceptr A, int lda, CUdeviceptr B, int ldb);