Repository navigation
Walberla [Ready for testing/merging] - #309
Conversation
|
Test on Snellius: |
|
|
||
| def filter_scales_1M(): | ||
| """ | ||
| Filtering function for filtering scales for the waLBerla test |
There was a problem hiding this comment.
I'm a bit confused about what the filtering function does, but it seems this docstring doesn't match whatever is implemented there.
I think the part after the or gets all sizes with more than 1 core per node, i.e. effectively skipping the 1_core and 1_cpn_Xnodes scales. And then in addition, the part before the or gets the 1_node and 2_nodes scales?
Probably, the docstring should also explain why. Most MPI codes run fine if you start them with a single rank. Does this indeed not run at all with a single rank? If so, that should probably be explained in the docstring.
Similarly, please explain why we cap it at 2 nodes.
There was a problem hiding this comment.
This function is present to allow all scales up to 2 nodes. Further filtering is done based on the MPI tasks within the test. But indeed I can avoid the 2 and 4 cores completely to avoid skipped messages.
| from eessi.testsuite.utils import find_modules | ||
|
|
||
|
|
||
| def filter_scales_1M(): |
There was a problem hiding this comment.
This function name seems like it's copied from the OpenFOAM cases, but the 1M is probably meaningless here? Either remove that suffix, or make it more descriptive for this test case.
There was a problem hiding this comment.
Yep, this is addressed.
|
|
||
| @run_after('setup') | ||
| def check_launcher_options(self): | ||
| # We had to get the launcher command and prepend this to the prerun steps (func prepare_environment) because: |
There was a problem hiding this comment.
Docstring seems like it is for a different test. Is this hook still relevant for the current test? If so: why? The prerun_commands in this test don't have to be run with a parallel launcher, do they?
There was a problem hiding this comment.
This is was indeed required by OpenFOAM but since I do not use the launcher in any of the pre-run commands, I removed the whole function.
| raise NotImplementedError(msg) | ||
|
|
||
| def required_mem_per_node(self): | ||
| return self.num_tasks_per_node * 1700 |
There was a problem hiding this comment.
Is there really no offset?
There was a problem hiding this comment.
1700 is a slightly overestimated, therefore it includes the offset when the core-count is low, at higher core-counts it gets equivalent memory anyways.
There was a problem hiding this comment.
Just measured it. First is Rome + foss-2022b, then Rome + foss-2023a, then Genoa + foss-2023a (core count vs max memory usage in the cgroup):
8 1485
16 2507
32 4765
64 9394
128 19686
128 25651
8 884
16 1460
32 2507
64 4595
128 9172
128 10162
8 1803
24 3013
48 5592
96 10843
192 24009
This gives me 179.6x-673, 73.466+192, 121.9+79 in terms of linear equations. I'd say 300 MB per core + 400 MB offset is a very conservative estimate here.
| # ldc_64M = fixture(EESSI_OPENFOAM_base, scope='partition') | ||
| executable = '05_BackwardFacingStep' | ||
| executable_opts = ['05_BackwardFacingStep.prm'] | ||
| time_limit = '120m' |
There was a problem hiding this comment.
that's really long! Is that really needed?
There was a problem hiding this comment.
reduced it to 30m.
| This is the main walberla class for the backward facing step test. The test consists of steps that modify the input | ||
| file from the precompiled walberla tutorials binary. These are run as pre-run commands and the main test with the | ||
| executable `05_BackwardFacingStep` is measured for performance. | ||
| The code will run on one core but will take about an hour to run. |
There was a problem hiding this comment.
This should probably be adapted, and just state that this test will only run on scales that correspond to at least 8 cores and at most 384 cores. I think that's nice to say here explicitly because this docstring is the one that people are likely to read if they've tried reframe -t 4_cores and are wondering why this test is not instantiated.
|
| "pipeline stages": | ||
| https://reframe-hpc.readthedocs.io/en/stable/regression_test_api.html#pipeline-hooks | ||
|
|
||
| "test parameter": a list of values, which will generate different test variants. | ||
| https://reframe-hpc.readthedocs.io/en/stable/regression_test_api.html#reframe.core.builtins.parameter | ||
|
|
||
| "test variant": a version of a test with a specific value for each test parameter | ||
| https://reframe-hpc.readthedocs.io/en/stable/regression_test_api.html#test-variants | ||
|
|
||
| "concrete test cases": all test combinations that will actually run: | ||
| - test variants | ||
| - valid system:partition+programming environment combinations | ||
| https://reframe-hpc.readthedocs.io/en/stable/tutorial_deps.html#listing-dependencies | ||
|
|
||
| Tests can be filtered by name, tag, programming environment, system, partition, or maintainer, | ||
| see https://reframe-hpc.readthedocs.io/en/stable/manpage.html#test-filtering | ||
|
|
||
| Hooks acting on all possible test combinations (before filtering) are called after the 'init' stage. | ||
| Hooks acting on concrete test cases (after filtering) are called after the 'setup' stage. | ||
|
|
||
| See also https://reframe-hpc.readthedocs.io/en/stable/pipeline.html |
There was a problem hiding this comment.
I guess this comes from the mpi4py tutorial test or something, but I think we should take it out from here. Otherwise it'll end up in the autogenerated docs, and it doesn't really have a place there.
| "Launch of scale with larger core count") | ||
|
|
||
| @run_before('run') | ||
| def prepare_environment(self): |
There was a problem hiding this comment.
This should probably get a docstring. I'd keep it more high-level than the detailed sed-explaination, but just mention what it does ("modification of input files so that this example runs on multinode", I guesss?)
| and sn.path_isfile("./lbm/vtk_05_BackwardFacingStep/flag_field.pvd")) | ||
|
|
||
| @deferrable | ||
| def assert_completion(self): |
| and sn.assert_eq(n_time_steps, 15)) | ||
|
|
||
| @performance_function('s/timestep') | ||
| def perf(self): |
casparvl
left a comment
There was a problem hiding this comment.
Final test from yesterday
[ FAIL ] ( 1/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=2_nodes %device_type=cpu %module_name=waLBerla/6.1-foss-2022b /681fd169 @snellius:genoa+default
==> test failed during 'sanity': test staged in '/scratch-shared/casparl/reframe_output/staging/snellius/genoa/default/EESSI_WALBERLA_BACKWARD_FACING_STEP_681fd169'
[ FAIL ] ( 2/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=1_node %device_type=cpu %module_name=waLBerla/6.1-foss-2022b /3e207cc4 @snellius:genoa+default
==> test failed during 'sanity': test staged in '/scratch-shared/casparl/reframe_output/staging/snellius/genoa/default/EESSI_WALBERLA_BACKWARD_FACING_STEP_3e207cc4'
[ FAIL ] ( 3/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=1_4_node %device_type=cpu %module_name=waLBerla/6.1-foss-2022b /7af92696 @snellius:genoa+default
==> test failed during 'sanity': test staged in '/scratch-shared/casparl/reframe_output/staging/snellius/genoa/default/EESSI_WALBERLA_BACKWARD_FACING_STEP_7af92696'
[ FAIL ] ( 4/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=1_2_node %device_type=cpu %module_name=waLBerla/6.1-foss-2022b /1cfb187d @snellius:genoa+default
==> test failed during 'sanity': test staged in '/scratch-shared/casparl/reframe_output/staging/snellius/genoa/default/EESSI_WALBERLA_BACKWARD_FACING_STEP_1cfb187d'
[ FAIL ] ( 5/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=1_8_node %device_type=cpu %module_name=waLBerla/6.1-foss-2022b /fe23c249 @snellius:genoa+default
==> test failed during 'sanity': test staged in '/scratch-shared/casparl/reframe_output/staging/snellius/genoa/default/EESSI_WALBERLA_BACKWARD_FACING_STEP_fe23c249'
[ FAIL ] ( 6/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=8_cores %device_type=cpu %module_name=waLBerla/6.1-foss-2022b /aa2d2465 @snellius:genoa+default
==> test failed during 'sanity': test staged in '/scratch-shared/casparl/reframe_output/staging/snellius/genoa/default/EESSI_WALBERLA_BACKWARD_FACING_STEP_aa2d2465'
[ OK ] ( 7/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=1_node %device_type=cpu %module_name=waLBerla/6.1-foss-2023a /325781fd @snellius:genoa+default
P: perf: 8.35155610016993e-05 s/timestep (r:0, l:None, u:None)
[ OK ] ( 8/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=2_nodes %device_type=cpu %module_name=waLBerla/6.1-foss-2023a /a7d17ad4 @snellius:rome+default
P: perf: 0.00011376428571428572 s/timestep (r:0, l:None, u:None)
[ OK ] ( 9/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=2_nodes %device_type=cpu %module_name=waLBerla/6.1-foss-2022b /681fd169 @snellius:rome+default
P: perf: 0.00011677633968129457 s/timestep (r:0, l:None, u:None)
[ OK ] (10/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=1_node %device_type=cpu %module_name=waLBerla/6.1-foss-2023a /325781fd @snellius:rome+default
P: perf: 0.00015100183705729056 s/timestep (r:0, l:None, u:None)
[ OK ] (11/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=1_2_node %device_type=cpu %module_name=waLBerla/6.1-foss-2023a /78979c2a @snellius:genoa+default
P: perf: 0.0001241930357576151 s/timestep (r:0, l:None, u:None)
[ OK ] (12/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=1_node %device_type=cpu %module_name=waLBerla/6.1-foss-2022b /3e207cc4 @snellius:rome+default
P: perf: 0.00015286456386209645 s/timestep (r:0, l:None, u:None)
[ OK ] (13/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=1_4_node %device_type=cpu %module_name=waLBerla/6.1-foss-2023a /04b4d634 @snellius:genoa+default
P: perf: 0.00021728541156397062 s/timestep (r:0, l:None, u:None)
[ OK ] (14/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=1_2_node %device_type=cpu %module_name=waLBerla/6.1-foss-2023a /78979c2a @snellius:rome+default
P: perf: 0.00026449661140124053 s/timestep (r:0, l:None, u:None)
[ OK ] (15/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=1_2_node %device_type=cpu %module_name=waLBerla/6.1-foss-2022b /1cfb187d @snellius:rome+default
P: perf: 0.00026321328186989796 s/timestep (r:0, l:None, u:None)
[ OK ] (16/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=1_8_node %device_type=cpu %module_name=waLBerla/6.1-foss-2023a /96fae70d @snellius:genoa+default
P: perf: 0.0004065604175057282 s/timestep (r:0, l:None, u:None)
[ OK ] (17/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=2_nodes %device_type=cpu %module_name=waLBerla/6.1-foss-2023a /a7d17ad4 @snellius:genoa+default
P: perf: 8.320714285714285e-05 s/timestep (r:0, l:None, u:None)
[ OK ] (18/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=1_4_node %device_type=cpu %module_name=waLBerla/6.1-foss-2023a /04b4d634 @snellius:rome+default
P: perf: 0.0004972804789059755 s/timestep (r:0, l:None, u:None)
[ OK ] (19/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=1_4_node %device_type=cpu %module_name=waLBerla/6.1-foss-2022b /7af92696 @snellius:rome+default
P: perf: 0.0004938711841663871 s/timestep (r:0, l:None, u:None)
[ OK ] (20/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=8_cores %device_type=cpu %module_name=waLBerla/6.1-foss-2023a /b1f3f82b @snellius:genoa+default
P: perf: 0.0013704704701343962 s/timestep (r:0, l:None, u:None)
[ OK ] (21/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=1_8_node %device_type=cpu %module_name=waLBerla/6.1-foss-2023a /96fae70d @snellius:rome+default
P: perf: 0.0017889465912629453 s/timestep (r:0, l:None, u:None)
[ OK ] (22/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=1_8_node %device_type=cpu %module_name=waLBerla/6.1-foss-2022b /fe23c249 @snellius:rome+default
P: perf: 0.001811881815453363 s/timestep (r:0, l:None, u:None)
[ OK ] (23/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=8_cores %device_type=cpu %module_name=waLBerla/6.1-foss-2023a /b1f3f82b @snellius:rome+default
P: perf: 0.0032986210604709566 s/timestep (r:0, l:None, u:None)
[ OK ] (24/24) EESSI_WALBERLA_BACKWARD_FACING_STEP %scale=8_cores %device_type=cpu %module_name=waLBerla/6.1-foss-2022b /aa2d2465 @snellius:rome+default
P: perf: 0.003307381331517294 s/timestep (r:0, l:None, u:None)
This is completely fine: the failures with foss-2022b on Genoa (=zen4) are expected, because foss-2022b is not supported on zen4.

This is a pure walberla test case, taken and modified a bit based on their own lbm tutorials.