Skip to content

Commit 16a66e5

Browse files
committed
Fixes
1 parent 6c40ab3 commit 16a66e5

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

macros-test/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ mod tests {
469469

470470
// Now set_all on field3, which starts at bit 8 of the same packed[0].
471471
let vals: [[[u16; 4]; 2]; 3] =
472-
std::array::from_fn(|i| std::array::from_fn(|j| std::array::from_fn(|k| ((i * 8 + j * 4 + k + 1) as u16))));
472+
std::array::from_fn(|i| std::array::from_fn(|j| std::array::from_fn(|k| (i * 8 + j * 4 + k + 1) as u16)));
473473
row.set_all_field3(&vals);
474474

475475
// field1 must still have the original value.

pil2-components/test/common/rs/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pub fn run_pipeline(dir: &str, pil_file: &str, lib: &str) -> Result<(), String>
8383
.register_custom_commits(HashMap::<String, PathBuf>::new())
8484
.map_err(|e| format!("register_custom_commits: {e}"))?;
8585
proofman
86-
.verify_proof_constraints(witness, None, None, &DebugInfo::default(), 0u8.into())
86+
.verify_proof_constraints(witness, None, None, Some(&DebugInfo::default()), 0u8.into())
8787
.map_err(|e| format!("verify_proof_constraints: {e}"))?;
8888

8989
Ok(())

pil2-stark/src/api/starks_api.cu

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ uint64_t gen_proof_gpu(void *pSetupCtx_, uint64_t airgroupId, uint64_t airId, ui
586586
uint64_t offsetPublicInputs = setupCtx->starkInfo.mapOffsetsGPU[std::make_pair("publics", false)];
587587

588588
if (setupCtx->starkInfo.mapTotalNCustomCommitsFixed > 0) {
589-
Goldilocks::Element *pCustomCommitsFixed = (Goldilocks::Element *)d_aux_trace + setupCtx->starkInfo.mapOffsets[std::make_pair("custom_fixed", false)];
589+
Goldilocks::Element *pCustomCommitsFixed = (Goldilocks::Element *)d_aux_trace + setupCtx->starkInfo.mapOffsetsGPU[std::make_pair("custom_fixed", false)];
590590
uint64_t customCommitsSize = setupCtx->starkInfo.mapTotalNCustomCommitsFixed * sizeof(Goldilocks::Element);
591591
// Skip the 32-byte Merkle-root header at the start of the file (assumes 1 custom commit per AIR).
592592
load_and_copy_to_device_in_chunks(d_buffers, customCommitsFixedPath, (uint8_t*)pCustomCommitsFixed, customCommitsSize, streamId, 32);
@@ -680,7 +680,7 @@ uint64_t initialize_instance_gpu(void *pSetupCtx_, uint64_t airgroupId, uint64_t
680680
uint64_t offsetPublicInputs = setupCtx->starkInfo.mapOffsetsGPU[std::make_pair("publics", false)];
681681

682682
if (setupCtx->starkInfo.mapTotalNCustomCommitsFixed > 0) {
683-
Goldilocks::Element *pCustomCommitsFixed = (Goldilocks::Element *)d_aux_trace + setupCtx->starkInfo.mapOffsets[std::make_pair("custom_fixed", false)];
683+
Goldilocks::Element *pCustomCommitsFixed = (Goldilocks::Element *)d_aux_trace + setupCtx->starkInfo.mapOffsetsGPU[std::make_pair("custom_fixed", false)];
684684
uint64_t customCommitsSize = setupCtx->starkInfo.mapTotalNCustomCommitsFixed * sizeof(Goldilocks::Element);
685685
load_and_copy_to_device_in_chunks(d_buffers, customCommitsFixedPath, (uint8_t*)pCustomCommitsFixed, customCommitsSize, streamId, 32);
686686
}
@@ -1258,7 +1258,7 @@ uint64_t commit_witness_gpu(void *pSetupCtx_, void *params_, uint64_t instanceId
12581258
CHECKCUDAERR(cudaGetLastError());
12591259

12601260
if (setupCtx->starkInfo.mapTotalNCustomCommitsFixed > 0) {
1261-
Goldilocks::Element *pCustomCommitsFixedDst = (Goldilocks::Element *)d_aux_trace + setupCtx->starkInfo.mapOffsets[std::make_pair("custom_fixed", false)];
1261+
Goldilocks::Element *pCustomCommitsFixedDst = (Goldilocks::Element *)d_aux_trace + setupCtx->starkInfo.mapOffsetsGPU[std::make_pair("custom_fixed", false)];
12621262
uint64_t customCommitsSize = setupCtx->starkInfo.mapTotalNCustomCommitsFixed * sizeof(Goldilocks::Element);
12631263
load_and_copy_to_device_in_chunks(d_buffers, customCommitsFixedPath, (uint8_t*)pCustomCommitsFixedDst, customCommitsSize, streamId, 32);
12641264
}
@@ -1301,7 +1301,7 @@ uint64_t commit_witness_gpu(void *pSetupCtx_, void *params_, uint64_t instanceId
13011301
pConstPolsAddress: d_const_pols_unpacked,
13021302
pConstPolsExtendedTreeAddress: nullptr,
13031303
pCustomCommitsFixed: setupCtx->starkInfo.mapTotalNCustomCommitsFixed > 0
1304-
? (Goldilocks::Element *)d_aux_trace + setupCtx->starkInfo.mapOffsets[std::make_pair("custom_fixed", false)]
1304+
? (Goldilocks::Element *)d_aux_trace + setupCtx->starkInfo.mapOffsetsGPU[std::make_pair("custom_fixed", false)]
13051305
: nullptr,
13061306
};
13071307

0 commit comments

Comments
 (0)