Copyright | [2009..2023] Trevor L. McDonell |
---|---|
License | BSD |
Safe Haskell | None |
Language | Haskell98 |
Foreign.CUDA.Driver.Profiler
Description
Profiler control for low-level driver interface
Synopsis
- data OutputMode
- = KeyValuePair
- | CSV
- initialise :: FilePath -> FilePath -> OutputMode -> IO ()
- start :: IO ()
- stop :: IO ()
Documentation
data OutputMode Source #
Profiler output mode
Constructors
KeyValuePair | |
CSV |
Instances
Enum OutputMode Source # | |
Defined in Foreign.CUDA.Driver.Profiler Methods succ :: OutputMode -> OutputMode # pred :: OutputMode -> OutputMode # toEnum :: Int -> OutputMode # fromEnum :: OutputMode -> Int # enumFrom :: OutputMode -> [OutputMode] # enumFromThen :: OutputMode -> OutputMode -> [OutputMode] # enumFromTo :: OutputMode -> OutputMode -> [OutputMode] # enumFromThenTo :: OutputMode -> OutputMode -> OutputMode -> [OutputMode] # | |
Show OutputMode Source # | |
Defined in Foreign.CUDA.Driver.Profiler Methods showsPrec :: Int -> OutputMode -> ShowS # show :: OutputMode -> String # showList :: [OutputMode] -> ShowS # | |
Eq OutputMode Source # | |
Defined in Foreign.CUDA.Driver.Profiler |
Arguments
:: FilePath | configuration file that itemises which counters and/or options to profile |
-> FilePath | output file where profiling results will be stored |
-> OutputMode | |
-> IO () |
Initialise the CUDA profiler.
The configuration file is used to specify profiling options and profiling counters. Refer to the "Compute Command Line Profiler User Guide" for supported profiler options and counters.
Note that the CUDA profiler can not be initialised with this function if another profiling tool is already active.
Stop profiling collection by the active profiling tool for the current context, and force all pending profiler events to be written to the output file. If profiling is already inactive, this has no effect.