mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 07:41:09 +08:00
Warn if OMP_NUM_THREADS is set (#6729)
This commit is contained in:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user