Copyright | [2018..2023] Trevor L. McDonell |
---|---|
License | BSD |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
Graph execution functions for the low-level driver interface
Requires CUDA-10
Synopsis
- newtype Executable = Executable {
- useExecutable :: Ptr ()
- launch :: Executable -> Stream -> IO ()
- instantiate :: Graph -> IO Executable
- destroy :: Executable -> IO ()
- setKernel :: Executable -> Node -> Fun -> (Int, Int, Int) -> (Int, Int, Int) -> Int -> [FunParam] -> IO ()
Documentation
newtype Executable Source #
Executable | |
|
Instances
Show Executable Source # | |
Defined in Foreign.CUDA.Driver.Graph.Base showsPrec :: Int -> Executable -> ShowS # show :: Executable -> String # showList :: [Executable] -> ShowS # | |
Eq Executable Source # | |
Defined in Foreign.CUDA.Driver.Graph.Base (==) :: Executable -> Executable -> Bool # (/=) :: Executable -> Executable -> Bool # |
Execution
launch :: Executable -> Stream -> IO () Source #
Execute a graph in the given stream. Only one instance may execute at
a time; to execute a graph concurrently, it must be instantiate
d into
multiple executables.
Requires CUDA-10.0
Since: 0.10.0.0
instantiate :: Graph -> IO Executable Source #
Instantiate the task graph description of a program into an executable graph.
Requires CUDA-10.0
Since: 0.10.0.0
destroy :: Executable -> IO () Source #
Destroy an executable graph
Requires CUDA-10.0
Since: 0.10.0.0