Skip to content

Conversation

@rsarm
Copy link
Contributor

@rsarm rsarm commented Feb 7, 2022

No description provided.

@rsarm rsarm added this to the ReFrame Sprint 22.01.2 milestone Feb 7, 2022
@rsarm rsarm requested review from ekouts and vkarak February 7, 2022 10:08
@rsarm rsarm self-assigned this Feb 7, 2022
@codecov-commenter
Copy link

codecov-commenter commented Feb 7, 2022

Codecov Report

Merging #2421 (0a330ac) into master (bc20ca7) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2421   +/-   ##
=======================================
  Coverage   85.76%   85.76%           
=======================================
  Files          57       57           
  Lines       10580    10580           
=======================================
  Hits         9074     9074           
  Misses       1506     1506           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b71da59...0a330ac. Read the comment docs.

@rsarm rsarm marked this pull request as draft February 7, 2022 10:42
@rsarm
Copy link
Contributor Author

rsarm commented Feb 9, 2022

I'm having troubles passing the version of the benchmark from the cscs test to the fetch_osu_benchmark fixture on the hpclib. I'm creating variables version = variable(str, value='5.6.2') and passing them to the fixtures with {'version': version}. The problem is that in the body of the class, where the fixture is defined, the value of version is the default one (from the definition of the variable) and not the one passed through variables, which only will take effect after init right?

@pep8speaks
Copy link

pep8speaks commented Feb 15, 2022

Hello @rsarm, Thank you for updating!

Cheers! There are no PEP8 issues in this Pull Request!Do see the ReFrame Coding Style Guide

Comment last updated at 2022-04-01 15:03:15 UTC

@rsarm rsarm marked this pull request as ready for review February 18, 2022 16:37
Copy link
Contributor

@vkarak vkarak left a comment

Choose a reason for hiding this comment

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

I think that the benchmarks, especially on the CSCS side are more complex than they should. Also, follow the Amber and Gromacs examples for writing the library tests. That means, you should not name the base file as __init__.py and the library tests must also be proper tests that can be run from the command line.

@vkarak
Copy link
Contributor

vkarak commented Mar 4, 2022

@rsarm I think you haven't add the new file, but the placement need to change as well. You should be able to simply import the tests from hpctestlib.microbenchmarks.mpi.osu and not hpctestlib.microbenchmarks.mpi.osu.mpi.

@rsarm
Copy link
Contributor Author

rsarm commented Mar 16, 2022

The lib tests can be run like this:

RFM_COMPACT_TEST_NAMES=true ./bin/reframe -C config/cscs.py -r -c hpctestlib/microbenchmarks/mpi/osu.py -n 'osu_cpu_latency_pt2pt.osu_binaries.build_type=cuda' -S valid_systems='dom:gpu' -S valid_prog_environs=PrgEnv-gnu -S osu_cpu_latency_pt2pt.device_buffers=cuda

@vkarak
Copy link
Contributor

vkarak commented Mar 17, 2022

Actually, I managed to run the test on Dom as follows:

./bin/reframe -C config/cscs.py -r -c hpctestlib/microbenchmarks/mpi/osu.py -n 'osu_cpu_latency_pt2pt.osu_binaries.build_type=cuda' -S valid_systems='dom:gpu' -S valid_prog_environs=PrgEnv-gnu -S osu_cpu_latency_pt2pt.device_buffers=cuda -S osu_cpu_latency_pt2pt.variables=MPICH_RDMA_ENABLED_CUDA:1 -M 'PrgEnv-gnu: PrgEnv-gnu craype-accel-nvidia60 gcc/9.3.0' -r

I don't like that we have to use the -M option, but that's due to #2477. Ideally, we would replace that with -S build_osu_benchmarks.modules=craype-accel-nvidia60,gcc/9.3.0.

Copy link
Contributor

@vkarak vkarak left a comment

Choose a reason for hiding this comment

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

I will also do further fine tuning pass.

@vkarak vkarak changed the title [test] Add hpclib tests for OSU microbenchmarks [testlib] Add OSU benchmarks in the test library and adapt CSCS checks accordingly Mar 30, 2022
@vkarak
Copy link
Contributor

vkarak commented Mar 30, 2022

We still need to update the docs for the test library version and then it'll be ready for merging.

@rsarm
Copy link
Contributor Author

rsarm commented Mar 31, 2022

@vkarak I gave it a try, it looks good to me. The ci failure was only a performance error.

@vkarak
Copy link
Contributor

vkarak commented Apr 1, 2022

@jenkins-cscs retry daint dom

@vkarak vkarak merged commit a43f80d into reframe-hpc:master Apr 1, 2022
@rsarm rsarm deleted the hpclib/osu branch February 3, 2023 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants