Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Merkle-tree padding for all device #668

Merged
merged 15 commits into from
Dec 6, 2024

Conversation

yshekel
Copy link
Collaborator

@yshekel yshekel commented Nov 28, 2024

cuda-backend-branch: emir/merkle-padding


const unsigned nof_leaves_in_hash = layer0_hash.default_input_chunk_size() / leaf_size;

ICICLE_LOG_VERBOSE << "19 hashes (Total hashes in layer 0 - 1) - full";
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you remove the 19 here? the changes made in the tree above now yield 100 hashes in the lowest level instead of the previous 20.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I refined the tests. Seems like there is a lot of redundancy


const unsigned nof_leaves_in_hash = layer0_hash.default_input_chunk_size() / leaf_size;

ICICLE_LOG_VERBOSE << "19 hashes (Total hashes in layer 0 - 1) - full";
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here - remove 19 and keep the text in the parenthesis.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

same

@yshekel yshekel force-pushed the yshekel/test_merkel_padding branch from ad0b3a3 to bcd56cf Compare November 28, 2024 15:06
@yshekel yshekel force-pushed the yshekel/test_merkel_padding branch from bcd56cf to 9de4831 Compare November 28, 2024 15:07
@yshekel yshekel requested a review from Koren-Brand November 28, 2024 15:08
@emirsoyturk emirsoyturk merged commit 604de04 into main Dec 6, 2024
30 checks passed
mickeyasa pushed a commit that referenced this pull request Dec 8, 2024
Signed-off-by: Koren-Brand <[email protected]>
Co-authored-by: Koren-Brand <[email protected]>
Co-authored-by: emirsoyturk <[email protected]>
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.

4 participants