-
Notifications
You must be signed in to change notification settings - Fork 15
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
Increase MAX_PATTERN_LEN and STRING_SIZE constants #164
Conversation
Interestingly, I am not able to reproduce the segfaults when running |
The build failure is weird, but I think maybe it's overflowing some string(s) in the test environment. I'm going to try and test locally as well. The build log has this output: /home/runner/work/spatter/spatter/src/parse-args.c: In function ‘parse_runs’: |
Adding some more info - I pulled this change, built it and tested it locally with the serial backend. I can recreate this failure.
|
In my tests, it seems the max STRING_SIZE that doesn't crash with GCC 8/10/12 is One suggestion might be that we specify which variable(s) need to be extended and make sure we use a separate global to set the size of just those array inputs. |
We talked about possible solutions
|
@jyoung3131 I've gone with option 1 for now and determine the pattern length when reading in the patterns to allocate buffers. The JSON parser does some of this work and has a field with the length of the read in buffer, so using that instead of STRING_SIZE took care of some of those issues. The other tweaks this required was
|
@jyoung3131 |
Hi Jered - our GPU runner is down due to some unexpected upgrades that broke Slurm for a few of our GPU nodes. I'll fix it and rerun this PR for merging. |
Hi Jered - unfortunately it looks like the GPU Ustride test passed but the AMG test does not. Do you think this is related to some of our other issues like #154?
|
Hi Jeff Thanks for re-running that! I do not think it is related to #154. It looks like there is some code in the
I am working on a few tweaks now to count the number of elements in the pattern before this allocation and I'll push that later this afternoon. It now looks like this
|
Thanks, Jered - this looks excellent! @plavin can you add your review (confirm there is no issue with your ongoing work) and we will merge this PR. |
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.
Reviewed code updates. Tests seem to have caught many of our corner cases, and those all definitely pass now. Approved for merge.
Simply increasing these constants to account for some of the larger LANL patterns.