Skip to content

Conversation

@IlyasRidhuan
Copy link
Contributor

@IlyasRidhuan IlyasRidhuan commented Aug 19, 2025

Updates bb-pilcom to change the generated files.

Now the choice of whether to use generated/poseidon2_perm or optimized/poseidon2_perm can be made via bb-pilcom through the use of feature-flags (see README.md).

I could not convince CMake to ignore building generated/poseidon2_perm file even if it wasn't included in any other files, so the solution for now was also to not generate the poseidon2_perm file when using the optimized one.

This does mean that the generated folder should be deleted if switching between from generated to optimized to minimise wasted compiling time (this is already supported by the -y flag in the cli)

Copy link
Contributor Author

IlyasRidhuan commented Aug 19, 2025

@IlyasRidhuan IlyasRidhuan requested a review from fcarreiro August 19, 2025 14:42
@IlyasRidhuan IlyasRidhuan marked this pull request as ready for review August 19, 2025 14:42
@IlyasRidhuan IlyasRidhuan marked this pull request as draft August 20, 2025 10:19
@IlyasRidhuan IlyasRidhuan force-pushed the ir/08-15-perf_avm_hand_tune_poseidon2_perm branch from ef0e50d to 2766d06 Compare August 20, 2025 16:24
@IlyasRidhuan IlyasRidhuan force-pushed the ir/08-19-feat_avm_enable_optimized_poseidon2_rels branch 2 times, most recently from 0b94d25 to 303c053 Compare August 21, 2025 10:10
let used_alias_defs_in_skippable = alias_expressions_in_order
.iter()
.filter(|(name, _, _)| skippable_if.as_ref().map(|id| id.identity == *name).unwrap_or(false))
.filter(|(name, _, _)| {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird - formatting changes?

"relation_impls.hpp",
std::str::from_utf8(include_bytes!("../templates/relation_impls.hpp.hbs")).unwrap(),
).unwrap();
handlebars
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

)
.unwrap();

let optimized_relations = self.get_optimized_relations_file_names();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is new though

@IlyasRidhuan IlyasRidhuan force-pushed the ir/08-19-feat_avm_enable_optimized_poseidon2_rels branch 2 times, most recently from 180f999 to 3a349c6 Compare August 21, 2025 13:41
@IlyasRidhuan IlyasRidhuan marked this pull request as ready for review August 21, 2025 13:47
Base automatically changed from ir/08-15-perf_avm_hand_tune_poseidon2_perm to next August 21, 2025 14:44
@IlyasRidhuan IlyasRidhuan force-pushed the ir/08-19-feat_avm_enable_optimized_poseidon2_rels branch from 3a349c6 to 905e019 Compare August 21, 2025 15:30
@fcarreiro fcarreiro added this pull request to the merge queue Aug 21, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 21, 2025
@IlyasRidhuan IlyasRidhuan added this pull request to the merge queue Aug 21, 2025
Merged via the queue into next with commit 11d9d9e Aug 21, 2025
15 of 16 checks passed
@IlyasRidhuan IlyasRidhuan deleted the ir/08-19-feat_avm_enable_optimized_poseidon2_rels branch August 21, 2025 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants