Skip to content

Commit

Permalink
nvtx profiling as feature
Browse files Browse the repository at this point in the history
  • Loading branch information
vhnatyk committed Mar 29, 2023
1 parent bed87f0 commit c49dbb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions fast-danksharding/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ark-ff = "0.3.0"
ark-poly = "0.3.0"
ark-ec = { version = "0.3.0", features = [ "parallel" ] }
ark-bls12-381 = { version = "0.3.0", optional = true }
nvtx = { version="1.1.1", optional = true }

[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
Expand Down
3 changes: 3 additions & 0 deletions fast-danksharding/src/fast_danksharding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ use icicle_utils::{field::Point, *};

use crate::{matrix::*, utils::*, *};

#[cfg(feature = "nvtx")]
use nvtx::{range_pop, range_push};

pub const FLOW_SIZE: usize = 1 << 12; //4096 //prod flow size
pub const TEST_SIZE_DIV: usize = 1; //TODO: Prod size / test size for speedup
pub const TEST_SIZE: usize = FLOW_SIZE / TEST_SIZE_DIV; //test flow size
Expand Down

0 comments on commit c49dbb1

Please sign in to comment.