-
Notifications
You must be signed in to change notification settings - Fork 32
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
0 Initalized packed array buffer #7
base: master
Are you sure you want to change the base?
Conversation
Hello @guinn8 👋 I likely won't accept this PR. If you really want to As far as Valgrind goes, I get no issue when running tests
|
Fair enough to no accept the PR as is. Redefining |
You are correct about it being a flaw in my application, my code assumed zero initialization. Looked like a bug from my perspective as the error was only observed on some inputs. Super cool library, reduced the memory consumption of my application by a factor of 8 (from 480gb to 60gb)! |
You would do
|
Also the benefit of |
I have 0 initialized the PackedArray buffer. I was valrgrind'ing around in my application and was getting
Conditional jump or move depends on uninitialised value(s)
when using a 1- bit packed array buffer and was getting incorrect results. This fix resolves the issue. I reran the tests and everything is passing. This is a fix for #6Bug can be reproduced in this commit with this input
aliquot/_pom_yang_rewrite/ make && valgrind ./main --bound=$((10**6)) --seg_len=$((5 * $((10**3)))) --writebuf_len=1000000 --preimage_count_bits=1 --num_threads=12