From 7cbd1543446f93037c03b5313d7cae7bd34e18d4 Mon Sep 17 00:00:00 2001 From: Alexey Rybalchenko Date: Fri, 3 Apr 2020 17:15:55 +0200 Subject: [PATCH] PMIx plugin: Fix Commands API usage --- fairmq/plugins/PMIx/PMIxPlugin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fairmq/plugins/PMIx/PMIxPlugin.cxx b/fairmq/plugins/PMIx/PMIxPlugin.cxx index 4de3639e..c4bc02de 100644 --- a/fairmq/plugins/PMIx/PMIxPlugin.cxx +++ b/fairmq/plugins/PMIx/PMIxPlugin.cxx @@ -171,7 +171,7 @@ auto PMIxPlugin::SubscribeForCommands() -> void LOG(debug) << "Publishing state-change: " << fLastState << "->" << fCurrentState << " to " << sender; - Cmds outCmds(make(fDeviceId, Result::Ok), + Cmds outCmds(make(fDeviceId, fProcess.rank, Result::Ok), make(fDeviceId, 0, fLastState, fCurrentState)); fCommands.Send(outCmds.Serialize(Format::JSON), {sender}); } @@ -181,7 +181,7 @@ auto PMIxPlugin::SubscribeForCommands() -> void lock_guard lock{fStateChangeSubscriberMutex}; fStateChangeSubscribers.erase(sender.rank); } - fCommands.Send(Cmds(make(fDeviceId, Result::Ok)) + fCommands.Send(Cmds(make(fDeviceId, fProcess.rank, Result::Ok)) .Serialize(Format::JSON), {sender}); }