Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion torch/profiler/_pattern_matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,10 @@ def skip(self):
has_tf32 = False
else:
# Anything less than sm_80 is not Ampere which doesn't support TF32
has_tf32 = all(int(arch[3:]) >= 80 for arch in torch.cuda.get_arch_list())
has_tf32 = all(
int(re.sub("sm_|compute_", "", arch)) >= 80
for arch in torch.cuda.get_arch_list()
)
return has_tf32 is False or super().skip or not self.prof.record_shapes

def match(self, event: _ProfilerEvent):
Expand Down
Loading