Copyright | [2009..2017] Trevor L. McDonell |
---|---|
License | BSD |
Safe Haskell | None |
Language | Haskell98 |
Module linking for low-level driver interface
Since CUDA-5.5
- data LinkState
- data JITOption
- data JITInputType
- create :: [JITOption] -> IO LinkState
- destroy :: LinkState -> IO ()
- complete :: LinkState -> IO Module
- addFile :: LinkState -> FilePath -> JITInputType -> [JITOption] -> IO ()
- addData :: LinkState -> ByteString -> JITInputType -> [JITOption] -> IO ()
- addDataFromPtr :: LinkState -> Int -> Ptr Word8 -> JITInputType -> [JITOption] -> IO ()
JIT module linking
Just-in-time compilation and linking options
MaxRegisters !Int | maximum number of registers per thread |
ThreadsPerBlock !Int | number of threads per block to target for |
OptimisationLevel !Int | level of optimisation to apply (1-4, default 4) |
Target !Compute | compilation target, otherwise determined from context |
FallbackStrategy !JITFallback | fallback strategy if matching cubin not found |
GenerateDebugInfo | generate debug info (-g) (requires cuda >= 5.5) |
GenerateLineInfo | generate line number information (-lineinfo) (requires cuda >= 5.5) |
Verbose | verbose log messages (requires cuda >= 5.5) |
data JITInputType Source #
Device code formats that can be used for online linking
destroy :: LinkState -> IO () Source #
Destroy the state of a JIT linker invocation.
Requires CUDA-5.5.
complete :: LinkState -> IO Module Source #
Complete a pending linker invocation and load the current module. The link state will be destroyed.
Requires CUDA-5.5.
addFile :: LinkState -> FilePath -> JITInputType -> [JITOption] -> IO () Source #
Add an input file to a pending linker invocation.
Requires CUDA-5.5.
addData :: LinkState -> ByteString -> JITInputType -> [JITOption] -> IO () Source #
Add an input to a pending linker invocation.
Requires CUDA-5.5.