Skip to content

Commit

Permalink
Apply code-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyang2057 authored and github-actions[bot] committed Sep 29, 2024
1 parent decbc75 commit 81f3318
Showing 1 changed file with 32 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ template <size_t M, size_t K, size_t N> void benchmark_ntt_matmul_pack_NONE() {
<< ", K:" << K << ", N:" << N
<< ", Cycles:" << static_cast<float>(t2 - t1) / run_num
<< ", GFLOPS:"
<< ops / (static_cast<float>(t2 - t1) / run_num / CPU_FREQUENCY_MHZ) * 1e-3
<< ops /
(static_cast<float>(t2 - t1) / run_num /
CPU_FREQUENCY_MHZ) *
1e-3
<< std::endl;
}

Expand Down Expand Up @@ -78,7 +81,10 @@ template <size_t M, size_t K, size_t N> void benchmark_ntt_matmul_pack_K() {
<< ", K:" << K / P << ", N:" << N
<< ", Cycles:" << static_cast<float>(t2 - t1) / run_num
<< ", GFLOPS:"
<< ops / (static_cast<float>(t2 - t1) / run_num / CPU_FREQUENCY_MHZ) * 1e-3
<< ops /
(static_cast<float>(t2 - t1) / run_num /
CPU_FREQUENCY_MHZ) *
1e-3
<< std::endl;
}

Expand Down Expand Up @@ -118,7 +124,10 @@ template <size_t M, size_t K, size_t N> void benchmark_ntt_matmul_pack_M() {
<< ", K:" << K << ", N:" << N
<< ", Cycles:" << static_cast<float>(t2 - t1) / run_num
<< ", GFLOPS:"
<< ops / (static_cast<float>(t2 - t1) / run_num / CPU_FREQUENCY_MHZ) * 1e-3
<< ops /
(static_cast<float>(t2 - t1) / run_num /
CPU_FREQUENCY_MHZ) *
1e-3
<< std::endl;
}

Expand Down Expand Up @@ -158,7 +167,10 @@ template <size_t M, size_t K, size_t N> void benchmark_ntt_matmul_pack_N() {
<< ", K:" << K << ", N:" << N / P
<< ", Cycles:" << static_cast<float>(t2 - t1) / run_num
<< ", GFLOPS:"
<< ops / (static_cast<float>(t2 - t1) / run_num / CPU_FREQUENCY_MHZ) * 1e-3
<< ops /
(static_cast<float>(t2 - t1) / run_num /
CPU_FREQUENCY_MHZ) *
1e-3
<< std::endl;
}

Expand Down Expand Up @@ -202,7 +214,10 @@ template <size_t M, size_t K, size_t N> void benchmark_ntt_matmul_pack_M_N() {
<< ", K:" << K << ", N:" << N / P
<< ", Cycles:" << static_cast<float>(t2 - t1) / run_num
<< ", GFLOPS:"
<< ops / (static_cast<float>(t2 - t1) / run_num / CPU_FREQUENCY_MHZ) * 1e-3
<< ops /
(static_cast<float>(t2 - t1) / run_num /
CPU_FREQUENCY_MHZ) *
1e-3
<< std::endl;
}

Expand Down Expand Up @@ -246,7 +261,10 @@ template <size_t M, size_t K, size_t N> void benchmark_ntt_matmul_pack_M_K() {
<< ", K:" << K / P << ", N:" << N
<< ", Cycles:" << static_cast<float>(t2 - t1) / run_num
<< ", GFLOPS:"
<< ops / (static_cast<float>(t2 - t1) / run_num / CPU_FREQUENCY_MHZ) * 1e-3
<< ops /
(static_cast<float>(t2 - t1) / run_num /
CPU_FREQUENCY_MHZ) *
1e-3
<< std::endl;
}

Expand Down Expand Up @@ -290,7 +308,10 @@ template <size_t M, size_t K, size_t N> void benchmark_ntt_matmul_pack_K_N() {
<< ", K:" << K / P << ", N:" << N / P
<< ", Cycles:" << static_cast<float>(t2 - t1) / run_num
<< ", GFLOPS:"
<< ops / (static_cast<float>(t2 - t1) / run_num / CPU_FREQUENCY_MHZ) * 1e-3
<< ops /
(static_cast<float>(t2 - t1) / run_num /
CPU_FREQUENCY_MHZ) *
1e-3
<< std::endl;
}

Expand Down Expand Up @@ -336,7 +357,10 @@ template <size_t M, size_t K, size_t N> void benchmark_ntt_matmul_pack_M_K_N() {
<< ", K:" << K / P << ", N:" << N / P
<< ", Cycles:" << static_cast<float>(t2 - t1) / run_num
<< ", GFLOPS:"
<< ops / (static_cast<float>(t2 - t1) / run_num / CPU_FREQUENCY_MHZ) * 1e-3
<< ops /
(static_cast<float>(t2 - t1) / run_num /
CPU_FREQUENCY_MHZ) *
1e-3
<< std::endl;
}

Expand Down

0 comments on commit 81f3318

Please sign in to comment.