-
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
WIP: separate cpu/gpu namespaces and fix runtest segmentation fault #728
Closed
Conversation
This file contains 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
The build fails because maskand is also defined in testmisc.cc
So far I was never building for CUDA - now the build succeeds, and the test too!
… changes in mgOnGpuConfig.h and mgOnGpuVectors.h
… changes in mgOnGpuCxtypes.h
…er changes in mgOnGpuCxtypes.h
…er changes in mgOnGpuCxtypes.h
…er changes in mgOnGpuCxtypes.h
…er changes in mgOnGpuCxtypes.h
…er changes in mgOnGpuCxtypes.h
…er changes in mgOnGpuVectors.h
…ons in the cpu/gpu namespace
… cpu/gpu namespace
…for memory buffers and a few other types
… in src (export NVCC to simplifiy the config; also remove __device__ from operator<<)
… mgOnGpuVectors.h now
…nt namespaces This CONCLUDES the cleanup of namespaces in ggtt.sa: everything builds and runs ok NB: in debug mode, now runTest succeeds! As intended, this fixes the segfault in madgraph5#725
This was referenced Jul 19, 2023
This is now merged into #723. I am closing this. |
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.
This is a WIP MR that fixes #725, ie the segfault in runtest.
It is a complete fix in ggtt.sa. I keep it in WIP hoever and will probably close it, because I have other MRs that may soon be committed and which this will also modify a lot (@Jooorgen 's HIP MR #718 and my FPE MR # 723, which is actually where I first noticed this issue).
I will most likely merge this into #723. And then discuss with Jorgen which one of HIP or FPE should go in first.
Note: this patch essentially extends the use of the two separate namespaces for CPU and GPU builds (as discussed in #318). While I am still not convinced that it is a good idea to mix both types of builds in a single executable (which is what was causing the segfault #725), at least now this is a bit safer. I am not sure if all issues are fixed, but ceratnly it is much better. A few details