Skip to content

Add lbmpy-pssrt test - #308

Merged
satishskamath merged 10 commits into
EESSI:mainfrom
casparvl:lbmpy-pssrt
Dec 18, 2025
Merged

satishskamath merged 10 commits into
EESSI:mainfrom
casparvl:lbmpy-pssrt

Conversation

@casparvl

@casparvl casparvl commented Dec 10, 2025 •

Copy link
Copy Markdown
Collaborator

To run this, you need lbmpy-pssrt installed. Easiest way to do it is building it on top with the following EasyConfigs:

pystencils-1.4-gfbf-2023b.eb

easyblock = 'PythonBundle'

name = 'pystencils'
version = '1.4'

homepage = 'https://pycodegen.pages.i10git.cs.fau.de/pystencils'
description = "pystencils uses sympy to define stencil operations, that can be executed on numpy arrays"

toolchain = {'name': 'gfbf', 'version': '2023b'}

dependencies = [
    ('Python', '3.11.5'),
    ('SciPy-bundle', '2023.11'),
    ('sympy', '1.12'),
    ('PyYAML', '6.0.1'),
]

# Fix license format
# local_preinstallopts = """
# sed -i -e '/^license-files\s*=/d' \
#  -e '/^\[tool.setuptools\]/a license-files = ["LICENSE"]' \
#  -e '$ { $!b; $a\
# \
# [tool.setuptools]\
# license-files = ["LICENSE"]\
# }' pyproject.toml
# """
# Removes license-files statement, as it's in the wrong place
# Then, reinserts it into a tools.setuptools section at the end of the pyproject.toml
local_fix_license_file = """
sed -i '/^license-files\s*=\s*\["LICENSE"\]/d' pyproject.toml &&
echo -e "\n[tool.setuptools]\nlicense-files = [\\"LICENSE\\"]" >> pyproject.toml &&
"""
# Make sure license is a dict, not a string
local_fix_license = """sed -i 's/^license = \"\(.*\)\"/license = { text = "\\1" }/' pyproject.toml && """
# Remove strict version requirement for sympy
local_fix_sympyver= """sed -i 's/"sympy[^"]*"/"sympy"/g' pyproject.toml && """

exts_list = [
    ('fasteners', '0.20', {
        'preinstallopts': local_fix_license,
    }),
    (name, version, {
        'preinstallopts': '%s %s %s' % (local_fix_license, local_fix_license_file, local_fix_sympyver),
        'checksums': ['0a5c362c1208d1f24932c6b8d22a171e5ae8e3c84049d44fffb50bfc3dbdc7d6'],
    }),
]

moduleclass = 'math'

lbmpy-pssrt-1.4-foss-2023b.eb

easyblock = 'PythonPackage'

name = 'lbmpy-pssrt'
version = '1.4'

homepage = 'https://github.com/multixscale/multiXscale-lbmpy/tree/population_space'
description = """Code Generation for Lattice Boltzmann Methods, with population space single relaxation time"""

toolchain = {'name': 'foss', 'version': '2023b'}

source_urls = ['https://github.com/multixscale/multiXscale-lbmpy/archive/refs/tags/']
sources = ['pssrt-v1.0.tar.gz']
checksums = ['b7e2a99d578725ba0ed1b210d26eb7b1a44a8df7340fdd670fdb3799bf6b8a19']

dependencies = [
    ('Python', '3.11.5'),
    ('pystencils', '1.4'),
]

# Make sure the [project] section doesn't contain license-files, but move it to [tool.setuptools]
preinstallopts = """
sed -i '/^license-files\s*=\s*\["LICENSE"\]/d' pyproject.toml &&
echo -e "\n[tool.setuptools]\nlicense-files = [\\"LICENSE\\"]" >> pyproject.toml &&
"""
# Make sure license is a dict, not a string
preinstallopts += """sed -i 's/^license = \"\(.*\)\"/license = { text = "\\1" }/' pyproject.toml && """

options = {'modulename': 'lbmpy'}

sanity_check_paths = {
    'files': ['lib/python%(pyshortver)s/site-packages/lbmpy/__init__.py'],
    'dirs': ['lib/python%(pyshortver)s/site-packages'],
}

moduleclass = 'chem'

Then, install one-by-one with

module load EESSI/2023.06
module load EESSI-extend/2023.06-easybuild
eb pystencils-1.4-gfbf-2023b.eb
eb lbmpy-pssrt-1.4-foss-2023b.eb

