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

When will flang-new be brought in ? General roadmap question about aomp wrt Fortran. #971

Open
fluidnumerics-joe opened this issue Jun 26, 2024 · 6 comments
Assignees
Labels
Feature Request question Further information is requested

Comments

@fluidnumerics-joe
Copy link

The support for fortran codes in general within ROCm is quite embarrassing.

A number of projects I've worked on for folks at Pawsey, in addition to some of our own projects ( e.g. https://github.com/fluidnumerics/SELF) , that use derived types with type bound procedures, inheritance, and polymorphic types simply don't compile with aomp (separate issues will be open soon) when gpu offloading via openmp is enabled.

It'd be helpful to have some clarification on some rather vague comments (from this issue : #576 (comment) ). Specifically

A: The legacy flang based on the PGI compiler has limited offloading support. So it is not considered production even though it is and has been distributed with ROCm. The production fortran will be the new llvm flang. We cannot discuss schedule here.

What is meant by "limited offloading support" ?
When will ROCm actually have a production fortran compiler via llvm flang-new ?

To extend on this, what Fortran language standard will be fully supported ?

@gregrodgers gregrodgers self-assigned this Jul 9, 2024
@gregrodgers
Copy link
Contributor

Hi Joe, we are working very hard on flang-new. It is hard to make statements about the future here. It is obvious from upstream LLVM activity that a lot of work for flang-new is upstream. But it is not ready to switch from flang-legacy to flang-new.

@gregrodgers gregrodgers added the question Further information is requested label Jul 9, 2024
@fluidnumerics-joe
Copy link
Author

Now that flang-new appears to be in ROCm 6.3, can we now discuss what specific features are now imparted on the amdflang compiler included with ROCm?

From reading other issues related to this one, it appears that amdflang is no longer pointing to flang-legacy. All ROCm docs suggest that AMD just got equipped with a Fortran compiler, which is not really quite true (amdflang has been around for some time ...). What features specifically come with the new compiler?

@ronlieb
Copy link
Contributor

ronlieb commented Dec 15, 2024

Hi Joe, we have not added flang-new to ROCm 6.3 , not sure where you are seeing this. could you point me at a couple of the links that you mentioned ?

@fluidnumerics-joe
Copy link
Author

I supppose I'm confused in general about the announcement of the "next-gen fortran compiler" (https://rocm.blogs.amd.com/ecosystems-and-partners/fortran-journey/README.html) ...

@ronlieb
Copy link
Contributor

ronlieb commented Dec 15, 2024

The blog post refers to a preview of the new fortran compiler, an important snippet:

AMD’s Next-Gen Fortran Compiler will be a downstream flavor of LLVM Flang and will in time supplant the current AMD Flang compiler, a downstream flavor of “Classic Flang”.

@fluidnumerics-joe
Copy link
Author

Got it. It appears the messaging is getting muddied elsewhere, including in comments from cloud providers offering MI300X

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants