Warn if OMP_NUM_THREADS is set (#6729)

This commit is contained in:
Eric Liang
2020-01-08 14:59:07 -08:00
committed by GitHub
parent a745886242
commit 69c5a2bc3c
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -675,6 +675,11 @@ def init(address=None,
else:
driver_mode = SCRIPT_MODE
if "OMP_NUM_THREADS" in os.environ:
logger.warning("OMP_NUM_THREADS={} is set, this may impact "
"object transfer performance.".format(
os.environ["OMP_NUM_THREADS"]))
if setproctitle is None:
logger.warning(
"WARNING: Not updating worker name since `setproctitle` is not "