-
Notifications
You must be signed in to change notification settings - Fork 97
Documentation: parallel builds with flang + Caffeine #235
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
base: main
Are you sure you want to change the base?
Documentation: parallel builds with flang + Caffeine #235
Conversation
fixes modern-fortran#233 Pure functions get_activation_by_name and get_optimizer_by_name construct polymorphic function results. Removing `pure` enables building with the LLVM flang-new compiler. Although Fortran 2003 allowed pure functions with allocatable polymorphic results, subsequent standards disallowed such functions. Using this Fortran 2003 feature blocks building with the LLVM and NAG compilers and likely will block building with future versions of gfortran once GCC issue 78640 has been fixed. (See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78640.) TODO: A subsequent error still blocks building with NAG, which this commit does not address.
This commit adds instructions for building and running neural-fortran (specifcally the test suite) using the experimental multi-image capabilities of LLVM flang 22 + the Caffeine parallel runtime library as an alternative to gfortran + OpenCoarrays.
On macOS with Caffeine and its GASNet prerequisite installed in
|
We can look into it but my bet is it's nothing to do with parallel stuff; the test itself may be not portable to flang, it came in after I played with flang last. |
@milancurcic correct: a single-image run fails with flang/Caffeine so I agree it's a porting issue. |
See all papers that cite it | ||
[here](https://scholar.google.com/scholar?cites=7315840714744905948). | ||
|
||
https://github.com/BerkeleyLab/julienne/blob/e9f7ea8069206bfc4abf6a9e6dbbd7d07bda075a/doc/parallel-testing-with-flang.md |
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.
Did you mean to put this here? It seems out of context
This PR includes the commit(s) from PR #234. The current PR edits the README.md file to include instructions for parallel runs of neural-fortran with the LLVM
flang-new
compiler and the Caffeine parallel runtime library.