-
Notifications
You must be signed in to change notification settings - Fork 117
[test] Update tests for QuantumESPRESSO 6.5 #1270
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d12e678
QuantumESPRESSO 6.5 checks
af57246
Merge branch 'master' of github.com:eth-cscs/reframe into quantumespr…
6e99a93
Update energy and get wall time
aadbef7
Renaming folder as quantumespresso
ac0251e
Updated reference performance
48f3f98
Updated modulefiles
7bb8028
Line 42:80: E501 line too long (85 > 79 characters)
0573eda
Merge branch 'master' into quantumespresso
49be457
Update cscs-checks/apps/quantumespresso/quantumespresso_check.py
lucamar c98803f
Update cscs-checks/apps/quantumespresso/quantumespresso_check.py
lucamar 4b38654
Merge branch 'master' of github.com:eth-cscs/reframe into quantumespr…
2ee81f3
Appending sanity_patterns in subclasses
fbbb852
Merge branch 'master' of github.com:eth-cscs/reframe into quantumespr…
3531a65
Adjusting sanity_patterns as suggested
a5b21f4
Remove stale QE test file
8987410
Merge branch 'master' into quantumespresso
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
139 changes: 139 additions & 0 deletions
139
cscs-checks/apps/quantumespresso/quantumespresso_check.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,139 @@ | ||
| # Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich) | ||
| # ReFrame Project Developers. See the top-level LICENSE file for details. | ||
| # | ||
| # SPDX-License-Identifier: BSD-3-Clause | ||
|
|
||
| import os | ||
| import reframe as rfm | ||
| import reframe.utility.sanity as sn | ||
|
|
||
|
|
||
| class QuantumESPRESSOCheck(rfm.RunOnlyRegressionTest): | ||
| def __init__(self): | ||
| self.valid_prog_environs = ['builtin'] | ||
| self.executable = 'pw.x' | ||
| self.executable_opts = ['-in', 'ausurf.in'] | ||
|
|
||
| self.sanity_patterns = sn.all([ | ||
| sn.assert_found(r'convergence has been achieved', self.stdout), | ||
| ]) | ||
|
|
||
| self.perf_patterns = { | ||
| 'time': sn.extractsingle(r'electrons.+\s(?P<wtime>\S+)s WALL', | ||
| self.stdout, 'wtime', float) | ||
| } | ||
|
|
||
| self.maintainers = ['LM'] | ||
| self.tags = {'scs'} | ||
| self.strict_check = False | ||
| self.extra_resources = { | ||
| 'switches': { | ||
| 'num_switches': 1 | ||
| } | ||
| } | ||
|
|
||
|
|
||
| @rfm.parameterized_test(*([s, v] | ||
| for s in ['small', 'large'] | ||
| for v in ['maint', 'prod'])) | ||
| class QuantumESPRESSOCpuCheck(QuantumESPRESSOCheck): | ||
| def __init__(self, scale, variant): | ||
| super().__init__() | ||
| self.descr = f'QuantumESPRESSO CPU check (version: {scale}, {variant})' | ||
| self.valid_systems = ['daint:mc'] | ||
| self.modules = ['QuantumESPRESSO/6.5-CrayIntel-19.10'] | ||
| if scale == 'small': | ||
| self.valid_systems += ['dom:mc'] | ||
| self.num_tasks = 216 | ||
| energy_reference = -11427.09017162 | ||
| else: | ||
| self.num_tasks = 576 | ||
| energy_reference = -11427.09017152 | ||
|
|
||
| self.num_tasks_per_node = 36 | ||
|
|
||
| energy = sn.extractsingle(r'!\s+total energy\s+=\s+(?P<energy>\S+) Ry', | ||
| self.stdout, 'energy', float) | ||
| energy_diff = sn.abs(energy-energy_reference) | ||
| self.sanity_patterns = sn.all([ | ||
| self.sanity_patterns, | ||
| sn.assert_lt(energy_diff, 1e-8) | ||
| ]) | ||
|
|
||
| references = { | ||
| 'maint': { | ||
| 'small': { | ||
| 'dom:mc': {'time': (115.0, None, 0.05, 's')}, | ||
| 'daint:mc': {'time': (115.0, None, 0.10, 's')} | ||
| }, | ||
| 'large': { | ||
| 'daint:mc': {'time': (115.0, None, 0.10, 's')} | ||
| } | ||
| }, | ||
| 'prod': { | ||
| 'small': { | ||
| 'dom:mc': {'time': (115.0, None, 0.05, 's')}, | ||
| 'daint:mc': {'time': (115.0, None, 0.10, 's')} | ||
| }, | ||
| 'large': { | ||
| 'daint:mc': {'time': (115.0, None, 0.10, 's')} | ||
| } | ||
| } | ||
| } | ||
|
|
||
| self.reference = references[variant][scale] | ||
| self.tags |= {'maintenance' if variant == 'maint' else 'production'} | ||
|
|
||
|
|
||
| @rfm.parameterized_test(*([s, v] | ||
| for s in ['small', 'large'] | ||
| for v in ['maint', 'prod'])) | ||
| class QuantumESPRESSOGpuCheck(QuantumESPRESSOCheck): | ||
| def __init__(self, scale, variant): | ||
| super().__init__() | ||
| self.descr = f'QuantumESPRESSO GPU check (version: {scale}, {variant})' | ||
| self.valid_systems = ['daint:gpu'] | ||
| self.modules = ['QuantumESPRESSO/6.5a1-CrayPGI-19.10-cuda-10.1'] | ||
| self.num_gpus_per_node = 1 | ||
| if scale == 'small': | ||
| self.valid_systems += ['dom:gpu'] | ||
| self.num_tasks = 6 | ||
| energy_reference = -11427.09017176 | ||
| else: | ||
| self.num_tasks = 16 | ||
| energy_reference = -11427.09017179 | ||
|
|
||
| self.num_tasks_per_node = 1 | ||
| self.num_cpus_per_task = 12 | ||
|
|
||
| energy = sn.extractsingle(r'!\s+total energy\s+=\s+(?P<energy>\S+) Ry', | ||
| self.stdout, 'energy', float) | ||
| energy_diff = sn.abs(energy-energy_reference) | ||
| self.sanity_patterns = sn.all([ | ||
| self.sanity_patterns, | ||
| sn.assert_lt(energy_diff, 1e-8) | ||
| ]) | ||
|
|
||
| references = { | ||
| 'maint': { | ||
| 'small': { | ||
| 'dom:gpu': {'time': (60.0, None, 0.05, 's')}, | ||
| 'daint:gpu': {'time': (60.0, None, 0.10, 's')} | ||
| }, | ||
| 'large': { | ||
| 'daint:gpu': {'time': (60.0, None, 0.10, 's')} | ||
| } | ||
| }, | ||
| 'prod': { | ||
| 'small': { | ||
| 'dom:gpu': {'time': (60.0, None, 0.05, 's')}, | ||
| 'daint:gpu': {'time': (60.0, None, 0.10, 's')} | ||
| }, | ||
| 'large': { | ||
| 'daint:gpu': {'time': (60.0, None, 0.10, 's')} | ||
| } | ||
| } | ||
| } | ||
|
|
||
| self.reference = references[variant][scale] | ||
| self.tags |= {'maintenance' if variant == 'maint' else 'production'} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.