Skip to content

Commit 99c9d15

Browse files
authored
Fixes the GAE fork issue with openmpi (#2820)
## Related issue number Fixes #2812 Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
1 parent ba35996 commit 99c9d15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

analytical_engine/core/grape_engine.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ class RedirectLogSink : public google::LogSink {
199199
};
200200

201201
int main(int argc, char* argv[]) {
202+
// set RDMAV_FORK_SAFE to avoid the openmpi error, see also #2812
203+
setenv("RDMAV_FORK_SAFE", "1", 0);
204+
202205
int exit_code = 0;
203206
// not output any log to stderr by glog.
204207
FLAGS_stderrthreshold = std::numeric_limits<int>::max();

0 commit comments

Comments
 (0)