Revision 1ae1b3cf29511f157f8a07b1711961180c729d8e authored by Andrew M. Bradley on 18 October 2021, 20:00:17 UTC, committed by Andrew M. Bradley on 18 October 2021, 20:00:17 UTC
When multiple components use Kokkos, we need to be careful about initializing and finalizing Kokkos. Each can occur only once, and finalization must occur after the last component using Kokkos has deallocated its views. This commit modifies cime_comp_mod to finalize components in the opposite order that it initializes them. Then a component can use is_initialized to determine if it is in charge of initializing and finalizing Kokkos. In this commit, I've modified SL transport to follow this pattern.
1 parent 55d0464
codemeta.json
{
"@context": "https://raw.githubusercontent.com/mbjones/codemeta/master/codemeta.jsonld",
"@type": "SoftwareSourceCode",
"author": [
{
"@type": "Organization",
"name": "E3SM Project",
}
],
"identifier": "http://dx.doi.org/10.11578/E3SM/dc.20180418.36",
"codeRepository": "https://github.com/E3SM-Project/E3SM",
"datePublished": "2018-04-20",
"keywords": "climate modeling",
"license": "BSD",
"title": "Energy Exascale Earth System Model",
"version": "v1.0.0"
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...