8000 [inductor] Fix MKL issue with test_indirect_device_assert · pytorch/pytorch@b389927 · GitHub
[go: up one dir, main page]

Skip to content

Commit b389927

Browse files
committed
[inductor] Fix MKL issue with test_indirect_device_assert
ghstack-source-id: b91f2e7 Pull Request resolved: #108172
1 parent fe1f26a commit b389927

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