From 1c18ba8d16dad893bb3344414f78db59a032992b Mon Sep 17 00:00:00 2001 From: Tahsin Erdogan Date: Wed, 17 Dec 2025 14:23:27 -0800 Subject: [PATCH] Remove unused dedup_map and associated includes from benchmarks Summary: The dedup_map variable was declared but never used in the EmbeddingSpMDM benchmark files. This cleanup removes the dead code and the now-unused and includes that were only needed for that variable. Reviewed By: amitaga Differential Revision: D89335855 --- bench/EmbeddingSpMDM8BitBenchmark.cc | 3 --- bench/EmbeddingSpMDMNBit2Benchmark.cc | 3 --- bench/EmbeddingSpMDMNBitBenchmark.cc | 1 - bench/EmbeddingSpMDMNBitRowWiseSparseBenchmark.cc | 3 --- 4 files changed, 10 deletions(-) diff --git a/bench/EmbeddingSpMDM8BitBenchmark.cc b/bench/EmbeddingSpMDM8BitBenchmark.cc index 113482db26..e006489960 100644 --- a/bench/EmbeddingSpMDM8BitBenchmark.cc +++ b/bench/EmbeddingSpMDM8BitBenchmark.cc @@ -16,10 +16,8 @@ #include #include #include -#include #include #include -#include #include #include "./BenchUtils.h" @@ -110,7 +108,6 @@ static int run_benchmark( vector indices_32; vector container(num_rows); - map> dedup_map; // index -> set(output index) // please note we generate unique indices for (int i = 0; i < batch_size; ++i) { diff --git a/bench/EmbeddingSpMDMNBit2Benchmark.cc b/bench/EmbeddingSpMDMNBit2Benchmark.cc index 00459c116c..921fb45348 100644 --- a/bench/EmbeddingSpMDMNBit2Benchmark.cc +++ b/bench/EmbeddingSpMDMNBit2Benchmark.cc @@ -16,10 +16,8 @@ #include #include #include -#include #include #include -#include #include #include @@ -230,7 +228,6 @@ static int run_benchmark( vector indices_32; vector container(num_rows); - map> dedup_map; // index -> set(output index) // please note we generate unique indices for (int i = 0; i < batch_size; ++i) { diff --git a/bench/EmbeddingSpMDMNBitBenchmark.cc b/bench/EmbeddingSpMDMNBitBenchmark.cc index ebfcc334c7..047243476f 100644 --- a/bench/EmbeddingSpMDMNBitBenchmark.cc +++ b/bench/EmbeddingSpMDMNBitBenchmark.cc @@ -117,7 +117,6 @@ static int run_benchmark( vector indices_32; vector container(num_rows); - map> dedup_map; // index -> set(output index) // please note we generate unique indices for (int i = 0; i < batch_size; ++i) { diff --git a/bench/EmbeddingSpMDMNBitRowWiseSparseBenchmark.cc b/bench/EmbeddingSpMDMNBitRowWiseSparseBenchmark.cc index 1ef940be91..50a4a119df 100644 --- a/bench/EmbeddingSpMDMNBitRowWiseSparseBenchmark.cc +++ b/bench/EmbeddingSpMDMNBitRowWiseSparseBenchmark.cc @@ -17,10 +17,8 @@ #include #include #include -#include #include #include -#include #include #include "./BenchUtils.h" @@ -129,7 +127,6 @@ static int run_benchmark( vector indices_32; vector container(num_rows); - map> dedup_map; // index -> set(output index) // please note we generate unique indices for (int i = 0; i < batch_size; ++i) {