Skip to content

Commit

Permalink
small problem size fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyasa committed Jan 7, 2025
1 parent cadfb5f commit 3113686
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions icicle/backend/cpu/src/curve/cpu_msm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "icicle/curves/projective.h"
#include "icicle/curves/curve_config.h"
#include "icicle/msm.h"
#include <taskflow/taskflow.hpp>
#include "taskflow/taskflow.hpp"
#include "icicle/backend/msm_config.h"
#ifdef MEASURE_MSM_TIMES
#include "icicle/utils/timer.hpp"
Expand All @@ -29,6 +29,7 @@ class Msm
// Constructor
Msm(const int msm_size, const MSMConfig& config) : m_msm_size(msm_size), m_config(config)
{
// TBD: for sall size MSM - prefer double and add
calc_optimal_parameters();

// Resize the thread buckets according to optimal parameters
Expand Down Expand Up @@ -168,7 +169,7 @@ class Msm
}

// Each worker run this function and update its buckets - this function needs re writing
void worker_run_phase1(const int worker_idx, const scalar_t* scalars, const A* bases, const unsigned int msm_size)
void worker_run_phase1(const int worker_idx, const scalar_t* scalars, const A* bases, const int msm_size)
{
// My buckets:
std::vector<Bucket>& buckets = m_workers_buckets[worker_idx];
Expand Down

0 comments on commit 3113686

Please sign in to comment.