Skip to content

Instantly share code, notes, and snippets.

@nkreeger
Last active October 1, 2021 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nkreeger/57fca003cf4a30656e8946d4b0efc98f to your computer and use it in GitHub Desktop.
Save nkreeger/57fca003cf4a30656e8946d4b0efc98f to your computer and use it in GitHub Desktop.
build-pytorch.bat
::set DEBUG=1
set REL_WITH_DEB_INFO=1
::set CMAKE_VERBOSE_MAKEFILE=1
set "CMAKE_INCLUDE_PATH=%cd%\mkl\include"
set "LIB=%cd%\mkl\lib;%LIB%"
set "LIB="C:\Python\Python39\libs";%LIB%"
set "LIB="C:\Python\Python39\Library\bin";%LIB%"
set DISTUTILS_USE_SDK=1
set USE_PRECOMPILED_HEADERS=1
set USE_DISTRIBUTED=0
set USE_CUDA=0
set USE_MKLDNN=0
set USE_FBGEMM=0
set USE_NNPACK=0
set USE_QNNPACK=0
set USE_XNNPACK=0
set CMAKE_GENERATOR_TOOLSET_VERSION=14.27
::set CMAKE_GENERATOR=Ninja
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment