Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit fe8f519

Browse files
committed
promoteToSharedGreedy: drop unused argument
1 parent 02e6781 commit fe8f519

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tc/core/polyhedral/cuda/memory_promotion_heuristic.cc

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -551,11 +551,7 @@ void promoteToSharedBelow(
551551
* Only promote if the tensor elements referenced by the group are reused or
552552
* accessed in a non-coalesced way.
553553
*/
554-
void promoteToSharedGreedy(
555-
Scop& scop,
556-
const Block& block,
557-
size_t depth,
558-
size_t maxMemory) {
554+
void promoteToSharedGreedy(Scop& scop, size_t depth, size_t maxMemory) {
559555
using namespace tc::polyhedral::detail;
560556

561557
if (depth == 0) {
@@ -597,8 +593,7 @@ void promoteGreedilyAtDepth(
597593
size_t sharedMemorySize,
598594
bool unrollCopies) {
599595
// 1. Promote using heuristic.
600-
promoteToSharedGreedy(
601-
mscop.scop(), mscop.numThreads, depth, sharedMemorySize);
596+
promoteToSharedGreedy(mscop.scop(), depth, sharedMemorySize);
602597

603598
// 2. Map copies to shared, state by copy
604599
mapCopiesToThreads(mscop, unrollCopies);

0 commit comments

Comments
 (0)