Prevent excessive parallelism in PyTorch.
We're already using as many processes in parallel as we have CPU cores. Furthermore, the number of core may be incorrectly calculated as 36 (we've seen this in pytest-xdist) which make compound the problem. PyTorch performance craters without this.
This commit is contained in:
@@ -4,6 +4,8 @@ jobs:
|
|||||||
working_directory: ~/transformers
|
working_directory: ~/transformers
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/python:3.5
|
- image: circleci/python:3.5
|
||||||
|
environment:
|
||||||
|
OMP_NUM_THREADS: 1
|
||||||
resource_class: xlarge
|
resource_class: xlarge
|
||||||
parallelism: 1
|
parallelism: 1
|
||||||
steps:
|
steps:
|
||||||
@@ -19,6 +21,8 @@ jobs:
|
|||||||
working_directory: ~/transformers
|
working_directory: ~/transformers
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/python:3.5
|
- image: circleci/python:3.5
|
||||||
|
environment:
|
||||||
|
OMP_NUM_THREADS: 1
|
||||||
resource_class: xlarge
|
resource_class: xlarge
|
||||||
parallelism: 1
|
parallelism: 1
|
||||||
steps:
|
steps:
|
||||||
@@ -34,6 +38,8 @@ jobs:
|
|||||||
working_directory: ~/transformers
|
working_directory: ~/transformers
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/python:3.5
|
- image: circleci/python:3.5
|
||||||
|
environment:
|
||||||
|
OMP_NUM_THREADS: 1
|
||||||
resource_class: xlarge
|
resource_class: xlarge
|
||||||
parallelism: 1
|
parallelism: 1
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user