cjolivier01 commented on a change in pull request #9933: [MXNET-23] Adding 
support to profile kvstore server during distributed training
URL: https://github.com/apache/incubator-mxnet/pull/9933#discussion_r176944971
 
 

 ##########
 File path: include/mxnet/kvstore.h
 ##########
 @@ -361,6 +373,17 @@ class KVStore {
    */
   virtual void SendCommandToServers(int cmd_id, const std::string& cmd_body) { 
}
 
+  /**
+   * \brief Sends server profiler commands to all server nodes
+   * Only the worker with rank=0 sends the command which will be received by 
all servers
+   * \param type ProfilerCommand type
+   * \param params parameters for that command in the form of a string
+   */
+  virtual void SetServerProfilerCommand(const KVStoreServerProfilerCommand 
type,
+                                        const std::string& params) {
+    LOG(FATAL) << "compile with USE_DIST_KVSTORE=1 to use distributed kvstore";
 
 Review comment:
   what I mean is, for builds that may not have kvstore enabled, you might 
still want code to work, but only locally and not just blow up

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to