diff --git a/analytical_engine/core/grape_engine.cc b/analytical_engine/core/grape_engine.cc index 173d56c36653..bccc59b099aa 100644 --- a/analytical_engine/core/grape_engine.cc +++ b/analytical_engine/core/grape_engine.cc @@ -199,6 +199,9 @@ class RedirectLogSink : public google::LogSink { }; int main(int argc, char* argv[]) { + // set RDMAV_FORK_SAFE to avoid the openmpi error, see also #2812 + setenv("RDMAV_FORK_SAFE", "1", 0); + int exit_code = 0; // not output any log to stderr by glog. FLAGS_stderrthreshold = std::numeric_limits::max();