pytorch/torch
Alexander Grund 5b51ca6808 Update CUDA compiler matrix (#86360)
Switch GCC/Clang max versions to be exclusive as the `include/crt/host_config.h` checks the major version only for the upper bound. This allows to be less restrictive and match the checks in the aforementioned header.
Also update the versions using that header in the CUDA SDKs.

Follow up to #82860

I noticed this as PyTorch 1.12.1 with CUDA 11.3.1 and GCC 10.3 was failing in the `test_cpp_extensions*` tests.

Example for CUDA 11.3.1 from the SDK header:

```
#if __GNUC__ > 11
// Error out
...
#if (__clang_major__ >= 12) || (__clang_major__ < 3) || ((__clang_major__ == 3) &&  (__clang_minor__ < 3))
// Error out
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/86360
Approved by: https://github.com/ezyang
2022-11-23 03:07:22 +00:00
..
_C Update torch.distributed.DistBackendError type (#89235) 2022-11-18 15:27:15 +00:00
_C_flatbuffer
_decomp Add most in-place references/decompositions (#88117) 2022-11-18 14:59:46 +00:00
_dispatch
_dynamo dynamo/torchxla integration: trace on xla rather than eager (#88904) 2022-11-22 03:57:04 +00:00
_functorch PyDispatcher integration with functorch (#88785) 2022-11-16 00:46:59 +00:00
_inductor [inductor] Use dense masks for indirect indexing (#89524) 2022-11-23 00:48:00 +00:00
_lazy
_prims Symintify numel(), infer_size, prims.elementwise_meta (#88956) 2022-11-20 00:42:03 +00:00
_prims_common Meta impl for linalg_cholesky and linalg_cholesky_ex (#89430) 2022-11-22 17:05:34 +00:00
_refs Delete unused variable assignment in _refs/__init__.py (#89538) 2022-11-23 02:59:25 +00:00
_subclasses Suppress guards when creating fake tensors (#89349) 2022-11-21 23:14:20 +00:00
amp
ao [quant] Add quantize_per_channel in quantized_decomposed op library (#89268) 2022-11-22 22:40:11 +00:00
autograd Fix some naughty uses of reshape/flatten (#88999) 2022-11-14 23:38:35 +00:00
backends Add an env var to skip cudnn version compatibility check (#89184) 2022-11-17 20:10:52 +00:00
contrib
cpu
csrc [19/N] Add monitored_barrier custom op with CPU implementation (#89318) 2022-11-22 14:18:40 +00:00
cuda Fix typos in messages under torch (#89049) 2022-11-17 04:18:14 +00:00
distributed Allow Module forward-pre and forward hooks to take kwargs (#89389) 2022-11-23 02:43:32 +00:00
distributions Fix typos in messages under torch (#89049) 2022-11-17 04:18:14 +00:00
fft Fix typos used in documents under torch directory (#88300) 2022-11-02 09:38:13 +00:00
futures
fx dont clone symints, dont clobber symint proxies (#88230) 2022-11-22 01:37:43 +00:00
jit Allow Module forward-pre and forward hooks to take kwargs (#89389) 2022-11-23 02:43:32 +00:00
legacy
lib
linalg improving torch.linalg.lstsq documentation formatting (#89013) 2022-11-14 23:58:46 +00:00
masked Revert "rename DisableTorchFunction to DisableTorchFunctionSubclass (#88218)" 2022-11-11 19:13:05 +00:00
monitor
multiprocessing Deprecate TypedStorage, its derived classes, and all of their public methods (#85303) 2022-11-08 18:11:01 +00:00
nested Fix inaccuracy in nt constructor documentation + broken rendering (#89152) 2022-11-16 22:32:46 +00:00
nn Allow Module forward-pre and forward hooks to take kwargs (#89389) 2022-11-23 02:43:32 +00:00
onnx Fix unconvertible_ops as per #89261 (#89299) 2022-11-21 20:40:04 +00:00
optim Update lr_scheduler.pyi to match lr_scheduler.py (#88818) 2022-11-11 04:02:44 +00:00
package Deprecate TypedStorage, its derived classes, and all of their public methods (#85303) 2022-11-08 18:11:01 +00:00
profiler Fix typos in messages under torch (#89049) 2022-11-17 04:18:14 +00:00
quantization Revert "[ao] making _is_activation_post_process private (#87520)" 2022-11-21 16:48:26 +00:00
signal Reimplement Kaiser window (#87330) 2022-10-27 21:01:01 +00:00
sparse
special
testing Relax tolerance for test_out_addbmm_cpu_float32 (#86365) 2022-11-22 20:27:29 +00:00
utils Update CUDA compiler matrix (#86360) 2022-11-23 03:07:22 +00:00
__config__.py
__future__.py
__init__.py Fix XLASymNode.str() no str() attribute error (#89093) 2022-11-16 21:54:20 +00:00
_appdirs.py
_classes.py
_deploy.py Deprecate TypedStorage, its derived classes, and all of their public methods (#85303) 2022-11-08 18:11:01 +00:00
_jit_internal.py
_linalg_utils.py Remove cpu path from lobpcg's basis helper (#88984) 2022-11-14 17:49:30 +00:00
_lobpcg.py Fix typos used in documents under torch directory (#88300) 2022-11-02 09:38:13 +00:00
_lowrank.py
_meta_registrations.py Meta impl for linalg_cholesky and linalg_cholesky_ex (#89430) 2022-11-22 17:05:34 +00:00
_namedtensor_internals.py
_ops.py Reland 2 "Towards unifying symbolic and non symbolic fake tensor (#89038) (#89143)" (#89346) 2022-11-19 21:14:31 +00:00
_python_dispatcher.py
_six.py
_sources.py
_storage_docs.py
_tensor_docs.py [primTorch] Improve narrow and narrow_copy: refs, tests, docs (#87045) 2022-11-12 15:03:50 +00:00
_tensor_str.py Disable Current Modes when printing Tensor (#88344) 2022-11-04 00:45:35 +00:00
_tensor.py [fix] allow saving python attr on Tensor and Parameter via torch.save (#81616) 2022-11-11 21:11:12 +00:00
_torch_docs.py [primTorch] Improve narrow and narrow_copy: refs, tests, docs (#87045) 2022-11-12 15:03:50 +00:00
_utils_internal.py
_utils.py [fix] allow saving python attr on Tensor and Parameter via torch.save (#81616) 2022-11-11 21:11:12 +00:00
_VF.py
_vmap_internals.py
_weights_only_unpickler.py [fix] allow saving python attr on Tensor and Parameter via torch.save (#81616) 2022-11-11 21:11:12 +00:00
abi-check.cpp
CMakeLists.txt
custom_class_detail.h
custom_class.h
extension.h
functional.py Reland Dispatch torch.norm to linalg.vector_norm and linalg.matrix_norm (#81761) (#84624) 2022-11-22 07:53:24 +00:00
hub.py
library.h Make Python op registration work with torchdeploy/multipy (#87162) 2022-11-03 12:56:44 +00:00
library.py Make Python op registration work with torchdeploy/multipy (#87162) 2022-11-03 12:56:44 +00:00
overrides.py Deprecate TypedStorage, its derived classes, and all of their public methods (#85303) 2022-11-08 18:11:01 +00:00
py.typed
quasirandom.py
random.py
README.txt
return_types.py
script.h
serialization.py Fix typos in messages under torch (#89049) 2022-11-17 04:18:14 +00:00
storage.py Deprecate TypedStorage, its derived classes, and all of their public methods (#85303) 2022-11-08 18:11:01 +00:00
torch_version.py
types.py

Note [TH abstraction violation]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

TH/THC provide some hpp headers, which are proper C++ headers rather than
C headers.  These headers serve double duty as *internal implementation
detail* headers, whose contents should largely not be used by external
clients.

Ideally, we would not install these headers at all; instead, you should
use public functions (in headers like `THTensor.h`, NOT `THTensor.hpp`)
to manipulate these structs.  However, there are a few places
in torch/csrc where we violate this abstraction.  They are marked with
a pointer to this note.  Each of those sites will have to be refactored
when we refactor the guts of THTensor and related structures.