-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Support for Eigen thread pool #20157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Any way to test this? |
|
@jamesr66a I did build PT with |
|
@jamesr66a I also ran |
|
Ok. But should we get this tested in CI somehow? |
|
Makes sense, I guess we should add a few more builds, not only for Eigen but for native and TBB backends too; I think it's better to send a separate PR, it will require some changes to our CI builds and @kostmo review |
|
Where will this be needed? For now we wanted to avoid adding Eigen as a dependency. cc @soumith |
|
some benchmarking data when using 50 parallel threads launching tasks instead of a single serial loop |
Support for Eigen thread pool Summary: Adding support for Eigen thread pool as a replacement for the current native thread pool Test Plan: USE_EIGEN_THREADPOOL=1 USE_CUDA=0 PARALLEL_BACKEND=NATIVE BLAS=MKL USE_MKLDNN=1 USE_OPENCV=1 USE_FFMPEG=1 python setup.py develop --cmake pytest -s -v test/test_torch.py::TestTorch gh-metadata: pytorch pytorch 20157 gh/ilia-cher/16/head
Support for Eigen thread pool Summary: Adding support for Eigen thread pool as a replacement for the current native thread pool Test Plan: USE_EIGEN_THREADPOOL=1 USE_CUDA=0 PARALLEL_BACKEND=NATIVE BLAS=MKL USE_MKLDNN=1 USE_OPENCV=1 USE_FFMPEG=1 python setup.py develop --cmake pytest -s -v test/test_torch.py::TestTorch gh-metadata: pytorch pytorch 20157 gh/ilia-cher/16/head
Support for Eigen thread pool Summary: Adding support for Eigen thread pool as a replacement for the current native thread pool Test Plan: USE_EIGEN_THREADPOOL=1 USE_CUDA=0 PARALLEL_BACKEND=NATIVE BLAS=MKL USE_MKLDNN=1 USE_OPENCV=1 USE_FFMPEG=1 python setup.py develop --cmake pytest -s -v test/test_torch.py::TestTorch gh-metadata: pytorch pytorch 20157 gh/ilia-cher/16/head
Support for Eigen thread pool Summary: Adding support for Eigen thread pool as a replacement for the current native thread pool Test Plan: USE_EIGEN_THREADPOOL=1 USE_CUDA=0 PARALLEL_BACKEND=NATIVE BLAS=MKL USE_MKLDNN=1 USE_OPENCV=1 USE_FFMPEG=1 python setup.py develop --cmake pytest -s -v test/test_torch.py::TestTorch gh-metadata: pytorch pytorch 20157 gh/ilia-cher/16/head
Support for Eigen thread pool Summary: Adding support for Eigen thread pool as a replacement for the current native thread pool Test Plan: USE_EIGEN_THREADPOOL=1 USE_CUDA=0 PARALLEL_BACKEND=NATIVE BLAS=MKL USE_MKLDNN=1 USE_OPENCV=1 USE_FFMPEG=1 python setup.py develop --cmake pytest -s -v test/test_torch.py::TestTorch gh-metadata: pytorch pytorch 20157 gh/ilia-cher/16/head
Support for Eigen thread pool Summary: Adding support for Eigen thread pool as a replacement for the current native thread pool Test Plan: USE_EIGEN_THREADPOOL=1 USE_CUDA=0 PARALLEL_BACKEND=NATIVE BLAS=MKL USE_MKLDNN=1 USE_OPENCV=1 USE_FFMPEG=1 python setup.py develop --cmake pytest -s -v test/test_torch.py::TestTorch gh-metadata: pytorch pytorch 20157 gh/ilia-cher/16/head
Support for Eigen thread pool Summary: Adding support for Eigen thread pool as a replacement for the current native thread pool Test Plan: USE_EIGEN_THREADPOOL=1 USE_CUDA=0 PARALLEL_BACKEND=NATIVE BLAS=MKL USE_MKLDNN=1 USE_OPENCV=1 USE_FFMPEG=1 python setup.py develop --cmake pytest -s -v test/test_torch.py::TestTorch gh-metadata: pytorch pytorch 20157 gh/ilia-cher/16/head
Support for Eigen thread pool Summary: Adding support for Eigen thread pool as a replacement for the current native thread pool Test Plan: USE_EIGEN_THREADPOOL=1 USE_CUDA=0 PARALLEL_BACKEND=NATIVE BLAS=MKL USE_MKLDNN=1 USE_OPENCV=1 USE_FFMPEG=1 python setup.py develop --cmake pytest -s -v test/test_torch.py::TestTorch gh-metadata: pytorch pytorch 20157 gh/ilia-cher/16/head
Support for Eigen thread pool Summary: Adding support for Eigen thread pool as a replacement for the current native thread pool Test Plan: USE_EIGEN_THREADPOOL=1 USE_CUDA=0 PARALLEL_BACKEND=NATIVE BLAS=MKL USE_MKLDNN=1 USE_OPENCV=1 USE_FFMPEG=1 python setup.py develop --cmake pytest -s -v test/test_torch.py::TestTorch gh-metadata: pytorch pytorch 20157 gh/ilia-cher/16/head
Support for Eigen thread pool Summary: Adding support for Eigen thread pool as a replacement for the current native thread pool Test Plan: USE_EIGEN_THREADPOOL=1 USE_CUDA=0 PARALLEL_BACKEND=NATIVE BLAS=MKL USE_MKLDNN=1 USE_OPENCV=1 USE_FFMPEG=1 python setup.py develop --cmake pytest -s -v test/test_torch.py::TestTorch gh-metadata: pytorch pytorch 20157 gh/ilia-cher/16/head
Support for Eigen thread pool Summary: Adding support for Eigen thread pool as a replacement for the current native thread pool Test Plan: USE_EIGEN_THREADPOOL=1 USE_CUDA=0 PARALLEL_BACKEND=NATIVE BLAS=MKL USE_MKLDNN=1 USE_OPENCV=1 USE_FFMPEG=1 python setup.py develop --cmake pytest -s -v test/test_torch.py::TestTorch gh-metadata: pytorch pytorch 20157 gh/ilia-cher/16/head
Support for Eigen thread pool Summary: Adding support for Eigen thread pool as a replacement for the current native thread pool Test Plan: USE_EIGEN_THREADPOOL=1 USE_CUDA=0 PARALLEL_BACKEND=NATIVE BLAS=MKL USE_MKLDNN=1 USE_OPENCV=1 USE_FFMPEG=1 python setup.py develop --cmake pytest -s -v test/test_torch.py::TestTorch gh-metadata: pytorch pytorch 20157 gh/ilia-cher/16/head
Support for Eigen thread pool Summary: Adding support for Eigen thread pool as a replacement for the current native thread pool Test Plan: USE_EIGEN_THREADPOOL=1 USE_CUDA=0 PARALLEL_BACKEND=NATIVE BLAS=MKL USE_MKLDNN=1 USE_OPENCV=1 USE_FFMPEG=1 python setup.py develop --cmake pytest -s -v test/test_torch.py::TestTorch gh-metadata: pytorch pytorch 20157 gh/ilia-cher/16/head
Support for Eigen thread pool Summary: Adding support for Eigen thread pool as a replacement for the current native thread pool Test Plan: USE_EIGEN_THREADPOOL=1 USE_CUDA=0 PARALLEL_BACKEND=NATIVE BLAS=MKL USE_MKLDNN=1 USE_OPENCV=1 USE_FFMPEG=1 python setup.py develop --cmake pytest -s -v test/test_torch.py::TestTorch gh-metadata: pytorch pytorch 20157 gh/ilia-cher/16/head
Support for Eigen thread pool Summary: Adding support for Eigen thread pool as a replacement for the current native thread pool Test Plan: USE_EIGEN_THREADPOOL=1 USE_CUDA=0 PARALLEL_BACKEND=NATIVE BLAS=MKL USE_MKLDNN=1 USE_OPENCV=1 USE_FFMPEG=1 python setup.py develop --cmake pytest -s -v test/test_torch.py::TestTorch gh-metadata: pytorch pytorch 20157 gh/ilia-cher/16/head
Stack from ghstack:
Summary:
Adding support for Eigen thread pool as a replacement
for the current native thread pool
Test Plan:
USE_EIGEN_THREADPOOL=1 USE_CUDA=0 PARALLEL_BACKEND=NATIVE BLAS=MKL
USE_MKLDNN=1 USE_OPENCV=1 USE_FFMPEG=1 python setup.py develop --cmake
pytest -s -v test/test_torch.py::TestTorch
pytest -s -v test/test_jit.py
Differential Revision: D15248708