mirror of
https://github.com/wassname/ray.git
synced 2026-08-12 12:20:11 +08:00
Change log level for OMP warning (#7114)
This commit is contained in:
@@ -48,6 +48,14 @@ If using the command line, connect to the Ray cluster as follow:
|
||||
# Connect to ray. Notice if connected to existing cluster, you don't specify resources.
|
||||
ray.init(address=<address>)
|
||||
|
||||
.. note::
|
||||
Ray sets the environment variable ``OMP_NUM_THREADS=1`` by default. This is done
|
||||
to avoid performance degradation with many workers (issue #6998). You can
|
||||
override this by explicitly setting ``OMP_NUM_THREADS``. ``OMP_NUM_THREADS`` is commonly
|
||||
used in numpy, PyTorch, and Tensorflow to perform multit-threaded linear algebra.
|
||||
In multi-worker setting, we want one thread per worker instead of many threads
|
||||
per worker to avoid contention.
|
||||
|
||||
|
||||
Logging and Debugging
|
||||
---------------------
|
||||
|
||||
Reference in New Issue
Block a user