pytorch/torch
Ramya Ramineni 7a974a88f2 [ROCm] Fix resource_strings.h (#159996)
This PR fixes the errors like below:

```
[rank7]: RuntimeError: /tmp/comgr-c3c81b/input/CompileSourceejOPx6:34:8: error: unknown type name 'uint64_t'; did you mean
'__hip_internal::uint64_t'? [rank7]: 34 | if(((uint64_t) t0.data) % (4 * sizeof(half)) != 0) flag_vec4 = false;
```

The following datatypes needs to be defined in `torch/csrc/jit/codegen/fuser/cuda/resource_strings.h` for ROCm versions >= 7.0.

```
typedef unsigned char uint8_t;
typedef signed char int8_t;
typedef short int  int16_t;
typedef long long int int64_t;
typedef unsigned long long int uint64_t;
```

Pull Request resolved: https://github.com/pytorch/pytorch/pull/159996
Approved by: https://github.com/pruthvistony, https://github.com/Skylion007, https://github.com/jeffdaily
2025-08-12 01:58:02 +00:00
..
_awaits
_C Add unified memory APIs for torch.accelerator (#152932) 2025-08-08 17:41:22 +00:00
_C_flatbuffer
_custom_op [BE]: ruff PLC0207 - use maxsplit kwarg (#160107) 2025-08-08 03:14:59 +00:00
_decomp (should_fold) gso to guard_or_false when checking folding whether to 3d bmm into 2d mm (#159184) 2025-07-30 03:12:14 +00:00
_dispatch
_dynamo [hop][exc] make UncapturedHigherOrderOpError print user code and avoid re-raise (#159296) 2025-08-11 22:48:10 +00:00
_export Update export/schema.py (#160220) 2025-08-11 23:14:08 +00:00
_functorch [MTIA] Allow users who know what they are doing to ignore all device mismatches in tracing and take a preferred device. (#159931) 2025-08-07 22:37:15 +00:00
_higher_order_ops [HOP, map] Rework of map autograd to the new interface (#153343) 2025-08-06 23:02:42 +00:00
_inductor [BE][cutlass backend] Reduce severity of log message for no cutlass config found (#160148) 2025-08-12 01:41:58 +00:00
_lazy [BE][2/16] fix typos in torch/ (torch/_*/) (#156312) 2025-07-12 05:47:06 +00:00
_library [inductor] respect layout tags for ops with registered lowerings (#159134) 2025-07-31 21:29:40 +00:00
_logging fix logging setup issue for Windows.. (#159887) 2025-08-05 23:44:38 +00:00
_numpy Fix torch._numpy to match NumPy when empty ellipsis causes advanced indexing separation (#158297) 2025-07-16 08:11:53 +00:00
_prims [BE]: ruff PLC0207 - use maxsplit kwarg (#160107) 2025-08-08 03:14:59 +00:00
_prims_common [Dynamo][Better Engineering] Add typing annotations to guard and source (#158397) (#159491) 2025-07-30 22:57:50 +00:00
_refs [BE][2/16] fix typos in torch/ (torch/_*/) (#156312) 2025-07-12 05:47:06 +00:00
_strobelight [BE][2/16] fix typos in torch/ (torch/_*/) (#156312) 2025-07-12 05:47:06 +00:00
_subclasses [MTIA] Allow users who know what they are doing to ignore all device mismatches in tracing and take a preferred device. (#159931) 2025-08-07 22:37:15 +00:00
_vendor
accelerator Add unified memory APIs for torch.accelerator (#152932) 2025-08-08 17:41:22 +00:00
amp Fix autocast context manager when there is exception (#159565) 2025-08-01 02:12:24 +00:00
ao [BE]: ruff PLC0207 - use maxsplit kwarg (#160107) 2025-08-08 03:14:59 +00:00
autograd Fix types in graphs.py (#158192) 2025-07-15 19:49:38 +00:00
backends fixed typo error (#159451) 2025-07-30 17:41:30 +00:00
compiler Add torch compile force disable caches alias (#158072) 2025-08-02 23:23:17 +00:00
contrib
cpu
csrc [ROCm] Fix resource_strings.h (#159996) 2025-08-12 01:58:02 +00:00
cuda Add unified memory APIs for torch.accelerator (#152932) 2025-08-08 17:41:22 +00:00
distributed [PP] Initialize P2P communicators on first step (#160210) 2025-08-11 23:46:58 +00:00
distributions [BE][1/16] fix typos in torch/ (#156311) 2025-07-09 11:02:22 +00:00
export [Torch Native] Add test for packaging weight (#158750) 2025-08-09 01:04:21 +00:00
fft
func
futures Simplify the base classes of _PyFutureMeta (#157757) 2025-07-08 15:39:56 +00:00
fx Correctly copy self.module_stack in ModuleStackTracer (#159956) 2025-08-10 03:33:59 +00:00
headeronly [Reland] Migrate ScalarType to headeronly (#159911) 2025-08-06 07:36:37 +00:00
jit [4/n] Remove references to TorchScript in PyTorch docs (#158317) 2025-07-16 20:01:34 +00:00
legacy
lib
linalg
masked Fix MaskedTensor to device ignored mask (#151205) 2025-07-21 21:44:49 +00:00
monitor
mps [BE][12/16] fix typos in torch/ (#156602) 2025-07-02 22:55:29 +00:00
mtia [Re-land][Inductor] Support native Inductor as backend for MTIA (#159211) 2025-07-29 17:03:24 +00:00
multiprocessing [BE][12/16] fix typos in torch/ (#156602) 2025-07-02 22:55:29 +00:00
nativert turn on executon frame clenaup by default (#160110) 2025-08-08 02:13:48 +00:00
nested Add minimal nn.functional.log_softmax support for NestedTensor (#159662) 2025-08-06 20:34:02 +00:00
nn Allow register_buffer with Tensor-like object (#159455) 2025-08-01 15:31:38 +00:00
onnx [ONNX] Fix the export of the model having none as output (#160200) 2025-08-08 23:09:34 +00:00
optim [BE] Remove more optim entries from docs coverage ignore list (#160194) 2025-08-09 00:09:45 +00:00
package [BE][PYFMT] migrate PYFMT for torch/[p-z]*/ to ruff format (#144552) 2025-08-07 00:09:56 +00:00
profiler [BE][PYFMT] migrate PYFMT for torch/[p-z]*/ to ruff format (#144552) 2025-08-07 00:09:56 +00:00
quantization [BE][PYFMT] migrate PYFMT for torch/[p-z]*/ to ruff format (#144552) 2025-08-07 00:09:56 +00:00
signal [BE][PYFMT] migrate PYFMT for torch/[p-z]*/ to ruff format (#144552) 2025-08-07 00:09:56 +00:00
sparse [BE][PYFMT] migrate PYFMT for torch/[p-z]*/ to ruff format (#144552) 2025-08-07 00:09:56 +00:00
special [BE][PYFMT] migrate PYFMT for torch/[p-z]*/ to ruff format (#144552) 2025-08-07 00:09:56 +00:00
testing Revert "port distributed pipeline test files for Intel GPU (#159033)" 2025-08-11 20:44:45 +00:00
utils [Inductor] Add back the revert part (#160054) 2025-08-10 19:20:30 +00:00
xpu [BE][PYFMT] migrate PYFMT for torch/[p-z]*/ to ruff format (#144552) 2025-08-07 00:09:56 +00:00
__config__.py
__future__.py
__init__.py [BE] remove torch deploy - conditionals (#158288) 2025-07-29 17:40:49 +00:00
_appdirs.py
_classes.py remove allow-untyped-defs from torch/_classes.py (#157231) 2025-07-08 00:11:52 +00:00
_compile.py
_custom_ops.py
_environment.py
_guards.py [Dynamo][Better Engineering] Typing torch/_dynamo/guards.py (#159315) 2025-08-06 21:52:14 +00:00
_jit_internal.py [BE][1/16] fix typos in torch/ (#156311) 2025-07-09 11:02:22 +00:00
_linalg_utils.py Update is_sparse doc to mention that it is sparse_coo specific (#157378) 2025-07-09 18:22:14 +00:00
_lobpcg.py [BE][1/16] fix typos in torch/ (#156311) 2025-07-09 11:02:22 +00:00
_lowrank.py [BE][1/16] fix typos in torch/ (#156311) 2025-07-09 11:02:22 +00:00
_meta_registrations.py Add meta kernel for sdpa_math_for_mps (#159695) 2025-08-05 22:27:06 +00:00
_namedtensor_internals.py
_ops.py [BE] remove torch deploy - conditionals (#158288) 2025-07-29 17:40:49 +00:00
_python_dispatcher.py
_size_docs.py
_sources.py
_storage_docs.py
_streambase.py
_tensor_docs.py Add missing optional for tensor ops (#159028) 2025-07-25 04:36:55 +00:00
_tensor_str.py Fix max_width computation in _tensor_str._Formatter (#126859) 2025-08-01 15:05:41 +00:00
_tensor.py [MPS] Enable dlpack integration (#158888) 2025-07-24 18:05:41 +00:00
_thread_safe_fork.py
_torch_docs.py Update the signature and test of torch.hamming_window() (#152682) 2025-08-04 17:50:42 +00:00
_utils_internal.py Wire in pt2_triton_builds (#159897) 2025-08-06 07:39:51 +00:00
_utils.py [BE][1/16] fix typos in torch/ (#156311) 2025-07-09 11:02:22 +00:00
_VF.py
_vmap_internals.py
_weights_only_unpickler.py
CMakeLists.txt CMake build: preserve PYTHONPATH (#160144) 2025-08-08 16:03:49 +00:00
custom_class_detail.h
custom_class.h [BE][1/16] fix typos in torch/ (#156311) 2025-07-09 11:02:22 +00:00
extension.h
functional.py Fix atleast_{1,2,3}d() with no arguments description (#156042) 2025-07-28 06:25:23 +00:00
header_only_apis.txt [Reland] Migrate ScalarType to headeronly (#159911) 2025-08-06 07:36:37 +00:00
hub.py [BE][1/16] fix typos in torch/ (#156311) 2025-07-09 11:02:22 +00:00
library.h [BE][1/16] fix typos in torch/ (#156311) 2025-07-09 11:02:22 +00:00
library.py [BE] remove torch deploy - conditionals (#158288) 2025-07-29 17:40:49 +00:00
overrides.py Add basic torch.hash_tensor op (#154149) 2025-07-23 22:28:03 +00:00
py.typed
quasirandom.py
random.py
return_types.py
script.h
serialization.py Reduce random reads for offset metadata when calling torch.load under FakeTensorMode (#157931) 2025-07-17 22:17:52 +00:00
storage.py
torch_version.py
types.py
version.py.tpl