Copyright | [2009..2023] Trevor L. McDonell |
---|---|
License | BSD |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
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
Instances
Enum OutputMode Source # | |
Defined in Foreign.CUDA.Driver.Profiler 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 showsPrec :: Int -> OutputMode -> ShowS # show :: OutputMode -> String # showList :: [OutputMode] -> ShowS # | |
Eq OutputMode Source # | |
Defined in Foreign.CUDA.Driver.Profiler (==) :: OutputMode -> OutputMode -> Bool # (/=) :: OutputMode -> OutputMode -> Bool # |
:: 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.
http://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__PROFILER.html#group__CUDA__PROFILER
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.