futhark-server 1.1.0.0 → 1.1.1.0
raw patch · 3 files changed
+24/−1 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Futhark.Server: cmdPauseProfiling :: Server -> IO (Maybe CmdFailure)
+ Futhark.Server: cmdSetTuningParam :: Server -> Text -> Text -> IO (Either CmdFailure [Text])
+ Futhark.Server: cmdUnpauseProfiling :: Server -> IO (Maybe CmdFailure)
Files
- CHANGELOG.md +4/−0
- futhark-server.cabal +1/−1
- src/Futhark/Server.hs +19/−0
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for futhark-server +## 1.1.1.0 -- 2021-09-30++* Added `cmdPauseProfiling`, `cmdUnpauseProfiling`, `cmdSetTuningParam`.+ ## 1.1.0.0 -- 2021-07-01 * `cmdInputs` and `cmdOutputs` now return `InputType` and `OutputType`
futhark-server.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: futhark-server-version: 1.1.0.0+version: 1.1.1.0 synopsis: Client implementation of the Futhark server protocol. description: Provides an easy way to interact with a running Futhark
src/Futhark/Server.hs view
@@ -12,6 +12,10 @@ -- 'CmdFailure'. However, certain errors (such as if the server -- process terminates unexpectedly, or temporary files cannot be -- created) will result in an IO exception.+--+-- Many of the functions here are documented only as the server+-- protocol command they correspond to. See the protocol+-- documentation for details. module Futhark.Server ( -- * Server creation Server,@@ -35,6 +39,9 @@ cmdOutputs, cmdClear, cmdReport,+ cmdPauseProfiling,+ cmdUnpauseProfiling,+ cmdSetTuningParam, -- * Utility cmdMaybe,@@ -288,6 +295,18 @@ -- | @report@ cmdReport :: Server -> IO (Either CmdFailure [T.Text]) cmdReport s = sendCommand s ["report"]++-- | @pause_profiling@+cmdPauseProfiling :: Server -> IO (Maybe CmdFailure)+cmdPauseProfiling s = helpCmd s ["pause_profiling"]++-- | @unpause_profiling@+cmdUnpauseProfiling :: Server -> IO (Maybe CmdFailure)+cmdUnpauseProfiling s = helpCmd s ["unpause_profiling"]++-- | @set_tuning_param param value@+cmdSetTuningParam :: Server -> Text -> Text -> IO (Either CmdFailure [T.Text])+cmdSetTuningParam s param value = sendCommand s ["set_tuning_param", param, value] -- | Turn a 'Maybe'-producing command into a monadic action. cmdMaybe :: (MonadError T.Text m, MonadIO m) => IO (Maybe CmdFailure) -> m ()