Fix Undefined Behavior#2
Open
elvircrn wants to merge 4 commits intoSuperScientificSoftwareLaboratory:mainfrom
Open
Fix Undefined Behavior#2elvircrn wants to merge 4 commits intoSuperScientificSoftwareLaboratory:mainfrom
elvircrn wants to merge 4 commits intoSuperScientificSoftwareLaboratory:mainfrom
Conversation
Author
|
I've also added one more change to this PR since I've also encountered a crash when |
Author
|
Hi xcx6, It seems like you didn't fully reproduce this error. Please try using this matrix: https://sparse.tamu.edu/SNAP/CollegeMsg, as reported by my issue. Thanks, |
1 similar comment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Hi all.
I am in the process of reproducing the paper that you guys published.
After following the steps from the README, and testing out the code on the following matrix: https://sparse.tamu.edu/SNAP/CollegeMsg, I received a SEGFAULT.
In particular, here are the steps that I took:
I've done this on the following GPUs with differing CPUs:
RTX 3090
RTX 2080
GTX 1650 Ti
and have therefore managed to produce crashes on multiple machines.
After attempting to integrate this library and taking a closer look at the SEGFAULT, I found three problems in the code with the help of Valgrind:
The first one is a invalid read in line 180 in csr2tile.h. Since
riis compared against rowlen-1, and the for loop goes toBLOCK_SIZE, in the last block, an invalid memory read is done causing a random crash somwhere downstream. This fix changes the logic of the code a bit and I would definitely like to receive feedback here.The second and third bug seem to be a typo (file: csr2tile.h) and innocent enough at first glance. The memsets touched by this PR write over tile_csr_Col (it should actually zero out tile_csr_Value) and it writes past what was allocated at tile_csr_Col since sizeof(unsigned char) < sizeof(float), causing random crashes depending on how the code is run.
After applying this patch, the code stops crashing.
Please let me know if more information is needed.
Thanks,
Elvir