mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-05 00:14:54 +08:00
Fix Windows build and test in CI (#11716)
Summary: This PR adds Windows support for the C++ frontend. A lot of declarations were missing `TORCH_API` macros, and lots of code just did not compile on MSVC. ebetica ezyang orionr Pull Request resolved: https://github.com/pytorch/pytorch/pull/11716 Reviewed By: orionr Differential Revision: D13038253 Pulled By: goldsborough fbshipit-source-id: c8e5a45efd26117aeb99e768b56fcd5a89fcb9f8
This commit is contained in:
committed by
Facebook Github Bot
parent
f649d8b3a9
commit
8311bbee7f
@ -18,7 +18,10 @@ if __name__ == '__main__':
|
||||
os.environ['PYTORCH_PYTHON'] = sys.executable
|
||||
|
||||
tools_path = os.path.dirname(os.path.abspath(__file__))
|
||||
build_pytorch_libs = os.path.join(tools_path, 'build_pytorch_libs.sh')
|
||||
if sys.platform == 'win32':
|
||||
build_pytorch_libs = os.path.join(tools_path, 'build_pytorch_libs.bat')
|
||||
else:
|
||||
build_pytorch_libs = os.path.join(tools_path, 'build_pytorch_libs.sh')
|
||||
|
||||
command = [build_pytorch_libs, '--use-nnpack']
|
||||
USE_MKLDNN = check_env_flag('USE_MKLDNN', 'ON')
|
||||
|
||||
Reference in New Issue
Block a user