Env variable to not check compiler abi (#12708)

Summary:
For https://github.com/pytorch/pytorch/issues/10114

soumith fmassa
Pull Request resolved: https://github.com/pytorch/pytorch/pull/12708

Differential Revision: D10444102

Pulled By: goldsborough

fbshipit-source-id: 529e737e795bd8801beab2247be3dad296af5a3e
This commit is contained in:
Peter Goldsborough
2018-10-21 20:05:57 -07:00
committed by Facebook Github Bot
parent 1e8064dec0
commit 01227f3ba7

View File

@ -114,6 +114,8 @@ def check_compiler_abi_compatibility(compiler):
'''
if not _is_binary_build():
return True
if os.environ.get('TORCH_DONT_CHECK_COMPILER_ABI') in ['ON', '1', 'YES', 'TRUE', 'Y']:
return True
try:
check_cmd = '{}' if IS_WINDOWS else '{} --version'
info = subprocess.check_output(