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.Context

Contents

Description

 
Synopsis

Context management

newtype Handle Source #

An opaque handle to the cuSPARSE library context, which is passed to all library function calls.

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

Constructors

Handle 

Fields

create :: IO Handle Source #

This function initializes the cuSPARSE library and creates a handle on the cuSPARSE context. It must be called before any other cuSPARSE API function is invoked. It allocates hardware resources necessary for accessing the GPU.

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

destroy :: Handle -> IO () Source #

This function releases CPU-side resources used by the cuSPARSE library. The release of GPU-side resources may be deferred until the application shuts down.

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

Utilities

setPointerMode :: Handle -> PointerMode -> IO () Source #

Set the pointer mode used by cuSPARSE library functions.

The default mode is for values to be passed by reference from the host.

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

getPointerMode :: Handle -> IO PointerMode Source #

Get the pointer mode used by cuSPARSE library functions to pass scalar arguments.

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