{-# LANGUAGE CPP #-} {-# LANGUAGE ForeignFunctionInterface #-} -- | -- Module : Foreign.CUDA.Solver.Sparse.Stream -- Copyright : [2017] Trevor L. McDonell -- License : BSD3 -- -- Maintainer : Trevor L. McDonell -- Stability : experimental -- Portability : non-portable (GHC extensions) -- module Foreign.CUDA.Solver.Sparse.Stream ( setStream, ) where import Foreign.CUDA.Driver.Stream import Foreign.CUDA.Solver.Error import Foreign.CUDA.Solver.Sparse.Context import Foreign.C import Foreign.Ptr #include "cbits/stubs.h" {# context lib="cusparse" #} -- | Sets the execution stream which all subsequent cuSolverSp library functions -- will execute with. If not set, functions execute in the default stream (which -- never overlaps any other operations). -- -- -- {-# INLINEABLE setStream #-} {# fun unsafe cusolverSpSetStream as setStream { useHandle `Handle' , useStream `Stream' } -> `()' checkStatus* #}