| commit | 3d4d39ce30a337fb18f5226dac6c6102ca6cc93f | [log] [tgz] |
|---|---|---|
| author | Peter Goldsborough <peter@goldsborough.me> | Fri Apr 27 08:19:17 2018 +0100 |
| committer | GitHub <noreply@github.com> | Fri Apr 27 08:19:17 2018 +0100 |
| tree | add079193ad63831f6e2e728a25d3fd8220dbf49 | |
| parent | 9db779f3314e91cb2ac3ca4b4f0016e37d2457f0 [diff] |
Also check compiler ABI compatibility when JIT compiling (#7015)
diff --git a/torch/utils/cpp_extension.py b/torch/utils/cpp_extension.py index 917507b..ad148cb 100644 --- a/torch/utils/cpp_extension.py +++ b/torch/utils/cpp_extension.py
@@ -475,6 +475,7 @@ if baton.try_acquire(): try: + check_compiler_abi_compatibility(os.environ.get('CXX', 'c++')) with_cuda = any(map(_is_cuda_file, sources)) extra_ldflags = _prepare_ldflags( extra_ldflags or [],