Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
yshekel committed Aug 8, 2024
1 parent 5408a74 commit 4965a25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions icicle_v3/include/icicle/backend/msm_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ namespace CudaBackendConfig {
constexpr const char* CUDA_MSM_IS_BIG_TRIANGLE = "is_big_triangle";
constexpr const char* CUDA_MSM_LARGE_BUCKET_FACTOR = "large_bucket_factor";
constexpr const int CUDA_MSM_LARGE_BUCKET_FACTOR_DEFAULT_VAL = 10;
constexpr const char* CUDA_MSM_NOF_CHUNKS = "nof_chunks";
constexpr const int CUDA_MSM_NOF_CHUNKS_DEFAULT_VAL = 0;

constexpr const char* CUDA_MSM_NOF_CHUNKS = "nof_chunks";
constexpr const int CUDA_MSM_NOF_CHUNKS_DEFAULT_VAL = 0;

} // namespace CudaBackendConfig
12 changes: 6 additions & 6 deletions icicle_v3/include/icicle/msm.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ namespace icicle {
* the MSM problem. Larger value means more on-line memory footprint but also more parallelism and less
* computational complexity (up to a certain point). Default value: 0 (the optimal value of \f$ c \f$ is
* chosen automatically). */
int bitsize; /**< Number of bits of the largest scalar. Typically equals the bitsize of scalar field,
* but if a different (better) upper bound is known, it should be reflected in this variable.
* Default value: 0 (set to the bitsize of scalar field). */
int batch_size; /**< Number of MSMs to compute. Default value: 1. */
bool are_points_shared_in_batch; /**< Bases are shared for batch. Set to true if all MSMs use the same bases. Otherwise
expecting #bases==#scalars. Default value: true. */
int bitsize; /**< Number of bits of the largest scalar. Typically equals the bitsize of scalar field,
* but if a different (better) upper bound is known, it should be reflected in this variable.
* Default value: 0 (set to the bitsize of scalar field). */
int batch_size; /**< Number of MSMs to compute. Default value: 1. */
bool are_points_shared_in_batch; /**< Bases are shared for batch. Set to true if all MSMs use the same bases.
Otherwise expecting #bases==#scalars. Default value: true. */
bool are_scalars_on_device; /**< True if scalars are on device, false if they're on host. Default value: false. */
bool
are_scalars_montgomery_form; /**< True if scalars are in Montgomery form, false otherwise. Default value: true. */
Expand Down

0 comments on commit 4965a25

Please sign in to comment.