mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
Facebook Github Bot
parent
1e8064dec0
commit
01227f3ba7
@ -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(
|
||||
|
Reference in New Issue
Block a user