Make sure to load EESSI-extend in the batch evironment, either by modifying you're partitions prepare_cmds in the reframe config, or just putting

module load EESSI/2023.06
module load EESSI-extend/2023.06-easybuild

in your .bashrc temporarily.

@casparvl
casparvl marked this pull request as draft December 10, 2025 16:58
@casparvl
casparvl marked this pull request as ready for review December 10, 2025 19:44
@casparvl
casparvl marked this pull request as draft December 10, 2025 19:44
@casparvl

Copy link
Copy Markdown
Collaborator Author

Still need to set a reasonable memory requirement and a docstring to describe the test case

@casparvl
casparvl marked this pull request as ready for review December 11, 2025 09:15
@laraPPr

laraPPr commented Dec 16, 2025

Copy link
Copy Markdown
Collaborator
{EESSI 2023.06} (venv_rhel9_test-suite) [vsc46128@login57 test-suite]$ reframe --run --name lbmpy-pssrt

WARNING: redefinition of partition 'hortense:cpu_milan_rhel9': already defined in '/dodrio/scratch/projects/gt1_dodrio_vscadmins/vsc46128/EESSI/test-suite/config/vsc_hortense.py'

[ReFrame Setup]

  version:           4.8.1

  command:           '/dodrio/scratch/projects/gt1_dodrio_vscadmins/vsc46128/EESSI/venv_rhel9_test-suite/bin/reframe --run --name lbmpy-pssrt'

  launched by:       [email protected]

  working directory: '/dodrio/scratch/projects/gt1_dodrio_vscadmins/vsc46128/EESSI/test-suite'

  settings files:    '<builtin>', '/dodrio/scratch/projects/gt1_dodrio_vscadmins/vsc46128/EESSI/test-suite/config/vsc_hortense.py'

  selected system:   'hortense'

  check search path: (R) '/dodrio/scratch/projects/gt1_dodrio_vscadmins/vsc46128/EESSI/test-suite/eessi/testsuite/tests/apps'

  stage directory:   '/dodrio/scratch/projects/gt1_dodrio_vscadmins/EESSI/reframe-prefix/stage'

  output directory:  '/dodrio/scratch/projects/gt1_dodrio_vscadmins/EESSI/reframe-prefix/output'

  log files:         '/dodrio/scratch/projects/gt1_dodrio_vscadmins/EESSI/reframe-prefix/logs/reframe_20251216_143253.log'

  results database:  [off] '/dodrio/scratch/users/vsc46128/.reframe/reports/results.db'



== Temporary log file in case of crash /tmp/eb-l_oxdnc9/easybuild-r6zz4wju.log

WARNING: skipping test 'EESSI_PyTorch_torchvision_CPU': the following parameters are undefined: module_name

WARNING: skipping test 'EESSI_PyTorch_torchvision_GPU': the following parameters are undefined: module_name

[==========] Running 8 check(s)

[==========] Started on Tue Dec 16 14:33:08 2025+0100



[----------] start processing checks

[ RUN      ] EESSI_lbmpy_pssrt %scale=1_core %module_name=lbmpy-pssrt/1.4-foss-2023b /66445a96 @hortense:cpu_rome_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=1_core %module_name=lbmpy-pssrt/1.4-foss-2023b /66445a96 @hortense:cpu_rome_512_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=1_core %module_name=lbmpy-pssrt/1.4-foss-2023b /66445a96 @hortense:cpu_milan_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=2_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /384daebd @hortense:cpu_rome_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=2_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /384daebd @hortense:cpu_rome_512_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=2_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /384daebd @hortense:cpu_milan_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=4_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /72a2bf6d @hortense:cpu_rome_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=4_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /72a2bf6d @hortense:cpu_rome_512_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=4_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /72a2bf6d @hortense:cpu_milan_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=8_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /8e338e93 @hortense:cpu_rome_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=8_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /8e338e93 @hortense:cpu_rome_512_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=8_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /8e338e93 @hortense:cpu_milan_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=1_8_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0c6c5f35 @hortense:cpu_rome_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=1_8_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0c6c5f35 @hortense:cpu_rome_512_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=1_8_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0c6c5f35 @hortense:cpu_milan_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=1_4_node %module_name=lbmpy-pssrt/1.4-foss-2023b /ad812256 @hortense:cpu_rome_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=1_4_node %module_name=lbmpy-pssrt/1.4-foss-2023b /ad812256 @hortense:cpu_rome_512_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=1_4_node %module_name=lbmpy-pssrt/1.4-foss-2023b /ad812256 @hortense:cpu_milan_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=1_2_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0156ebe1 @hortense:cpu_rome_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=1_2_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0156ebe1 @hortense:cpu_rome_512_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=1_2_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0156ebe1 @hortense:cpu_milan_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=1_node %module_name=lbmpy-pssrt/1.4-foss-2023b /f5e613fb @hortense:cpu_rome_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=1_node %module_name=lbmpy-pssrt/1.4-foss-2023b /f5e613fb @hortense:cpu_rome_512_rhel9+default

[ RUN      ] EESSI_lbmpy_pssrt %scale=1_node %module_name=lbmpy-pssrt/1.4-foss-2023b /f5e613fb @hortense:cpu_milan_rhel9+default

[       OK ] ( 1/24) EESSI_lbmpy_pssrt %scale=1_8_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0c6c5f35 @hortense:cpu_milan_rhel9+default

P: lattice_updates: 650.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 13.49 MLU/s (r:0, l:None, u:None)

[       OK ] ( 2/24) EESSI_lbmpy_pssrt %scale=1_4_node %module_name=lbmpy-pssrt/1.4-foss-2023b /ad812256 @hortense:cpu_rome_rhel9+default

P: lattice_updates: 799.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 18.94 MLU/s (r:0, l:None, u:None)

[       OK ] ( 3/24) EESSI_lbmpy_pssrt %scale=1_4_node %module_name=lbmpy-pssrt/1.4-foss-2023b /ad812256 @hortense:cpu_rome_512_rhel9+default

P: lattice_updates: 774.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 6.35 MLU/s (r:0, l:None, u:None)

[       OK ] ( 4/24) EESSI_lbmpy_pssrt %scale=1_4_node %module_name=lbmpy-pssrt/1.4-foss-2023b /ad812256 @hortense:cpu_milan_rhel9+default

P: lattice_updates: 877.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 5.16 MLU/s (r:0, l:None, u:None)

[       OK ] ( 5/24) EESSI_lbmpy_pssrt %scale=1_2_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0156ebe1 @hortense:cpu_rome_rhel9+default

P: lattice_updates: 1092.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 32.98 MLU/s (r:0, l:None, u:None)

[       OK ] ( 6/24) EESSI_lbmpy_pssrt %scale=1_2_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0156ebe1 @hortense:cpu_rome_512_rhel9+default

P: lattice_updates: 1100.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 17.41 MLU/s (r:0, l:None, u:None)

[       OK ] ( 7/24) EESSI_lbmpy_pssrt %scale=1_2_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0156ebe1 @hortense:cpu_milan_rhel9+default

P: lattice_updates: 927.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 51.06 MLU/s (r:0, l:None, u:None)

[       OK ] ( 8/24) EESSI_lbmpy_pssrt %scale=1_node %module_name=lbmpy-pssrt/1.4-foss-2023b /f5e613fb @hortense:cpu_milan_rhel9+default

P: lattice_updates: 791.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 74.36 MLU/s (r:0, l:None, u:None)

[       OK ] ( 9/24) EESSI_lbmpy_pssrt %scale=1_8_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0c6c5f35 @hortense:cpu_rome_rhel9+default

P: lattice_updates: 481.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 26.84 MLU/s (r:0, l:None, u:None)

[       OK ] (10/24) EESSI_lbmpy_pssrt %scale=1_8_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0c6c5f35 @hortense:cpu_rome_512_rhel9+default

P: lattice_updates: 461.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 12.27 MLU/s (r:0, l:None, u:None)

[       OK ] (11/24) EESSI_lbmpy_pssrt %scale=1_node %module_name=lbmpy-pssrt/1.4-foss-2023b /f5e613fb @hortense:cpu_rome_512_rhel9+default

P: lattice_updates: 734.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 112.59 MLU/s (r:0, l:None, u:None)

[       OK ] (12/24) EESSI_lbmpy_pssrt %scale=1_node %module_name=lbmpy-pssrt/1.4-foss-2023b /f5e613fb @hortense:cpu_rome_rhel9+default

P: lattice_updates: 926.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 73.44 MLU/s (r:0, l:None, u:None)

[       OK ] (13/24) EESSI_lbmpy_pssrt %scale=8_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /8e338e93 @hortense:cpu_milan_rhel9+default

