From 263b5d95b571e1c3fa5f06676c3e1de2b8ac7fad Mon Sep 17 00:00:00 2001 From: yanziseeker <153156292+AdventureSeeker987@users.noreply.github.com> Date: Fri, 22 Dec 2023 06:30:28 +0000 Subject: [PATCH] Fix typos --- README.md | 2 +- icicle/appUtils/msm/msm.cuh | 2 +- icicle/appUtils/ntt/ntt.cu | 2 +- icicle/appUtils/ntt/ntt.cuh | 2 +- wrappers/rust/icicle-core/src/msm/mod.rs | 4 ++-- wrappers/rust/icicle-core/src/ntt/mod.rs | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 45ed8dcd2..5b680b4e1 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ ICICLE is a CUDA implementation of general functions widely used in ZKP. ICICLE - Any Nvidia GPU (which supports CUDA Toolkit version 12.0 or above). > [!NOTE] -> It is possible to use CUDA 11 for cards which dont support CUDA 12, however we dont offically support this version and in the future there may be issues. +> It is possible to use CUDA 11 for cards which dont support CUDA 12, however we dont officially support this version and in the future there may be issues. ### Accessing Hardware diff --git a/icicle/appUtils/msm/msm.cuh b/icicle/appUtils/msm/msm.cuh index de0270d3d..b696088e2 100644 --- a/icicle/appUtils/msm/msm.cuh +++ b/icicle/appUtils/msm/msm.cuh @@ -72,7 +72,7 @@ namespace msm { * very frequently. Useful for efficient treatment of non-uniform distributions of * scalars and "top windows" with few bits. Can be set to 0 to disable separate * treatment of large buckets altogether. Default value: 10. */ - bool is_async; /**< Whether to run the MSM asyncronously. If set to true, the MSM function will be + bool is_async; /**< Whether to run the MSM asynchronously. If set to true, the MSM function will be * non-blocking and you'd need to synchronize it explicitly by running * `cudaStreamSynchronize` or `cudaDeviceSynchronize`. If set to false, the MSM * function will block the current CPU thread. */ diff --git a/icicle/appUtils/ntt/ntt.cu b/icicle/appUtils/ntt/ntt.cu index 2fb97d087..a7fb6e06e 100644 --- a/icicle/appUtils/ntt/ntt.cu +++ b/icicle/appUtils/ntt/ntt.cu @@ -268,7 +268,7 @@ namespace ntt { /** * NTT/INTT inplace batch - * Note: this function does not preform any bit-reverse permutations on its inputs or outputs. + * Note: this function does not perform any bit-reverse permutations on its inputs or outputs. * @param d_input Input array * @param n Size of `d_input` * @param d_twiddles Twiddles diff --git a/icicle/appUtils/ntt/ntt.cuh b/icicle/appUtils/ntt/ntt.cuh index 1eaf9038e..b564ea328 100644 --- a/icicle/appUtils/ntt/ntt.cuh +++ b/icicle/appUtils/ntt/ntt.cuh @@ -67,7 +67,7 @@ namespace ntt { bool are_inputs_on_device; /**< True if inputs are on device and false if they're on host. Default value: false. */ bool are_outputs_on_device; /**< If true, output is preserved on device, otherwise on host. Default value: false. */ int batch_size; /**< The number of NTTs to compute. Default value: 1. */ - bool is_async; /**< Whether to run the NTT asyncronously. If set to `true`, the NTT function will be + bool is_async; /**< Whether to run the NTT asynchronously. If set to `true`, the NTT function will be * non-blocking and you'd need to synchronize it explicitly by running * `cudaStreamSynchronize` or `cudaDeviceSynchronize`. If set to false, the NTT * function will block the current CPU thread. */ diff --git a/wrappers/rust/icicle-core/src/msm/mod.rs b/wrappers/rust/icicle-core/src/msm/mod.rs index 5552cf09e..904dfa67b 100644 --- a/wrappers/rust/icicle-core/src/msm/mod.rs +++ b/wrappers/rust/icicle-core/src/msm/mod.rs @@ -30,7 +30,7 @@ struct MSMConfig { int large_bucket_factor; /**< Variable that controls how sensitive the algorithm is to the buckets that occur very frequently. * Useful for efficient treatment of non-uniform distributions of scalars and "top windows" with few bits. * Can be set to 0 to disable separate treatment of large buckets altogether. Default value: 10. */ - int is_async; /**< Whether to run the MSM asyncronously. If set to `true`, the MSM function will be non-blocking + int is_async; /**< Whether to run the MSM asynchronously. If set to `true`, the MSM function will be non-blocking * and you'd need to synchronize it explicitly by running `cudaStreamSynchronize` or `cudaDeviceSynchronize`. * If set to false, the MSM function will block the current CPU thread. */ device_context::DeviceContext ctx; /**< Details related to the device such as its id and stream id. See [DeviceContext](@ref `device_context::DeviceContext`). */ @@ -88,7 +88,7 @@ pub struct MSMConfig<'a> { /// Can be set to 0 to disable separate treatment of large buckets altogether. Default value: 10. pub large_bucket_factor: usize, - /// Whether to run the MSM asyncronously. If set to `true`, the MSM function will be non-blocking + /// Whether to run the MSM asynchronously. If set to `true`, the MSM function will be non-blocking /// and you'd need to synchronize it explicitly by running `cudaStreamSynchronize` or `cudaDeviceSynchronize`. /// If set to `false`, the MSM function will block the current CPU thread. pub is_async: bool, diff --git a/wrappers/rust/icicle-core/src/ntt/mod.rs b/wrappers/rust/icicle-core/src/ntt/mod.rs index 426abe896..d3259b6b0 100644 --- a/wrappers/rust/icicle-core/src/ntt/mod.rs +++ b/wrappers/rust/icicle-core/src/ntt/mod.rs @@ -44,7 +44,7 @@ pub struct NTTConfig<'a, S> { pub are_outputs_on_device: bool, /** The number of NTTs to compute. Default value: 1. */ pub batch_size: c_int, - /** Whether to run the NTT asyncronously. If set to `true`, the NTT function will be non-blocking and you'd need to synchronize + /** Whether to run the NTT asynchronously. If set to `true`, the NTT function will be non-blocking and you'd need to synchronize * it explicitly by running `cudaStreamSynchronize` or `cudaDeviceSynchronize`. If set to false, the NTT * function will block the current CPU thread. */ pub is_async: bool,