Update torch.distributed.run OMP_NUM_THREADS message to log.warning (#63953)
authorHoward Huang <howardhuang@fb.com>
Wed, 25 Aug 2021 18:53:24 +0000 (11:53 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 25 Aug 2021 18:55:06 +0000 (11:55 -0700)
commit72995657681f6173413b5ee7c62bd91212d07e8d
tree844bb2b2f3cf1355aeaad6eb1ff0760fa6a52dfb
parent3d4aabfc483f274817749c45870a32306b67bfd8
Update torch.distributed.run OMP_NUM_THREADS message to log.warning (#63953)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/63953

Closes #61138

Test:
`python -m torch.distributed.run --nproc_per_node 2 test.py`
Still outputs message

`LOGLEVEL=ERROR python -m torch.distributed.run --nproc_per_node 2 test.py`
Does not output message anymore

cc pietern mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse agolynski SciPioneer H-Huang mrzzd cbalioglu gcramer23

Test Plan: Imported from OSS

Reviewed By: malfet

Differential Revision: D30542997

Pulled By: H-Huang

fbshipit-source-id: e7da30dcda51516abf4e56f1f510132e44397027
torch/distributed/run.py