Documentation: parallel builds with flang + Caffeine#235
Documentation: parallel builds with flang + Caffeine#235rouson wants to merge 2 commits intomodern-fortran:mainfrom
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.
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-newcompiler and the Caffeine parallel runtime library.