8000 [inductor] Fix MKL issue with test_indirect_device_assert (#108172) · pytorch/pytorch@8a089f6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8a089f6

Browse files
janselpytorchmergebot
authored andcommitted
[inductor] Fix MKL issue with test_indirect_device_assert (#108172)
Pull Request resolved: #108172 Approved by: https://github.com/peterbell10
1 parent b2fe5eb commit 8a089f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/inductor/test_torchinductor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7563,6 +7563,7 @@ def test_indirect_device_assert(self):
75637563
],
75647564
stdout=subprocess.PIPE,
75657565
stderr=subprocess.PIPE,
7566+
env={**os.environ, "MKL_THREADING_LAYER": "GNU"},
75667567
)
75677568
stderr = proc.communicate()[1]
75687569
self.assertTrue(
@@ -7576,8 +7577,10 @@ def test_indirect_device_assert(self):
75767577
[sys.executable, test_path, "first_arg", "2", "False", "True"],
75777578
stdout=subprocess.PIPE,
75787579
stderr=subprocess.PIPE,
7580+
env={**os.environ, "MKL_THREADING_LAYER": "GNU"},
75797581
)
75807582
stderr = proc.communicate()[1]
7583+
75817584
self.assertTrue(
75827585
any(
75837586
"index out of bounds" in err.decode("utf-8")

0 commit comments

Comments
 (0)
0