Skip to content

Commit 07e66d7

Browse files
authored
Enable PE + TE (#45546) (#45591)
Summary: This PR enables PE + TE for 1.7 Pull Request resolved: #45546 Reviewed By: ZolotukhinM Differential Revision: D24006940 Pulled By: Krovatkin fbshipit-source-id: a3326077d34a023941acdb06c4907c96e7ba0115
1 parent e8cea53 commit 07e66d7

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

test/test_jit_cuda_fuser.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import torch
55

6-
from torch.testing._internal.common_utils import run_tests, ProfilingMode, GRAPH_EXECUTOR, skipIfRocm
6+
from torch.testing._internal.common_utils import run_tests, ProfilingMode, GRAPH_EXECUTOR, skipIfRocm, TEST_WITH_ROCM
77
from torch.testing._internal.codegen.random_topo_test import runDefaultTestWithSeed
88

99
from test_jit import JitTestCase, RUN_CUDA
@@ -804,4 +804,5 @@ def test_register_fuser(self):
804804

805805

806806
if __name__ == '__main__':
807-
run_tests()
807+
if not TEST_WITH_ROCM:
808+
run_tests()

torch/csrc/jit/passes/tensorexpr_fuser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ bool isSupported(Node* node) {
192192

193193
} // namespace tensorexpr
194194

195-
static bool texpr_fuser_enabled_ = false;
195+
static bool texpr_fuser_enabled_ = true;
196196

197197
void setTensorExprFuserEnabled(bool val) {
198198
texpr_fuser_enabled_ = val;

torch/csrc/jit/runtime/profiling_graph_executor_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static std::atomic<bool> executor_mode{true};
4545
static std::atomic<bool> profiling_mode{false};
4646
#else
4747
static std::atomic<bool> executor_mode{true};
48-
static std::atomic<bool> profiling_mode{false};
48+
static std::atomic<bool> profiling_mode{true};
4949
#endif
5050

5151
static std::atomic<size_t> num_profiled_runs{1};

0 commit comments

Comments
 (0)