当前位置: 首页>>代码示例>>C#>>正文


C# Types.CUdeviceptr类代码示例

本文整理汇总了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);

        }
开发者ID:maotong,项目名称:KMLib,代码行数:17,代码来源:EllpackDenseVectorBuilder.cs

示例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);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriverEmulation.cs

示例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);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriverEmulation.cs

示例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);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriverEmulation.cs

示例5: cublasDcopy

 public static extern void cublasDcopy(int n, CUdeviceptr x, int incx, CUdeviceptr y, int incy);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriverEmulation.cs

示例6: cublasCtrsv

 public static extern void cublasCtrsv(char uplo, char trans, char diag, int n, CUdeviceptr A, int lda, CUdeviceptr x, int incx);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriverEmulation.cs

示例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);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriverEmulation.cs

示例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);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriverEmulation.cs

示例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);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriverEmulation.cs

示例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);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriverEmulation.cs

示例11: cublasZdscal

 public static extern void cublasZdscal(int n, double alpha, CUdeviceptr x, int incx);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriverEmulation.cs

示例12: cublasZdrot

 public static extern void cublasZdrot(int n, CUdeviceptr x, int incx, CUdeviceptr y, int incy, double c, double s);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriverEmulation.cs

示例13: cublasZdotu

 public static extern cuDoubleComplex cublasZdotu(int n, CUdeviceptr x, int incx, CUdeviceptr y, int incy);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriverEmulation.cs

示例14: cublasZaxpy

 public static extern void cublasZaxpy(int n, cuDoubleComplex alpha, CUdeviceptr x, int incx, CUdeviceptr y, int incy);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriverEmulation.cs

示例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);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriverEmulation.cs


注:本文中的GASS.CUDA.Types.CUdeviceptr类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。