Skip to content

Commit

Permalink
update halo2curves
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanting Zhang committed Dec 21, 2023
1 parent 1916bfc commit 4ee6765
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ force-adx = [ "blst/force-adx" ]
cuda-mobile = []
# Build with __MSM_SORT_DONT_IMPLEMENT__ to prevent redefining
# symbols that breaks compilation during linking.
force-no-sort = []
dont-implement-sort = []

[dependencies]
blst = "~0.3.11"
sppark = "~0.1.2"
halo2curves = { version = "0.4.0" }
halo2curves = { version = "0.5.0" }
rand = "^0"
rand_chacha = "^0"
rayon = "1.5"
Expand Down
7 changes: 4 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ fn main() {
if let Some(include) = env::var_os("DEP_SPPARK_ROOT") {
nvcc.include(include);
}
#[cfg(not(feature = "force-no-sort"))]
#[cfg(not(feature = "dont-implement-sort"))]
nvcc.clone().file("cuda/bn254.cu").compile("bn256_msm_cuda");
#[cfg(feature = "force-no-sort")]
#[cfg(feature = "dont-implement-sort")]
nvcc.clone()
.define("__MSM_SORT_DONT_IMPLEMENT__", None)
.file("cuda/bn254.cu").compile("bn256_msm_cuda");
.file("cuda/bn254.cu")
.compile("bn256_msm_cuda");
nvcc.define("__MSM_SORT_DONT_IMPLEMENT__", None)
.file("cuda/grumpkin.cu")
.compile("grumpkin_msm_cuda");
Expand Down

0 comments on commit 4ee6765

Please sign in to comment.