-
Notifications
You must be signed in to change notification settings - Fork 104
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
base: main
Are you sure you want to change the base?
Conversation
icicle/tests/test_hash_api.cpp
Outdated
|
||
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"; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
icicle/tests/test_hash_api.cpp
Outdated
|
||
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"; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
ad0b3a3
to
bcd56cf
Compare
bcd56cf
to
9de4831
Compare
int output_store_min_layer = 0; | ||
constexpr int leaf_size = 250; | ||
constexpr int nof_leaves = 100; | ||
const std::vector<int> test_cases_nof_input_leaves = {1, 8, 32, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add 16 and 17 (or just add 33) to test edge cases in the CPU given the chunk size of 16 when building the tree
cuda-backend-branch: emir/merkle-padding