cusparse-0.2.0.0: FFI bindings to the CUDA Sparse BLAS library

Copyright[2017] Trevor L. McDonell
LicenseBSD3
MaintainerTrevor L. McDonell <tmcdonell@cse.unsw.edu.au>
Stabilityexperimental
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Foreign.CUDA.BLAS.Sparse.Level2

Description

For more information see the cuSPARSE Level-2 function reference:

http://docs.nvidia.com/cuda/cusparse/index.html#cusparse-level-2-function-reference

Synopsis

Documentation

data Operation Source #

Indicates which operations need to be performed with the sparse matrix.

  • N: no transpose selected
  • T: transpose operation
  • C: conjugate transpose

http://docs.nvidia.com/cuda/cusparse/index.html#cusparseoperationt

Constructors

N 
T 
C 

data Type Source #

Used to specify the type of data underlying a void* pointer. For example, it is used in the routine csrmvEx.

Constructors

R32f 
R64f 
R16f 
R8i 
C32f 
C64f 
C16f 
C8i 
R8u 
C8u 
R32i 
C32i 
R32u 
C32u 
Instances
Enum Type Source # 
Instance details

Defined in Foreign.CUDA.BLAS.Sparse.Internal.Types

Methods

succ :: Type -> Type #

pred :: Type -> Type #

toEnum :: Int -> Type #

fromEnum :: Type -> Int #

enumFrom :: Type -> [Type] #

enumFromThen :: Type -> Type -> [Type] #

enumFromTo :: Type -> Type -> [Type] #

enumFromThenTo :: Type -> Type -> Type -> [Type] #

Eq Type Source # 
Instance details

Defined in Foreign.CUDA.BLAS.Sparse.Internal.Types

Methods

(==) :: Type -> Type -> Bool #

(/=) :: Type -> Type -> Bool #

Show Type Source # 
Instance details

Defined in Foreign.CUDA.BLAS.Sparse.Internal.Types

Methods

showsPrec :: Int -> Type -> ShowS #

show :: Type -> String #

showList :: [Type] -> ShowS #

data Policy Source #

Indicates whether level information is used by some solver algorithms.

http://docs.nvidia.com/cuda/cusparse/index.html#cusparsesolvepolicy_t

Constructors

NoLevel 
UseLevel 

data MatrixDescriptor Source #

An opaque type used to describe the shape and properties of a matrix.

http://docs.nvidia.com/cuda/cusparse/index.html#cusparsematdescrt

data Hybrid Source #

An opaque structure holding the matrix in hybrid (HYB) format.

http://docs.nvidia.com/cuda/cusparse/index.html#cusparsehybmatt

data Info Source #

An opaque structure holding the information collected in the analysis phase of the solution of the sparse triangular linear system.

http://docs.nvidia.com/cuda/cusparse/index.html#cusparsesolveanalysisinfot

csrmvEx :: Handle -> Algorithm -> Operation -> Int -> Int -> Int -> Ptr () -> Type -> MatrixDescriptor -> DevicePtr () -> Type -> DevicePtr Int32 -> DevicePtr Int32 -> DevicePtr () -> Type -> Ptr () -> Type -> DevicePtr () -> Type -> Type -> DevicePtr () -> IO () Source #