P: lattice_updates: 250.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 53.38 MLU/s (r:0, l:None, u:None)

[       OK ] (14/24) EESSI_lbmpy_pssrt %scale=8_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /8e338e93 @hortense:cpu_rome_rhel9+default

P: lattice_updates: 169.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 22.06 MLU/s (r:0, l:None, u:None)

[       OK ] (15/24) EESSI_lbmpy_pssrt %scale=8_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /8e338e93 @hortense:cpu_rome_512_rhel9+default

P: lattice_updates: 127.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 0.68 MLU/s (r:0, l:None, u:None)

[       OK ] (16/24) EESSI_lbmpy_pssrt %scale=4_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /72a2bf6d @hortense:cpu_milan_rhel9+default

P: lattice_updates: 149.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 42.94 MLU/s (r:0, l:None, u:None)

[       OK ] (17/24) EESSI_lbmpy_pssrt %scale=4_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /72a2bf6d @hortense:cpu_rome_rhel9+default

P: lattice_updates: 73.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 0.28 MLU/s (r:0, l:None, u:None)

[       OK ] (18/24) EESSI_lbmpy_pssrt %scale=2_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /384daebd @hortense:cpu_rome_512_rhel9+default

P: lattice_updates: 60.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 1.62 MLU/s (r:0, l:None, u:None)

[       OK ] (19/24) EESSI_lbmpy_pssrt %scale=4_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /72a2bf6d @hortense:cpu_rome_512_rhel9+default

P: lattice_updates: 118.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 0.3 MLU/s (r:0, l:None, u:None)

[       OK ] (20/24) EESSI_lbmpy_pssrt %scale=1_core %module_name=lbmpy-pssrt/1.4-foss-2023b /66445a96 @hortense:cpu_rome_512_rhel9+default

P: lattice_updates: 56.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 34.32 MLU/s (r:0, l:None, u:None)

[       OK ] (21/24) EESSI_lbmpy_pssrt %scale=2_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /384daebd @hortense:cpu_milan_rhel9+default

P: lattice_updates: 90.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 2.44 MLU/s (r:0, l:None, u:None)

[       OK ] (22/24) EESSI_lbmpy_pssrt %scale=1_core %module_name=lbmpy-pssrt/1.4-foss-2023b /66445a96 @hortense:cpu_milan_rhel9+default

P: lattice_updates: 76.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 28.52 MLU/s (r:0, l:None, u:None)

[       OK ] (23/24) EESSI_lbmpy_pssrt %scale=2_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /384daebd @hortense:cpu_rome_rhel9+default

P: lattice_updates: 64.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 0.46 MLU/s (r:0, l:None, u:None)

[       OK ] (24/24) EESSI_lbmpy_pssrt %scale=1_core %module_name=lbmpy-pssrt/1.4-foss-2023b /66445a96 @hortense:cpu_rome_rhel9+default

P: lattice_updates: 80.0 MLU/s (r:0, l:None, u:None)

P: lattice_updates_range: 30.8 MLU/s (r:0, l:None, u:None)

[----------] all spawned checks have finished



[  PASSED  ] Ran 24/24 test case(s) from 8 check(s) (0 failure(s), 0 skipped, 0 aborted)

[==========] Finished on Tue Dec 16 14:35:50 2025+0100

Log file(s) saved in '/dodrio/scratch/projects/gt1_dodrio_vscadmins/EESSI/reframe-prefix/logs/reframe_20251216_143253.log'


launcher = 'local' # no MPI module is loaded in this test

# ReFrame will generate a test for each module that matches the regex `mpi4py`

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not mpi4py, should be lbmpy_pssrt.

@@ -0,0 +1,114 @@
"""
This module tests mpi4py's MPI_Reduce call

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please modify this since this is inaccurate. Test is not for mpi4py .

check needs to be updated. The reference does _not_ change with the number of threads.
"""

# LPC3D is only parallelized with OpenMP, so no multi-node tests should be ran

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not LPC3D.


device_type = DEVICE_TYPES.CPU

# LPC3D is only OpenMP parallel, so launch only one task on a node

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not LPC3D.

@satishskamath

