From 92339f295c2bad779320e29fe8534626b59381c7 Mon Sep 17 00:00:00 2001 From: Martijn Courteaux Date: Fri, 6 Oct 2023 21:05:45 +0200 Subject: [PATCH] 50cents readibility improvement to allocgroups on GPU schedules. --- src/FuseGPUThreadLoops.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FuseGPUThreadLoops.cpp b/src/FuseGPUThreadLoops.cpp index 1c77c3cda963..8460c331ae33 100644 --- a/src/FuseGPUThreadLoops.cpp +++ b/src/FuseGPUThreadLoops.cpp @@ -802,14 +802,14 @@ class ExtractSharedAndHeapAllocations : public IRMutator { Type widest_type; for (const auto &alloc : cluster) { if (name.empty()) { - name = alloc.name; + name = "allocgroup"; widest_type = alloc.widest_type; } else { - name += "__" + alloc.name; if (alloc.widest_type.bytes() > widest_type.bytes()) { widest_type = alloc.widest_type; } } + name += "__" + alloc.name; int ratio = alloc.widest_type.bytes() / alloc_type.bytes(); internal_assert(ratio != 0) << "alloc_type should have been at most as wide as the widest type in group\n";