Repository navigation
add test for numpy - #276
Conversation
There was a problem hiding this comment.
I'm wondering a bit what our policy should be regarding running multiple iterations. We do the same for OSU, of course, but there it tends to be really fast. This test seems to take quite a substantial amount of time. I'm wondering if we should have the test be 'responsible' for doing multiple iterations, thus producing a more reproducible number, of whether we should ask ReFrame to do reruns --reruns N. The downside of the latter is that it'll create multiple ReFrame reports, show up as separate points in the dashboard, (which then show a lot of variation) etc. It's probably nicer to get a single performance number that is (reasonably) reliable. Also, the test probably knows what a natural variation is, and how many iterations would be needed to 'average' that out.
I guess I'm coming to the conclusion it should be set in the test :) But good to think about and make sure we make the same assumption everywhere.
I guess my next question would be: do we really need 20 here to get to a reasonably stable number? I'm running on 16 cores, and it takes 10-15 minutes it seems. Most of the time is spent by eigendec (54s or so). Yes, there is value in having the test produce accurate numbers. But, there's also value in having a test that is quick to run - chances are it will be run more often.
E.g. I'd like to have some numpy test that is tagged with the CI tag, and thus has to run with O(minutes). One option would be to reduce iterations. If we do 4 iterations for each, and one for eigendec, I think it'll be <5 minutes and thus qualify for the CI tag. Alternatively, we do somewhat more iterations, but make the test to be run an argument. You can then easily make a parameter running over all supported tests, and simply add the CI tag for all parameter values except eigendec.
|
To back my review up with some numbers, I ran the tests three times: variation is So, I think the approach of four iters for each, and only one for |
There was a problem hiding this comment.
Looks good, I have one (small) final change to request: now that the runtime is substantially shorter, can you make sure the test gets the CI tag? (I can't recall the exact keyword, but we have something like benchmark_name_CI)
Anyway, tests are all succesful:
[ PASSED ] Ran 42/42 test case(s) from 21 check(s) (0 failure(s), 0 skipped, 0 aborted)
(3 modules, at all scales, on two CPU partitions)
|
@casparvl added the CI tag if you don't mind i also added an extra class attribute |
casparvl
left a comment
There was a problem hiding this comment.
reframe -c eessi/testsuite/tests/apps/numpy/ --system=snellius:rome --run -t CI
...
[ PASSED ] Ran 21/21 test case(s) from 21 check(s) (0 failure(s), 0 skipped, 0 aborted)
[==========] Finished on Wed Aug 13 15:02:37 2025+0200
Log file(s) saved in '/gpfs/home4/casparl/EESSI/reframe_runs/logs/reframe_20250813_145518.log'
Works great, thanks a lot!
No description provided.