Skip to content

Commit 857f21c

Browse files
committed
[JIT] RUN_CUDA -> RUN_NVFUSER to fix nvfuser ci
fixes merge issue between #75016 and #73322 ghstack-source-id: a79f74a Pull Request resolved: #75134
1 parent 5b142ce commit 857f21c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/test_jit_cuda_fuser.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ def is_pre_volta():
6969

7070
TEST_BF16 = torch.cuda.is_bf16_supported()
7171

72+
# TODO: remove this - just to avoid conflicts with 73322 and 75016
73+
try:
74+
RUN_NVFUSER
75+
except NameError:
76+
RUN_NVFUSER = RUN_CUDA and not TEST_WITH_ROCM and not IS_WINDOWS
77+
7278
class TestCudaFuser(JitTestCase):
7379

7480
special_values = torch.tensor(
@@ -4274,7 +4280,7 @@ def reduce_scalar(temp):
42744280
reduce_scalar(res).backward()
42754281
torch._C._jit_set_nvfuser_guard_mode(old_guard)
42764282

4277-
@unittest.skipIf(not RUN_CUDA, "requires CUDA")
4283+
@unittest.skipIf(not RUN_NVFUSER, "requires CUDA")
42784284
@unittest.skipIf(GRAPH_EXECUTOR != ProfilingMode.PROFILING,
42794285
"Requires fusion optimization pass to be effective")
42804286
def test_cuda_fusion_guard_backward(self):

0 commit comments

Comments
 (0)