diff --git a/docs/Makefile b/docs/Makefile index 61b80ae09e56..cbe17146cd96 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -2,7 +2,7 @@ # # You can set these variables from the command line. -SPHINXOPTS = +SPHINXOPTS = -j auto SPHINXBUILD = sphinx-build SPHINXPROJ = PyTorch SOURCEDIR = source diff --git a/docs/cpp/Makefile b/docs/cpp/Makefile index 689743bbd437..00a330c754fc 100644 --- a/docs/cpp/Makefile +++ b/docs/cpp/Makefile @@ -1,7 +1,7 @@ # Minimal makefile for Sphinx documentation # You can set these variables from the command line. -SPHINXOPTS = +SPHINXOPTS = -j auto SPHINXBUILD = sphinx-build SPHINXPROJ = PyTorch SOURCEDIR = source diff --git a/docs/make.bat b/docs/make.bat index aa4a7a414126..fde7f1fdeaaf 100644 --- a/docs/make.bat +++ b/docs/make.bat @@ -10,6 +10,7 @@ if "%SPHINXBUILD%" == "" ( set SOURCEDIR=source set BUILDDIR=build set SPHINXPROJ=PyTorch +set SPHINXOPTS=-j auto if "%1" == "" goto help