Copy link
Copy Markdown
Collaborator
[satishk@tcn3 projects]$ reframe -C eessi_reframe/settings_example.py -c /gpfs/home5/satishk/projects/test-suite/eessi/testsuite/tests/apps/lbmpy-pssrt/lbmpy-pssrt.py  --system=snellius_eessi:cpu_rome --run
[ReFrame Setup]
  version:           4.6.2
  command:           '/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/software/ReFrame/4.6.2/bin/reframe -C eessi_reframe/settings_example.py -c /gpfs/home5/satishk/projects/test-suite/eessi/testsuite/tests/apps/lbmpy-pssrt/lbmpy-pssrt.py --system=snellius_eessi:cpu_rome --run'
  launched by:       [email protected]
  working directory: '/gpfs/home5/satishk/projects'
  settings files:    '<builtin>', 'eessi_reframe/settings_example.py'
  check search path: '/gpfs/home5/satishk/projects/test-suite/eessi/testsuite/tests/apps/lbmpy-pssrt/lbmpy-pssrt.py'
  stage directory:   '/projects/0/reframe5/satishk'
  output directory:  '/gpfs/home5/satishk/projects/output'
  log files:         '/gpfs/home5/satishk/projects/reframe.log'

== Temporary log file in case of crash /tmp/eb-arln4bt0/easybuild-dgdn8x2c.log
[==========] Running 8 check(s)
[==========] Started on Wed Dec 17 16:35:28 2025+0100

[----------] start processing checks
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_node %module_name=lbmpy-pssrt/1.4-foss-2023b /f5e613fb @snellius_eessi:cpu_rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_2_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0156ebe1 @snellius_eessi:cpu_rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_4_node %module_name=lbmpy-pssrt/1.4-foss-2023b /ad812256 @snellius_eessi:cpu_rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_8_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0c6c5f35 @snellius_eessi:cpu_rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=8_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /8e338e93 @snellius_eessi:cpu_rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=4_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /72a2bf6d @snellius_eessi:cpu_rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=2_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /384daebd @snellius_eessi:cpu_rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_core %module_name=lbmpy-pssrt/1.4-foss-2023b /66445a96 @snellius_eessi:cpu_rome+default
[       OK ] (1/8) EESSI_lbmpy_pssrt %scale=1_2_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0156ebe1 @snellius_eessi:cpu_rome+default
P: lattice_updates: 937.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 62.58 MLU/s (r:0, l:None, u:None)
[       OK ] (2/8) EESSI_lbmpy_pssrt %scale=1_4_node %module_name=lbmpy-pssrt/1.4-foss-2023b /ad812256 @snellius_eessi:cpu_rome+default
P: lattice_updates: 693.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 31.82 MLU/s (r:0, l:None, u:None)
[       OK ] (3/8) EESSI_lbmpy_pssrt %scale=1_8_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0c6c5f35 @snellius_eessi:cpu_rome+default
P: lattice_updates: 408.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 1.32 MLU/s (r:0, l:None, u:None)
[       OK ] (4/8) EESSI_lbmpy_pssrt %scale=8_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /8e338e93 @snellius_eessi:cpu_rome+default
P: lattice_updates: 199.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 7.27 MLU/s (r:0, l:None, u:None)
[       OK ] (5/8) EESSI_lbmpy_pssrt %scale=4_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /72a2bf6d @snellius_eessi:cpu_rome+default
P: lattice_updates: 114.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 0.23 MLU/s (r:0, l:None, u:None)
[       OK ] (6/8) EESSI_lbmpy_pssrt %scale=1_core %module_name=lbmpy-pssrt/1.4-foss-2023b /66445a96 @snellius_eessi:cpu_rome+default
P: lattice_updates: 71.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 0.78 MLU/s (r:0, l:None, u:None)
[       OK ] (7/8) EESSI_lbmpy_pssrt %scale=2_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /384daebd @snellius_eessi:cpu_rome+default
P: lattice_updates: 58.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 0.27 MLU/s (r:0, l:None, u:None)
[       OK ] (8/8) EESSI_lbmpy_pssrt %scale=1_node %module_name=lbmpy-pssrt/1.4-foss-2023b /f5e613fb @snellius_eessi:cpu_rome+default
P: lattice_updates: 17.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 3.74 MLU/s (r:0, l:None, u:None)
[----------] all spawned checks have finished

[  PASSED  ] Ran 8/8 test case(s) from 8 check(s) (0 failure(s), 0 skipped, 0 aborted)
[==========] Finished on Wed Dec 17 16:40:29 2025+0100
Log file(s) saved in '/gpfs/home5/satishk/projects/reframe.log'

All tests passed on rome. Only minor question would be why does the performance drop when a full node is used.

@satishskamath

