Skip to content

Commit

Permalink
[AOTI] Not use AOTI_TORCH_CHECK in non AOTI mode. (#143970)
Browse files Browse the repository at this point in the history
  • Loading branch information
etaf authored and pytorchmergebot committed Dec 31, 2024
1 parent a2753e3 commit 01034e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion torch/_inductor/codegen/cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2275,7 +2275,10 @@ def codegen_loops(self, code, worksharing):

@property
def assert_function(self) -> str:
return "AOTI_TORCH_CHECK"
if V.graph.aot_mode:
return "AOTI_TORCH_CHECK"
else:
return "TORCH_CHECK"

def decide_parallel_depth(self, max_parallel_depth, threads):
assert self.call_ranges is not None
Expand Down

0 comments on commit 01034e9

Please sign in to comment.