File tree Expand file tree Collapse file tree 12 files changed +27
-13
lines changed
runtime/core/portable_type/c10 Expand file tree Collapse file tree 12 files changed +27
-13
lines changed Original file line number Diff line number Diff line change 1
- 9b498d3bb28b8e3411ce464dd2755c5b96d92c8f
1
+ 7cda4017ddda554752e89069ae205be5e8388f59
Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ pushd pytorch
12
12
git checkout " $pytorch_pin "
13
13
popd
14
14
" $( dirname " ${BASH_SOURCE[0]} " ) " /compare_dirs.sh runtime/core/portable_type/c10/c10 pytorch/c10
15
- " $( dirname " ${BASH_SOURCE[0]} " ) " /compare_dirs.sh runtime/core/portable_type/c10/torch/standalone pytorch/torch/standalone
15
+ " $( dirname " ${BASH_SOURCE[0]} " ) " /compare_dirs.sh runtime/core/portable_type/c10/torch/headeronly pytorch/torch/headeronly
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ def python_is_compatible():
71
71
#
72
72
# NOTE: If you're changing, make the corresponding change in .ci/docker/ci_commit_pins/pytorch.txt
73
73
# by picking the hash from the same date in https://hud.pytorch.org/hud/pytorch/pytorch/nightly/
74
- NIGHTLY_VERSION = "dev20250625 "
74
+ NIGHTLY_VERSION = "dev20250706 "
75
75
76
76
77
77
def install_requirements (use_pytorch_nightly ):
@@ -89,7 +89,7 @@ def install_requirements(use_pytorch_nightly):
89
89
# Setting use_pytorch_nightly to false to test the pinned PyTorch commit. Note
90
90
# that we don't need to set any version number there because they have already
91
91
# been installed on CI before this step, so pip won't reinstall them
92
- f"torch==2.8 .0.{ NIGHTLY_VERSION } " if use_pytorch_nightly else "torch" ,
92
+ f"torch==2.9 .0.{ NIGHTLY_VERSION } " if use_pytorch_nightly else "torch" ,
93
93
]
94
94
95
95
# Install the requirements for core ExecuTorch package.
@@ -151,7 +151,7 @@ def install_optional_example_requirements(use_pytorch_nightly):
151
151
print ("Installing torch domain libraries" )
152
152
DOMAIN_LIBRARIES = [
153
153
(
154
- f"torchvision==0.23 .0.{ NIGHTLY_VERSION } "
154
+ f"torchvision==0.24 .0.{ NIGHTLY_VERSION } "
155
155
if use_pytorch_nightly
156
156
else "torchvision"
157
157
),
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ would cause all headers in that directory to be includeable with
12
12
` runtime/core/portable_type/complex.h ` , which would shadow the C99
13
13
` complex.h ` standard header.
14
14
15
- ` torch/standalone ` has been added as an extra "even more bottom of
15
+ ` torch/headeronly ` has been added as an extra "even more bottom of
16
16
stack" directory in PyTorch, so we have to add it to our sync
17
17
here. The extra "stutter" c10 directory causing ` c10/torch/standlone `
18
18
is unfortunately awkward; perhaps we can rename the top-level
Original file line number Diff line number Diff line change 5
5
#include <c10/macros/cmake_macros.h>
6
6
#endif // C10_USING_CUSTOM_GENERATED_MACROS
7
7
8
- #include <torch/standalone /macros/Export.h>
8
+ #include <torch/headeronly /macros/Export.h>
9
9
10
10
// This one is being used by libtorch.so
11
11
#ifdef CAFFE2_BUILD_MAIN_LIB
Original file line number Diff line number Diff line change @@ -312,7 +312,21 @@ constexpr uint32_t CUDA_THREADS_PER_BLOCK_FALLBACK = 256;
312
312
#endif
313
313
314
314
#if defined(USE_ROCM)
315
- #define C10_WARP_SIZE warpSize // = 64 or 32 (Defined in hip_runtime.h)
315
+ // C10_WARP_SIZE is only allowed for device code.
316
+ // Host code _must_ use at::cuda::warp_size()
317
+ // HIP header used to define warpSize as a constexpr that was either 32 or 64
318
+ // depending on the target device, and then always set it to 64 for host code.
319
+ // Host pass of HIP compiler needs C10_WARP_SIZE defined to _something_ so we
320
+ // set it to something unreasonable to trigger obvious host code errors.
321
+ #if defined(__HIP_DEVICE_COMPILE__)
322
+ #if defined(__GFX9__)
323
+ static constexpr int C10_WARP_SIZE = 64 ;
324
+ #else // __GFX9__
325
+ static constexpr int C10_WARP_SIZE = 32 ;
326
+ #endif // __GFX9__
327
+ #else
328
+ static constexpr int C10_WARP_SIZE = 1 ;
329
+ #endif // __HIP_DEVICE_COMPILE__
316
330
#else
317
331
#define C10_WARP_SIZE 32
318
332
#endif
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ def define_common_targets():
125
125
"@EXECUTORCH_CLIENTS" ,
126
126
],
127
127
exported_deps = [
128
- "//executorch/runtime/core/portable_type/c10/torch/standalone:torch_standalone_headers " ,
128
+ "//executorch/runtime/core/portable_type/c10/torch/headeronly:torch_headeronly " ,
129
129
] + select ({
130
130
"DEFAULT" : [],
131
131
# Half-inl.h depends on vec_half.h from ATen, but only when building for x86.
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ struct integer_iterator {
24
24
using pointer = I*;
25
25
using reference = I&;
26
26
27
- explicit constexpr integer_iterator (I value ) : value(value ) {}
27
+ explicit constexpr integer_iterator (I val ) : value(val ) {}
28
28
29
29
constexpr I operator *() const {
30
30
return value;
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ def define_common_targets():
8
8
"""
9
9
10
10
runtime .cxx_library (
11
- name = "torch_standalone_headers " ,
11
+ name = "torch_headeronly " ,
12
12
exported_headers = glob (["**/*.h" ]),
13
- header_namespace = "torch/standalone " ,
13
+ header_namespace = "torch/headeronly " ,
14
14
)
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ sed -i '' '1i\
180
180
' \
181
181
" $HEADERS_ABSOLUTE_PATH /executorch/runtime/core/portable_type/c10/c10/macros/Macros.h" \
182
182
" $HEADERS_ABSOLUTE_PATH /executorch/runtime/core/portable_type/c10/c10/macros/Export.h" \
183
- " $HEADERS_ABSOLUTE_PATH /executorch/runtime/core/portable_type/c10/torch/standalone /macros/Export.h"
183
+ " $HEADERS_ABSOLUTE_PATH /executorch/runtime/core/portable_type/c10/torch/headeronly /macros/Export.h"
184
184
185
185
cp -r $HEADERS_ABSOLUTE_PATH /executorch/runtime/core/portable_type/c10/c10 " $HEADERS_ABSOLUTE_PATH /"
186
186
cp -r $HEADERS_ABSOLUTE_PATH /executorch/runtime/core/portable_type/c10/torch " $HEADERS_ABSOLUTE_PATH /"
You can’t perform that action at this time.
0 commit comments