satishskamath commented Dec 17, 2025 •

Copy link
Copy Markdown
Collaborator

Answer to my own question regarding the performance drop when we run on a full node is as follows:
Since the launcher is local, the thread binding actually does not take place since MPI is not in charge of the threads anymore:

export OMP_NUM_THREADS=128
export I_MPI_PIN_CELL=core
export I_MPI_PIN_DOMAIN=128:compact
export OMPI_MCA_rmaps_base_mapping_policy=slot:PE=128
python mixing_layer_2D.py --grid-size 512 --openmp

Is it feasible to add further env variables when this is the case at the level of mixin class or should we do this on a test to test basis? This is because the nature of the binding can also affect performance based on the kind of the binding provided.

export OMP_PLACES=cores
export OMP_PROC_BIND=true

Difference in performance on Snellius is clear:

	Evaluated for 5 instances of the stream-collide operation
            Median±(max-min) = 1119±160.10 MLUPS

with binding vs

	Evaluated for 5 instances of the stream-collide operation
            Median±(max-min) = 17±0.22 MLUPS

without binding.

@casparvl

Copy link
Copy Markdown
Collaborator Author

Hmmm, I did see performance drops, but not this massive. I did notice things were much better if i used a few threads less. Eg 124 instead of 128. I assumed there might have been background threads active, causing a small oversubscription, which causes thread movement and cache trashing. That could still be the case. But mitigated by the binding due to the threads not moving. The tricky part is that binding can sometimes also penalize performance for certain software (eg tensorflow) because all threads get bound to the first core there. So I'm not sure about putting it in the mixing class. Though we could still make it configurable through a property I guess. I'll think about it

@satishskamath

Copy link
Copy Markdown
Collaborator

The tricky part is that binding can sometimes also penalize performance for certain software (eg tensorflow) because all threads get bound to the first core there. So I'm not sure about putting it in the mixing class. Though we could still make it configurable through a property I guess. I'll think about it.

Indeed, I also think that the type of OpenMP spreading also depends on the application and sometimes also the architecture that one is running on but we can indeed make it configurable. If it is good for their application and the arch, then people can include it and modify it based on the best performance that can be achieved.

@casparvl

casparvl commented Dec 18, 2025 •

Copy link
Copy Markdown
Collaborator Author

@satishskamath I've fixed the docstrings and set compact thread binding - much better performance now at full node scale.

Rome

[==========] Started on Thu Dec 18 17:58:34 2025+0100

[----------] start processing checks
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_node %module_name=lbmpy-pssrt/1.4-foss-2023b /f5e613fb @snellius:rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_2_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0156ebe1 @snellius:rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_4_node %module_name=lbmpy-pssrt/1.4-foss-2023b /ad812256 @snellius:rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_8_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0c6c5f35 @snellius:rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=8_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /8e338e93 @snellius:rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=4_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /72a2bf6d @snellius:rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=2_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /384daebd @snellius:rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_core %module_name=lbmpy-pssrt/1.4-foss-2023b /66445a96 @snellius:rome+default
[       OK ] (1/8) EESSI_lbmpy_pssrt %scale=1_node %module_name=lbmpy-pssrt/1.4-foss-2023b /f5e613fb @snellius:rome+default
P: lattice_updates: 1106.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 142.51 MLU/s (r:0, l:None, u:None)
[       OK ] (2/8) EESSI_lbmpy_pssrt %scale=1_2_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0156ebe1 @snellius:rome+default
P: lattice_updates: 1042.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 77.72 MLU/s (r:0, l:None, u:None)
[       OK ] (3/8) EESSI_lbmpy_pssrt %scale=1_4_node %module_name=lbmpy-pssrt/1.4-foss-2023b /ad812256 @snellius:rome+default
P: lattice_updates: 717.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 56.07 MLU/s (r:0, l:None, u:None)
[       OK ] (4/8) EESSI_lbmpy_pssrt %scale=1_8_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0c6c5f35 @snellius:rome+default
P: lattice_updates: 414.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 1.58 MLU/s (r:0, l:None, u:None)
[       OK ] (5/8) EESSI_lbmpy_pssrt %scale=8_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /8e338e93 @snellius:rome+default
P: lattice_updates: 160.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 3.05 MLU/s (r:0, l:None, u:None)
[       OK ] (6/8) EESSI_lbmpy_pssrt %scale=4_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /72a2bf6d @snellius:rome+default
P: lattice_updates: 110.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 0.69 MLU/s (r:0, l:None, u:None)
[       OK ] (7/8) EESSI_lbmpy_pssrt %scale=1_core %module_name=lbmpy-pssrt/1.4-foss-2023b /66445a96 @snellius:rome+default
P: lattice_updates: 69.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 0.29 MLU/s (r:0, l:None, u:None)
[       OK ] (8/8) EESSI_lbmpy_pssrt %scale=2_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /384daebd @snellius:rome+default
P: lattice_updates: 59.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 0.41 MLU/s (r:0, l:None, u:None)
[----------] all spawned checks have finished

