-   Notifications  You must be signed in to change notification settings 
- Fork 175
[CIR][CUDA] Decorate global CUDA shadow variables with appropriate CIR attribute. #1467
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
Conversation
| There's also a conflict to be fixed. | 
| Ok, I moved some stuff from OG I needed which should handle mangling global variables like device while compiling on host. One problem is that OG's CodeGenModule has a member 'PreprocessorOpts' which I don't know the equivalent of in CIR, so I didn't port the entirety of the code (that is also for some HIP code). The other problem is that I can't really write tests for this because the name difference seems to mostly be in HIP global variables, and I'm concerned with CUDA. | 
| 
 It needs to be introduced, we should keep the skeleton and  | 
| ✅ With the latest revision this PR passed the C/C++ code formatter. | 
| Will merge if all tests pass! | 
| format is bad, please make sure you run the formatter locally before updating the PR | 
| Ok, should be all fixed now... @bcardosolopes | 
| Ok, let's see if tests pass now! | 
| @bcardosolopes can this be merged? I'll need this for my next 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.
Thanks!
| Testing again! (Once you land your first PR tests will run automatically, but right now I need to click every time it gets updated) | 
| I guess there is now some rebase to be done. | 
b2d37c0 to 7cd0f2e   Compare   | Ok I think I fixed everything... @bcardosolopes / @keryell can you run the tests again? | 
| Tests running! | 
| I have no clue what this failing test on Mac is, I haven't changed anything relating to try-catch... | 
| 
 This is not your fault. | 
…R attribute. (llvm#1467) Started decorating CUDA shadow variables with the shadow_name CIR attribute which will be used for registering the globals.
…R attribute. (llvm#1467) Started decorating CUDA shadow variables with the shadow_name CIR attribute which will be used for registering the globals.
…R attribute. (llvm#1467) Started decorating CUDA shadow variables with the shadow_name CIR attribute which will be used for registering the globals.
…R attribute. (llvm#1467) Started decorating CUDA shadow variables with the shadow_name CIR attribute which will be used for registering the globals.
…R attribute. (llvm#1467) Started decorating CUDA shadow variables with the shadow_name CIR attribute which will be used for registering the globals.
Started decorating CUDA shadow variables with the shadow_name CIR attribute which will be used for registering the globals.