cublas-0.2.0.0: FFI bindings to the CUDA CUBLAS and CUSPARSE libraries

Safe HaskellNone

Foreign.CUDA.Cusparse

Contents

Synopsis

Types

Initialization and destruction

destroy :: Handle -> IO ()

BLAS functions

class Cusparse a where

Methods

axpyi :: Handle -> Int -> a -> DevicePtr a -> DevicePtr CInt -> DevicePtr a -> IndexBase -> IO ()

bsr2csr :: Handle -> Direction -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> IO ()

bsric02 :: Handle -> Direction -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Int -> Bsric02Info -> SolvePolicy -> DevicePtr () -> IO ()

bsric02_analysis :: Handle -> Direction -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Int -> Bsric02Info -> SolvePolicy -> DevicePtr () -> IO ()

bsric02_bufferSize :: Handle -> Direction -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Int -> Bsric02Info -> DevicePtr CInt -> IO ()

bsrilu02 :: Handle -> Direction -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Int -> Bsrilu02Info -> SolvePolicy -> DevicePtr () -> IO ()

bsrilu02_analysis :: Handle -> Direction -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Int -> Bsrilu02Info -> SolvePolicy -> DevicePtr () -> IO ()

bsrilu02_bufferSize :: Handle -> Direction -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Int -> Bsrilu02Info -> DevicePtr CInt -> IO ()

bsrmv :: Handle -> Direction -> Operation -> Int -> Int -> Int -> a -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Int -> DevicePtr a -> a -> DevicePtr a -> IO ()

bsrsv2_analysis :: Handle -> Direction -> Operation -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Int -> Bsrsv2Info -> SolvePolicy -> DevicePtr () -> IO ()

bsrsv2_bufferSize :: Handle -> Direction -> Operation -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Int -> Bsrsv2Info -> DevicePtr CInt -> IO ()

bsrsv2_solve :: Handle -> Direction -> Operation -> Int -> Int -> a -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Int -> Bsrsv2Info -> DevicePtr a -> DevicePtr a -> SolvePolicy -> DevicePtr () -> IO ()

bsrxmv :: Handle -> Direction -> Operation -> Int -> Int -> Int -> Int -> a -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> DevicePtr CInt -> DevicePtr CInt -> Int -> DevicePtr a -> a -> DevicePtr a -> IO ()

csc2dense :: Handle -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> DevicePtr a -> Int -> IO ()

csc2hyb :: Handle -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> HybMat -> Int -> HybPartition -> IO ()

csr2bsr :: Handle -> Direction -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> IO ()

csr2cs :: Handle -> Int -> Int -> Int -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Action -> IndexBase -> IO ()

csr2dense :: Handle -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> DevicePtr a -> Int -> IO ()

csr2gebsr :: Handle -> Direction -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Int -> Int -> DevicePtr () -> IO ()

csr2gebsr_bufferSize :: Handle -> Direction -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Int -> Int -> DevicePtr CInt -> IO ()

csr2hyb :: Handle -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> HybMat -> Int -> HybPartition -> IO ()

csrgeam :: Handle -> Int -> Int -> a -> MatDescr -> Int -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> a -> MatDescr -> Int -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> IO ()

csrgemm :: Handle -> Operation -> Operation -> Int -> Int -> Int -> MatDescr -> Int -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> MatDescr -> Int -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> IO ()

csric0 :: Handle -> Operation -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> SolveAnalysisInfo -> IO ()

csric02 :: Handle -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Csric02Info -> SolvePolicy -> DevicePtr () -> IO ()

csric02_analysis :: Handle -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Csric02Info -> SolvePolicy -> DevicePtr () -> IO ()

csric02_bufferSize :: Handle -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Csric02Info -> DevicePtr CInt -> IO ()

csrilu0 :: Handle -> Operation -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> SolveAnalysisInfo -> IO ()

csrilu02 :: Handle -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Csrilu02Info -> SolvePolicy -> DevicePtr () -> IO ()

csrilu02_analysis :: Handle -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Csrilu02Info -> SolvePolicy -> DevicePtr () -> IO ()

csrilu02_bufferSize :: Handle -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Csrilu02Info -> DevicePtr CInt -> IO ()

csrmm :: Handle -> Operation -> Int -> Int -> Int -> Int -> a -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> DevicePtr a -> Int -> a -> DevicePtr a -> Int -> IO ()

