Copyright | [2009..2017] Trevor L. McDonell |
---|---|
License | BSD |
Safe Haskell | None |
Language | Haskell98 |
Profiler control for low-level driver interface
- data OutputMode
- = KeyValuePair
- | CSV
- initialise :: FilePath -> FilePath -> OutputMode -> IO ()
- start :: IO ()
- stop :: IO ()
Documentation
data OutputMode Source #
Profiler output mode
:: 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.