cusparse-0.1.0.0: Foreign/CUDA/BLAS/Sparse/Stream.chs
{-# LANGUAGE CPP #-}
{-# LANGUAGE ForeignFunctionInterface #-}
-- |
-- Module : Foreign.CUDA.BLAS.Sparse.Stream
-- Copyright : [2017] Trevor L. McDonell
-- License : BSD3
--
-- Maintainer : Trevor L. McDonell <tmcdonell@cse.unsw.edu.au>
-- Stability : experimental
-- Portability : non-portable (GHC extensions)
--
module Foreign.CUDA.BLAS.Sparse.Stream (
setStream,
) where
import Foreign.CUDA.Driver.Stream
import Foreign.CUDA.BLAS.Sparse.Context
import Foreign.CUDA.BLAS.Sparse.Error
import Foreign.CUDA.BLAS.Sparse.Internal.C2HS
import Foreign.CUDA.BLAS.Sparse.Internal.Types
import Foreign.C
import Foreign.Ptr
#include "cbits/stubs.h"
{# context lib="cusparse" #}
-- | Sets the execution stream which all subsequent cuSPARSE library functions
-- will execute with. If not set, functions execute in the default stream (which
-- never overlaps any other operations).
--
-- <http://docs.nvidia.com/cuda/cusparse/index.html#cusparsesetstream>
--
{-# INLINEABLE setStream #-}
{# fun unsafe cusparseSetStream as setStream
{ useHandle `Handle'
, useStream `Stream'
}
-> `()' checkStatus* #}