Repository navigation
Create intial requirements doc for PR - #674
Benjamin Went (MetBenjaminWent) wants to merge 2 commits into
Conversation
Sam Clarke-Green (t00sa)
left a comment
There was a problem hiding this comment.
Sphinx does not like the formatting. Things to address:
- The section headings have to be traversed in order as defined here
- The section underlines need to be at least as long as the section heading text. Some of the underlines are too short
- The nested bullet lists don't render correctly. The are indented with hard tabs, but sphinx requires them to be indented with spaces to line up with the text on the previous bullet line - in practice this means two spaces per level
More generally, I'd suggest shortening each of the headings to a few words and including the longer description as a paragraph ahead of each list of bullet points. This will make the "On this page" navigation easier to use and should make the text clearer too
|
Hello Benjamin Went (@MetBenjaminWent)! 👋 Thank you for your contribution. Since this is your first time contributing to this repository, we ask that you sign our Contributor Licence Agreement (CLA). To agree to the CLA, please add your details (GitHub username, Real Name, Affiliation, and Date) to the CONTRIBUTORS.md file (create one, if required) in the development branch for this PR. After signing the CLA, you won't need to do this again for future PRs. |
|
|
||
| <architecture> | ||
| Opt-In/Out | ||
| These must be overridable by appropriate settings in cylc. |
There was a problem hiding this comment.
I appreciate that the following isn't strictly a Met Office requirement (since you presumably always use cylc) but:
Can these overrides be performed manually? e.g. using env vars?
There was a problem hiding this comment.
I'll ammend to note this nuance
| Currently there is no interaction between Transmute and PSyKAl steps for kernels. | ||
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | ||
|
|
||
| Currently a Fortran source file should only be passed to Transmute if it is not in-lined by the algorithm. |
There was a problem hiding this comment.
This is where things get difficult. For a GPU build, offloading a PSyKAl Kernel requires that any routines that it calls must also be marked for GPU compilation (e.g. !$acc routine). There are various approaches to this:
- For a GPU build, we could transmute all source first and add a suitable directive to all routines "where it makes sense"; the PSyKAl stage could then check a call stack for the necessary markup when performing a transformation;
- Alternatively, we have the PSyKAl stage capture those routines that must be transformed and write the details to a separate file that is then read during the transmute stage;
- Alternatively (and worst?), the build system maintains a list of files/routines that must be transmuted for GPU.
A mistake in any of these approaches will result in the application failing to compile as one or more routines won't be available on the GPU.
There was a problem hiding this comment.
Turning on keep comments by default means we should preserve the metadata for PSykal if Transmute occurs first, freeing us up to do it in any order. This could go in the minimum implementaion.
In the short term, perhaps there being a configurable action ordering would be helpful for kernels?
This could go in the updates following.
But otherwise it sounds like the most optimal way to build is to not do the transmute step if we know we are going to do it during the psykal step. That way we cut actions.
We could rename part of the file during the build with this or slap a new extension on it?
We'd need to configure both whether to Transmute and how to Transmute. This sounds like there needs to be some interaction between the whether to Transmute and the architecture, similar to when we consult the architectre for how scripts are stored. Perhaps this needs expanding to the configurations too.
A marker on whether we are planning to inline a kernel during the PSyKaL would be the best way, and early enough that the build system resolves it.
This could flow down into the script from the configuration, so there's s single source of control.
This could be a longer term plan.
| It must allow the user to choose which transformation script is applied to a specific Fortran File. | ||
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | ||
|
|
||
| The interpretation of a configuration option must use glob (or a similar method) to resolve to an appropriate transformation script from the configuration file. |
There was a problem hiding this comment.
Which configuration file is this?
There was a problem hiding this comment.
So theres going to be 2x ideally:
Whether to Transmute
How to Transmute - similar ideally to Joergs YAML method
Add the requirments for Transmute to the FAB3 repo
The goal is to capture what is needed to match the make system, the improvments to the make system, and the needs of STFC.
This also needs to be reviewed by STFC once we are happy with it.