Skip to content
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

[flang][OpenMP][DoConcurrent] Support fir.shape_shift values #211

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

ergawy
Copy link

@ergawy ergawy commented Nov 22, 2024

Extends support for shaped values by adding support for values whose shaped are defined by fir.shapeshift types. To that end, we add maps to store all the info from which we can recreate the shape of the mapped object.

@ergawy
Copy link
Author

ergawy commented Nov 22, 2024

This is the last change I had to make in order to compile LBL's inference engine to device (not able to successfully run on the device yet becuase we still miss some stuff related to mapping).

Therefore, I think with this change, the do concurrent pass in itself seems to be able to handle quite complex and modern codebases.

@ergawy
Copy link
Author

ergawy commented Nov 29, 2024

Ping 🔔! Please take a look when you have a chance.

Copy link

@mjklemm mjklemm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, albeit me no being the expert in this area.

@ergawy ergawy requested a review from TIFitis December 3, 2024 10:39
@ergawy
Copy link
Author

ergawy commented Dec 3, 2024

One more ping 🔔! Let me know if there are any objections to merging this PR.

Copy link

@skatrak skatrak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Kareem, I have some small comments.

flang/lib/Optimizer/OpenMP/DoConcurrentConversion.cpp Outdated Show resolved Hide resolved
flang/lib/Optimizer/OpenMP/DoConcurrentConversion.cpp Outdated Show resolved Hide resolved
flang/lib/Optimizer/OpenMP/DoConcurrentConversion.cpp Outdated Show resolved Hide resolved
flang/lib/Optimizer/OpenMP/DoConcurrentConversion.cpp Outdated Show resolved Hide resolved
flang/lib/Optimizer/OpenMP/DoConcurrentConversion.cpp Outdated Show resolved Hide resolved
flang/lib/Optimizer/OpenMP/DoConcurrentConversion.cpp Outdated Show resolved Hide resolved
flang/lib/Optimizer/OpenMP/DoConcurrentConversion.cpp Outdated Show resolved Hide resolved
Extends support for shaped values by adding support for values whose
shaped are defined by `fir.shapeshift` types. To that end, we add maps
to store all the info from which we can recreate the shape of the mapped
object.
@ergawy ergawy force-pushed the support_shape_shift_values branch from 658c99e to 7969a20 Compare December 4, 2024 05:42
@ergawy ergawy merged commit 88d9996 into ROCm:amd-trunk-dev Dec 4, 2024
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants