From 610750e156c7e88a5d0fde03b452463453226dd4 Mon Sep 17 00:00:00 2001 From: Bojan Rosko Date: Thu, 31 Oct 2024 23:04:04 +0100 Subject: [PATCH] Remove unsupported ARCH::WORMHOLE --- .../perf_microbenchmark/1_compute_mm/test_compute_mm.cpp | 6 +++--- .../6_dram_offchip/test_dram_offchip.cpp | 2 +- .../8_dram_adjacent_core_read/test_dram_read.cpp | 2 +- .../test_dram_read_l1_write.cpp | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/tt_metal/tt_metal/perf_microbenchmark/1_compute_mm/test_compute_mm.cpp b/tests/tt_metal/tt_metal/perf_microbenchmark/1_compute_mm/test_compute_mm.cpp index 0596b2939ba..b708af53ba2 100644 --- a/tests/tt_metal/tt_metal/perf_microbenchmark/1_compute_mm/test_compute_mm.cpp +++ b/tests/tt_metal/tt_metal/perf_microbenchmark/1_compute_mm/test_compute_mm.cpp @@ -686,7 +686,7 @@ uint32_t get_l1_size(tt::ARCH arch) { constexpr uint32_t WH_L1_SIZE = 1499136; uint32_t l1_size = 0; - if (arch == tt::ARCH::WORMHOLE || arch == tt::ARCH::WORMHOLE_B0) { + if (arch == tt::ARCH::WORMHOLE_B0) { l1_size = WH_L1_SIZE; } else if (arch == tt::ARCH::GRAYSKULL) { l1_size = GS_L1_SIZE; @@ -701,7 +701,7 @@ double get_tt_npu_rpeak_tflops(tt::ARCH arch, CoreCoord grid_size, int tt_npu_cl double rpeak_tflops = 0.0f; double clock = static_cast(tt_npu_clock) / 1000; uint32_t num_compute_core = grid_size.x * grid_size.y; - if (arch == tt::ARCH::WORMHOLE || arch == tt::ARCH::WORMHOLE_B0) { + if (arch == tt::ARCH::WORMHOLE_B0) { rpeak_tflops = WH_FPU_BFP8_TFLOPS_PER_TENSIX * static_cast(num_compute_core) * static_cast(clock); } else if (arch == tt::ARCH::GRAYSKULL) { @@ -777,7 +777,7 @@ CoreCoord get_core_range( std::tuple get_compute_params(tt::ARCH arch) { MathFidelity math_fidelity = MathFidelity::HiFi4; bool fp32_dest_acc_en = false; - if (arch == tt::ARCH::WORMHOLE || arch == tt::ARCH::WORMHOLE_B0) { + if (arch == tt::ARCH::WORMHOLE_B0) { math_fidelity = MathFidelity::HiFi2; // TODO: apply packer_l1_acc // TODO: need to consider whether to set these variablias as arguments diff --git a/tests/tt_metal/tt_metal/perf_microbenchmark/6_dram_offchip/test_dram_offchip.cpp b/tests/tt_metal/tt_metal/perf_microbenchmark/6_dram_offchip/test_dram_offchip.cpp index 8efa155c9ed..fbe99bfdc28 100644 --- a/tests/tt_metal/tt_metal/perf_microbenchmark/6_dram_offchip/test_dram_offchip.cpp +++ b/tests/tt_metal/tt_metal/perf_microbenchmark/6_dram_offchip/test_dram_offchip.cpp @@ -514,7 +514,7 @@ uint32_t get_dram_bandwidth(tt::ARCH arch) { constexpr uint32_t WH_DRAM_BANDWIDTH_GB_PER_SEC = 384; uint32_t dram_bandwidth_gb_per_sec = 0; - if (arch == tt::ARCH::WORMHOLE || arch == tt::ARCH::WORMHOLE_B0) { + if (arch == tt::ARCH::WORMHOLE_B0) { dram_bandwidth_gb_per_sec = WH_DRAM_BANDWIDTH_GB_PER_SEC; } else if (arch == tt::ARCH::GRAYSKULL) { dram_bandwidth_gb_per_sec = GS_DRAM_BANDWIDTH_GB_PER_SEC; diff --git a/tests/tt_metal/tt_metal/perf_microbenchmark/8_dram_adjacent_core_read/test_dram_read.cpp b/tests/tt_metal/tt_metal/perf_microbenchmark/8_dram_adjacent_core_read/test_dram_read.cpp index 829fc585e20..d52e39f31c7 100644 --- a/tests/tt_metal/tt_metal/perf_microbenchmark/8_dram_adjacent_core_read/test_dram_read.cpp +++ b/tests/tt_metal/tt_metal/perf_microbenchmark/8_dram_adjacent_core_read/test_dram_read.cpp @@ -224,7 +224,7 @@ uint32_t get_dram_bandwidth(tt::ARCH arch) { constexpr uint32_t WH_DRAM_BANDWIDTH_GB_PER_SEC = 384; uint32_t dram_bandwidth_gb_per_sec = 0; - if (arch == tt::ARCH::WORMHOLE || arch == tt::ARCH::WORMHOLE_B0) { + if (arch == tt::ARCH::WORMHOLE_B0) { dram_bandwidth_gb_per_sec = WH_DRAM_BANDWIDTH_GB_PER_SEC; } else if (arch == tt::ARCH::GRAYSKULL) { dram_bandwidth_gb_per_sec = GS_DRAM_BANDWIDTH_GB_PER_SEC; diff --git a/tests/tt_metal/tt_metal/perf_microbenchmark/9_dram_adjacent_read_remote_l1_write/test_dram_read_l1_write.cpp b/tests/tt_metal/tt_metal/perf_microbenchmark/9_dram_adjacent_read_remote_l1_write/test_dram_read_l1_write.cpp index 4587fa9f969..394e57372c6 100644 --- a/tests/tt_metal/tt_metal/perf_microbenchmark/9_dram_adjacent_read_remote_l1_write/test_dram_read_l1_write.cpp +++ b/tests/tt_metal/tt_metal/perf_microbenchmark/9_dram_adjacent_read_remote_l1_write/test_dram_read_l1_write.cpp @@ -258,7 +258,7 @@ uint32_t get_dram_bandwidth(tt::ARCH arch) { constexpr uint32_t WH_DRAM_BANDWIDTH_GB_PER_SEC = 384; uint32_t dram_bandwidth_gb_per_sec = 0; - if (arch == tt::ARCH::WORMHOLE || arch == tt::ARCH::WORMHOLE_B0) { + if (arch == tt::ARCH::WORMHOLE_B0) { dram_bandwidth_gb_per_sec = WH_DRAM_BANDWIDTH_GB_PER_SEC; } else if (arch == tt::ARCH::GRAYSKULL) { dram_bandwidth_gb_per_sec = GS_DRAM_BANDWIDTH_GB_PER_SEC;