[  PASSED  ] Ran 8/8 test case(s) from 8 check(s) (0 failure(s), 0 skipped, 0 aborted)

Genoa

[----------] start processing checks
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_node %module_name=lbmpy-pssrt/1.4-foss-2023b /f5e613fb @snellius:genoa+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_2_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0156ebe1 @snellius:genoa+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_4_node %module_name=lbmpy-pssrt/1.4-foss-2023b /ad812256 @snellius:genoa+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_8_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0c6c5f35 @snellius:genoa+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=8_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /8e338e93 @snellius:genoa+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=4_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /72a2bf6d @snellius:genoa+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=2_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /384daebd @snellius:genoa+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_core %module_name=lbmpy-pssrt/1.4-foss-2023b /66445a96 @snellius:genoa+default
[       OK ] (1/8) EESSI_lbmpy_pssrt %scale=1_node %module_name=lbmpy-pssrt/1.4-foss-2023b /f5e613fb @snellius:genoa+default
P: lattice_updates: 1085.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 713.69 MLU/s (r:0, l:None, u:None)
[       OK ] (2/8) EESSI_lbmpy_pssrt %scale=1_2_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0156ebe1 @snellius:genoa+default
P: lattice_updates: 1125.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 135.68 MLU/s (r:0, l:None, u:None)
[       OK ] (3/8) EESSI_lbmpy_pssrt %scale=1_4_node %module_name=lbmpy-pssrt/1.4-foss-2023b /ad812256 @snellius:genoa+default
P: lattice_updates: 1020.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 61.99 MLU/s (r:0, l:None, u:None)
[       OK ] (4/8) EESSI_lbmpy_pssrt %scale=1_8_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0c6c5f35 @snellius:genoa+default
P: lattice_updates: 682.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 66.9 MLU/s (r:0, l:None, u:None)
[       OK ] (5/8) EESSI_lbmpy_pssrt %scale=8_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /8e338e93 @snellius:genoa+default
P: lattice_updates: 274.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 1.4 MLU/s (r:0, l:None, u:None)
[       OK ] (6/8) EESSI_lbmpy_pssrt %scale=4_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /72a2bf6d @snellius:genoa+default
P: lattice_updates: 141.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 0.13 MLU/s (r:0, l:None, u:None)
[       OK ] (7/8) EESSI_lbmpy_pssrt %scale=2_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /384daebd @snellius:genoa+default
P: lattice_updates: 72.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 0.06 MLU/s (r:0, l:None, u:None)
[       OK ] (8/8) EESSI_lbmpy_pssrt %scale=1_core %module_name=lbmpy-pssrt/1.4-foss-2023b /66445a96 @snellius:genoa+default
P: lattice_updates: 61.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 10.0 MLU/s (r:0, l:None, u:None)
[----------] all spawned checks have finished

[  PASSED  ] Ran 8/8 test case(s) from 8 check(s) (0 failure(s), 0 skipped, 0 aborted)

@satishskamath

Copy link
Copy Markdown
Collaborator
[satishk@tcn3 projects]$ reframe -C eessi_reframe/settings_example.py -c /gpfs/home5/satishk/projects/test-suite/eessi/testsuite/tests/apps/lbmpy-pssrt/lbmpy-pssrt.py  --system=snellius_eessi:cpu_rome  --run
[ReFrame Setup]
  version:           4.6.2
  command:           '/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/software/ReFrame/4.6.2/bin/reframe -C eessi_reframe/settings_example.py -c /gpfs/home5/satishk/projects/test-suite/eessi/testsuite/tests/apps/lbmpy-pssrt/lbmpy-pssrt.py --system=snellius_eessi:cpu_rome --run'
  launched by:       [email protected]
  working directory: '/gpfs/home5/satishk/projects'
  settings files:    '<builtin>', 'eessi_reframe/settings_example.py'
  check search path: '/gpfs/home5/satishk/projects/test-suite/eessi/testsuite/tests/apps/lbmpy-pssrt/lbmpy-pssrt.py'
  stage directory:   '/projects/0/reframe5/satishk'
  output directory:  '/gpfs/home5/satishk/projects/output'
  log files:         '/gpfs/home5/satishk/projects/reframe.log'