csrmm2 :: Handle -> Operation -> Operation -> Int -> Int -> Int -> Int -> a -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> DevicePtr a -> Int -> a -> DevicePtr a -> Int -> IO ()

csrmv :: Handle -> Operation -> Int -> Int -> Int -> a -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> DevicePtr a -> a -> DevicePtr a -> IO ()

csrsm_analysis :: Handle -> Operation -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> SolveAnalysisInfo -> IO ()

csrsm_solve :: Handle -> Operation -> Int -> Int -> a -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> SolveAnalysisInfo -> DevicePtr a -> Int -> DevicePtr a -> Int -> IO ()

csrsv2_analysis :: Handle -> Operation -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Csrsv2Info -> SolvePolicy -> DevicePtr () -> IO ()

csrsv2_bufferSize :: Handle -> Operation -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Csrsv2Info -> DevicePtr CInt -> IO ()

csrsv2_solve :: Handle -> Operation -> Int -> Int -> a -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Csrsv2Info -> DevicePtr a -> DevicePtr a -> SolvePolicy -> DevicePtr () -> IO ()

csrsv_analysis :: Handle -> Operation -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> SolveAnalysisInfo -> IO ()

csrsv_solve :: Handle -> Operation -> Int -> a -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> SolveAnalysisInfo -> DevicePtr a -> DevicePtr a -> IO ()

dense2cs :: Handle -> Int -> Int -> MatDescr -> DevicePtr a -> Int -> DevicePtr CInt -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> IO ()

dense2csr :: Handle -> Int -> Int -> MatDescr -> DevicePtr a -> Int -> DevicePtr CInt -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> IO ()

dense2hyb :: Handle -> Int -> Int -> MatDescr -> DevicePtr a -> Int -> DevicePtr CInt -> HybMat -> Int -> HybPartition -> IO ()

doti :: Handle -> Int -> DevicePtr a -> DevicePtr CInt -> DevicePtr a -> IndexBase -> IO a

gebsr2gebs :: Handle -> Int -> Int -> Int -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Int -> Int -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Action -> IndexBase -> DevicePtr () -> IO ()

gebsr2gebsc_bufferSize :: Handle -> Int -> Int -> Int -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Int -> Int -> DevicePtr CInt -> IO ()

gebsr2gebsr :: Handle -> Direction -> Int -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Int -> Int -> DevicePtr () -> IO ()

gebsr2gebsr_bufferSize :: Handle -> Direction -> Int -> Int -> Int -> MatDescr -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> Int -> Int -> Int -> Int -> DevicePtr CInt -> IO ()

gthr :: Handle -> Int -> DevicePtr a -> DevicePtr a -> DevicePtr CInt -> IndexBase -> IO ()

gthrz :: Handle -> Int -> DevicePtr a -> DevicePtr a -> DevicePtr CInt -> IndexBase -> IO ()

gtsv :: Handle -> Int -> Int -> DevicePtr a -> DevicePtr a -> DevicePtr a -> DevicePtr a -> Int -> IO ()

gtsvStridedBatch :: Handle -> Int -> DevicePtr a -> DevicePtr a -> DevicePtr a -> DevicePtr a -> Int -> Int -> IO ()

gtsv_nopivot :: Handle -> Int -> Int -> DevicePtr a -> DevicePtr a -> DevicePtr a -> DevicePtr a -> Int -> IO ()

hyb2cs :: Handle -> MatDescr -> HybMat -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> IO ()

hyb2csr :: Handle -> MatDescr -> HybMat -> DevicePtr a -> DevicePtr CInt -> DevicePtr CInt -> IO ()

hyb2dense :: Handle -> MatDescr -> HybMat -> DevicePtr a -> Int -> IO ()

hybmv :: Handle -> Operation -> a -> MatDescr -> HybMat -> DevicePtr a -> a -> DevicePtr a -> IO ()

hybsv_solve :: Handle -> Operation -> a -> MatDescr -> HybMat -> SolveAnalysisInfo -> DevicePtr a -> DevicePtr a -> IO ()

nnz :: Handle -> Direction -> Int -> Int -> MatDescr -> DevicePtr a -> Int -> DevicePtr CInt -> IO Int

sctr :: Handle -> Int -> DevicePtr a -> DevicePtr CInt -> DevicePtr a -> IndexBase -> IO ()

Error handling