Skip to content

Commit

Permalink
Co-authored-by: Tony Wu <Quarky93@users.noreply.github.com>
Browse files Browse the repository at this point in the history
  • Loading branch information
VitaliiH authored and VitaliiH committed Feb 3, 2025
1 parent 4d915b2 commit 6374f8b
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions crates/prover/src/examples/wide_fibonacci/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ mod tests {
use std::mem::transmute;

use icicle_cuda_runtime::memory::HostSlice;

use crate::constraint_framework::PREPROCESSED_TRACE_IDX;
use crate::constraint_framework::ORIGINAL_TRACE_IDX;
// use crate::constraint_framework::PREPROCESSED_TRACE_IDX;
use crate::core::backend::icicle::column::DeviceColumn;
use crate::core::backend::icicle::IcicleBackend;
// use crate::core::backend::CpuBackend;
Expand Down Expand Up @@ -326,19 +326,12 @@ mod tests {

let trace_wip = commitment_scheme.trace();

// nvtx::range_push!("component_evals");
let mut component_evals = trace_wip.evals.sub_tree(&component.trace_locations());
component_evals[PREPROCESSED_TRACE_IDX] = component
.preproccessed_column_indices()
.iter()
.map(|idx| &trace_wip.evals[PREPROCESSED_TRACE_IDX][*idx])
.collect();
// nvtx::range_pop!();
let b: Vec<BaseField> = component_evals
println!("n_trace_cols: {}", trace_wip.evals[ORIGINAL_TRACE_IDX].len());
println!("n_trace_rows: {}", trace_wip.evals[ORIGINAL_TRACE_IDX][0].len());
let b: Vec<BaseField> = trace_wip.evals[ORIGINAL_TRACE_IDX]
.to_vec()
.iter()
.map(|c| c.iter().map(|v| v.values.to_cpu()))
.flatten()
.map(|c| c.values.to_cpu())
.flatten()
.collect::<Vec<_>>();

Expand Down

0 comments on commit 6374f8b

Please sign in to comment.