Skip to content

Commit 97c1d3f

Browse files
committed
move flag definition to dynamic_loader.cc
1 parent 51cac4a commit 97c1d3f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

paddle/phi/backends/dynload/dynamic_loader.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ PHI_DEFINE_string(rccl_dir,
7272
COMMON_DECLARE_string(flagcx_dir);
7373
#endif
7474

75+
PHI_DEFINE_EXPORTED_string(
76+
flagcx_dir, // NOLINT
77+
"",
78+
"Specify path for loading libflagcx.so. For instance, "
79+
"For instance, /usr/local/flagcx/lib. If default, "
80+
"dlopen will search flagcx from LD_LIBRARY_PATH");
81+
7582
#ifdef PADDLE_WITH_XPU
7683
PD_DEFINE_string(xpti_dir, "", "Specify path for loading libxpti.so.");
7784
#endif

0 commit comments

Comments
 (0)