== Temporary log file in case of crash /tmp/eb-7n8iqjao/easybuild-e38ofx9m.log
[==========] Running 8 check(s)
[==========] Started on Thu Dec 18 19:10:03 2025+0100

[----------] start processing checks
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_node %module_name=lbmpy-pssrt/1.4-foss-2023b /f5e613fb @snellius_eessi:cpu_rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_2_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0156ebe1 @snellius_eessi:cpu_rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_4_node %module_name=lbmpy-pssrt/1.4-foss-2023b /ad812256 @snellius_eessi:cpu_rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_8_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0c6c5f35 @snellius_eessi:cpu_rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=8_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /8e338e93 @snellius_eessi:cpu_rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=4_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /72a2bf6d @snellius_eessi:cpu_rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=2_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /384daebd @snellius_eessi:cpu_rome+default
[ RUN      ] EESSI_lbmpy_pssrt %scale=1_core %module_name=lbmpy-pssrt/1.4-foss-2023b /66445a96 @snellius_eessi:cpu_rome+default
[       OK ] (1/8) EESSI_lbmpy_pssrt %scale=1_node %module_name=lbmpy-pssrt/1.4-foss-2023b /f5e613fb @snellius_eessi:cpu_rome+default
P: lattice_updates: 1101.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 17.29 MLU/s (r:0, l:None, u:None)
[       OK ] (2/8) EESSI_lbmpy_pssrt %scale=1_2_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0156ebe1 @snellius_eessi:cpu_rome+default
P: lattice_updates: 897.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 16.96 MLU/s (r:0, l:None, u:None)
[       OK ] (3/8) EESSI_lbmpy_pssrt %scale=1_4_node %module_name=lbmpy-pssrt/1.4-foss-2023b /ad812256 @snellius_eessi:cpu_rome+default
P: lattice_updates: 699.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 12.99 MLU/s (r:0, l:None, u:None)
[       OK ] (4/8) EESSI_lbmpy_pssrt %scale=1_8_node %module_name=lbmpy-pssrt/1.4-foss-2023b /0c6c5f35 @snellius_eessi:cpu_rome+default
P: lattice_updates: 414.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 1.54 MLU/s (r:0, l:None, u:None)
[       OK ] (5/8) EESSI_lbmpy_pssrt %scale=8_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /8e338e93 @snellius_eessi:cpu_rome+default
P: lattice_updates: 160.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 1.9 MLU/s (r:0, l:None, u:None)
[       OK ] (6/8) EESSI_lbmpy_pssrt %scale=4_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /72a2bf6d @snellius_eessi:cpu_rome+default
P: lattice_updates: 111.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 0.3 MLU/s (r:0, l:None, u:None)
[       OK ] (7/8) EESSI_lbmpy_pssrt %scale=1_core %module_name=lbmpy-pssrt/1.4-foss-2023b /66445a96 @snellius_eessi:cpu_rome+default
P: lattice_updates: 73.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 0.28 MLU/s (r:0, l:None, u:None)
[       OK ] (8/8) EESSI_lbmpy_pssrt %scale=2_cores %module_name=lbmpy-pssrt/1.4-foss-2023b /384daebd @snellius_eessi:cpu_rome+default
P: lattice_updates: 59.0 MLU/s (r:0, l:None, u:None)
P: lattice_updates_range: 0.06 MLU/s (r:0, l:None, u:None)
[----------] all spawned checks have finished

[  PASSED  ] Ran 8/8 test case(s) from 8 check(s) (0 failure(s), 0 skipped, 0 aborted)
[==========] Finished on Thu Dec 18 19:12:05 2025+0100
Log file(s) saved in '/gpfs/home5/satishk/projects/reframe.log'
[satishk@tcn3 projects]$ 

After thread binding the performance is more consistent.

@satishskamath
satishskamath self-requested a review December 18, 2025 18:13

@satishskamath satishskamath left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@satishskamath
satishskamath merged commit 07a5f8f into EESSI:main Dec 18, 2025
@casparvl
casparvl deleted the lbmpy-pssrt branch March 12, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants