8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ab922d commit 954bf67Copy full SHA for 954bf67
test/smoke_test/smoke_test.py
@@ -258,6 +258,14 @@ def foo(x: torch.Tensor) -> torch.Tensor:
258
x_pt2 = torch.compile(foo)(x)
259
torch.testing.assert_close(x_eager, x_pt2)
260
261
+ # Check that SIMD were detected for the architecture
262
+ if device == "cpu":
263
+ from torch._inductor.cpu_vec_isa import invalid_vec_isa, pick_vec_isa
264
+ isa = pick_vec_isa()
265
+ if isa == invalid_vec_isa:
266
+ raise RuntimeError("Can't detect vectorized ISA for CPU")
267
+ print(f"Picked CPU ISA {type(isa).__name__} bit width {isa.bit_width()}")
268
+
269
# Reset torch dynamo since we are changing mode
270
torch._dynamo.reset()
271
dtype = torch.float32
0 commit comments