Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyasa committed Jan 2, 2025
1 parent 4ce8529 commit af6590a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions icicle/backend/cpu/src/curve/cpu_msm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ class Msm

phase1_populate_buckets(scalars, bases);
// for (int i=0; i<m_workers_buckets[0].size();++i) {
// std::cout << "bkt " << i << " : " << m_workers_buckets_busy[0][i] << ", val = " << m_workers_buckets[0][i].point.to_affine() << std::endl;
// std::cout << "bkt " << i << " : " << m_workers_buckets_busy[0][i] << ", val = " <<
// m_workers_buckets[0][i].point.to_affine() << std::endl;
// }

phase2_collapse_segments();
Expand Down Expand Up @@ -121,7 +122,8 @@ class Msm
m_precompute_factor > 1 ? m_bm_size : 1 << (m_scalar_size - ((m_nof_buckets_module - 1) * m_c));
m_nof_total_buckets = (m_nof_buckets_module - 1) * m_bm_size + last_bm_size;

m_segment_size = std::min(m_bm_size, (uint32_t)(1 << (uint32_t)(std::log2(m_nof_total_buckets / m_nof_workers) - 4)));
m_segment_size =
std::min(m_bm_size, (uint32_t)(1 << (uint32_t)(std::log2(m_nof_total_buckets / m_nof_workers) - 4)));
std::cout << "m_segment_size = " << m_segment_size << std::endl;
const int nof_segments = (m_nof_total_buckets + m_segment_size - 1) / m_segment_size;
m_segments.resize(nof_segments);
Expand Down

0 comments on commit af6590a

Please sign in to comment.