Skip to content

Commit

Permalink
Fixes the GAE fork issue with openmpi (#2820)
Browse files Browse the repository at this point in the history
## Related issue number

Fixes #2812

Signed-off-by: Tao He <[email protected]>
  • Loading branch information
sighingnow authored Jun 6, 2023
1 parent ba35996 commit 99c9d15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions analytical_engine/core/grape_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>::max();
Expand Down

0 comments on commit 99c9d15

Please sign in to comment.