cp2k / dbcsr

DBCSR: Distributed Block Compressed Sparse Row matrix library
https://cp2k.github.io/dbcsr/
GNU General Public License v2.0
135 stars 46 forks source link

Use env variables for setting CFG #641

Closed alazzaro closed 1 year ago

alazzaro commented 1 year ago

Introducing a machinery to set configuration parameters via env variables. Currently, only some parameters (it will be extended to all) can now be set via env variables. The priority of setting is:

codecov[bot] commented 1 year ago

Codecov Report

Base: 66.1% // Head: 66.3% // Increases project coverage by +0.1% :tada:

Coverage data is based on head (18f39d8) compared to base (d6c40e7). Patch coverage: 65.5% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #641 +/- ## ========================================= + Coverage 66.1% 66.3% +0.1% ========================================= Files 103 103 Lines 28594 28646 +52 ========================================= + Hits 18919 19000 +81 + Misses 9675 9646 -29 ``` | Flag | Coverage Δ | | |---|---|---| | unittests | `66.3% <65.5%> (+0.1%)` | :arrow_up: | | with-blas | `66.3% <65.5%> (+0.1%)` | :arrow_up: | | with-libxsmm | `66.3% <66.0%> (+0.1%)` | :arrow_up: | | with-mpi | `66.6% <65.5%> (+<0.1%)` | :arrow_up: | | with-openmp | `65.6% <64.4%> (+0.1%)` | :arrow_up: | | without-mpi | `65.3% <64.6%> (+3.7%)` | :arrow_up: | | without-openmp | `65.5% <65.5%> (+0.1%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cp2k#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/cp2k/dbcsr/pull/641?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cp2k) | Coverage Δ | | |---|---|---| | [src/mm/dbcsr\_mm\_3d.F](https://codecov.io/gh/cp2k/dbcsr/pull/641/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cp2k#diff-c3JjL21tL2RiY3NyX21tXzNkLkY=) | `64.2% <0.0%> (ø)` | | | [src/mm/dbcsr\_mm\_accdrv.F](https://codecov.io/gh/cp2k/dbcsr/pull/641/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cp2k#diff-c3JjL21tL2RiY3NyX21tX2FjY2Rydi5G) | `16.0% <0.0%> (ø)` | | | [src/utils/dbcsr\_string\_utilities.F](https://codecov.io/gh/cp2k/dbcsr/pull/641/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cp2k#diff-c3JjL3V0aWxzL2RiY3NyX3N0cmluZ191dGlsaXRpZXMuRg==) | `21.8% <33.3%> (+1.1%)` | :arrow_up: | | [src/dist/dbcsr\_dist\_methods.F](https://codecov.io/gh/cp2k/dbcsr/pull/641/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cp2k#diff-c3JjL2Rpc3QvZGJjc3JfZGlzdF9tZXRob2RzLkY=) | `91.4% <50.0%> (ø)` | | | [src/core/dbcsr\_config.F](https://codecov.io/gh/cp2k/dbcsr/pull/641/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cp2k#diff-c3JjL2NvcmUvZGJjc3JfY29uZmlnLkY=) | `58.8% <59.0%> (+7.7%)` | :arrow_up: | | [src/data/dbcsr\_ptr\_util.F](https://codecov.io/gh/cp2k/dbcsr/pull/641/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cp2k#diff-c3JjL2RhdGEvZGJjc3JfcHRyX3V0aWwuRg==) | `76.6% <100.0%> (+0.5%)` | :arrow_up: | | [src/mm/dbcsr\_mm.F](https://codecov.io/gh/cp2k/dbcsr/pull/641/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cp2k#diff-c3JjL21tL2RiY3NyX21tLkY=) | `87.2% <100.0%> (+0.2%)` | :arrow_up: | | [src/mm/dbcsr\_mm\_cannon.F](https://codecov.io/gh/cp2k/dbcsr/pull/641/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cp2k#diff-c3JjL21tL2RiY3NyX21tX2Nhbm5vbi5G) | `76.2% <100.0%> (ø)` | | | [src/mm/dbcsr\_mm\_csr.F](https://codecov.io/gh/cp2k/dbcsr/pull/641/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cp2k#diff-c3JjL21tL2RiY3NyX21tX2Nzci5G) | `77.6% <100.0%> (ø)` | | | [src/mm/dbcsr\_mm\_hostdrv.F](https://codecov.io/gh/cp2k/dbcsr/pull/641/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cp2k#diff-c3JjL21tL2RiY3NyX21tX2hvc3RkcnYuRg==) | `61.1% <100.0%> (ø)` | | | ... and [5 more](https://codecov.io/gh/cp2k/dbcsr/pull/641/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cp2k) | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cp2k). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cp2k)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.