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
+2 -2
View File
@@ -109,8 +109,8 @@ element ``x_{i+1}`` is fetched from the source actor. This is useful if you need
update the source actor between iterator steps. Note that for async gather, this
ordering only applies per shard.
**Operator state**: Operator state is preserved for each shard. This means that you can pass a stateful callable to ``.foreach()``:
For example, this means you can pass a stateful callable to ``.foreach()``:
**Operator state**: Operator state is preserved for each shard.
This means that you can pass a stateful callable to ``.foreach()``:
.. code-block:: python
+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 "