Skip to content

Commit dd2a943

Browse files
hl475pytorchmergebot
authored andcommitted
Fix the AOTI compile failure with ARM CPU for Meta internal (#147204)
Summary: Fix the AOTI compile failure with ARM CPU for Meta internal Differential Revision: D69642211 Pull Request resolved: #147204 Approved by: https://github.com/houseroad
1 parent 5d675de commit dd2a943

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

torch/_inductor/cpu_vec_isa.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ class VecNEON(VecISA):
160160
_dtype_nelements = {torch.float: 4, torch.bfloat16: 8, torch.float16: 8}
161161

162162
def __str__(self) -> str:
163+
if config.is_fbcode():
164+
return "neon"
163165
return "asimd" # detects the presence of advanced SIMD on armv8-a kernels
164166

165167
__hash__: Callable[[VecISA], Any] = VecISA.__hash__
@@ -178,6 +180,8 @@ class VecSVE256(VecISA):
178180
_dtype_nelements = {torch.float: 8, torch.bfloat16: 16, torch.float16: 16}
179181

180182
def __str__(self) -> str:
183+
if config.is_fbcode():
184+
return "neon"
181185
return "asimd"
182186

183187
__hash__: Callable[[VecISA], Any] = VecISA.__hash__

0 commit comments

Comments
 (0)