-
Notifications
You must be signed in to change notification settings - Fork 214
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
Unified testsuite #4334
Unified testsuite #4334
Conversation
Flake8 will be corrected shortly |
3a8a88b
to
c28d6be
Compare
@MSVoss There are about 300 lines of complaints by EDIT: I did not see your second comment, sorry for bothering you again 🙈 EDIT2: Would you please update the PR description with an explanation of 'generalization'? That is, what is the aim of the generalization and how do you achieve this? (Just a few lines) |
0f4bed1
to
c78a37b
Compare
lib/python/test/setups/ESKHI/Data.py
Outdated
s of KHI currently have to be treated differently. | ||
""" | ||
import sys | ||
sys.path.insert(1, "../../") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you replace the 2nd entry of the path list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's almost random. I could also have used append and simply added it afterwards. But here I'm looking for another solution anyway because flake8 is not fulfilled here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MSVoss I think sth like this could possibly also work and would maybe not trigger flake8. But, no idea if this is any better.
from importlib.machinery import SourceFileLoader
testsuite = SourceFileLoader("testsuite", "../../testsuite/__init__.py").load_module()
c90329a
to
da5a2f0
Compare
58c3749
to
a9925f5
Compare
972b8c7
to
bf9addf
Compare
I hope I haven't overlooked anything. I made a note of the inheritance for the next pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some open questions, but this looks good to me
@psychocoderHPC @pordyna You had some open issues and questions on this pull request. What's the status? |
only open questions by @psychocoderHPC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am blocking merging for now because when executing the CI via
./picongpu/share/picongpu/tests/KHI_growthRate/bin/ci.sh picongpu/share/picongpu/tests/KHI_growthRate/ ./KHI
(on hemera v100) I get the error 42
.
Thus, when adding this test, the CI will always fail.
@MSVoss could you clarify what I am doing wrong or what the error 42
is causing.
The python code
|
9b3f87f
to
9e8a1af
Compare
@MSVoss the PIP check of our CI is still unhappy with:
|
@@ -27,7 +27,7 @@ | |||
#include <pmacc/math/operation.hpp> | |||
|
|||
#ifndef PARAM_GAMMA | |||
# define PARAM_GAMMA 1.021 | |||
# define PARAM_GAMMA 1.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add to cmakeFlags
flags[3]="-DPARAM_OVERWRITES:LIST='-DPARAM_GAMMA=1.2'
# Depending on the GPU vendor and version compile can fail because of limited amound of shared memory.
# Please enable the test by hand!
# flags[4]="-DPARAM_OVERWRITES:LIST='-DPARAM_PRECISION=precision64Bit;-DPARAM_PARTICLESHAPE=PQS'"
@@ -27,7 +27,7 @@ | |||
#include <pmacc/math/operation.hpp> | |||
|
|||
#ifndef PARAM_GAMMA | |||
# define PARAM_GAMMA 1.021 | |||
# define PARAM_GAMMA 1.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
offline discussed with @PrometheusPi: we should not change the default behavior of this test. We have users which using this test case and we should not silently invalidate the possibility that old and now runs can be compared.
|
||
for line in all_Lines: | ||
if "define" + search_u in line and parameter is None: | ||
parameter = float(line[line.find(search_u) + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MSVoss and @PrometheusPi please discuss this comment
7247171
into
ComputationalRadiationPhysics:dev
Issue introduced with ComputationalRadiationPhysics#4334 - remove slash at the end of a path (do not enforce a slash) - add a slash before concadinate a filename with a directory path
Issue introduced with ComputationalRadiationPhysics#4334 - remove the slash at the end of a path (do not enforce a slash) - add a slash before concatenate a filename with a directory path
This is my suggestion for the generalization of the test suite. As already stated, the current version of the KHI test is very geared towards this. In order to make the test suite usable for different test cases, specific components had to be replaced. Among them are the following aspects in particular:
In order to remedy these shortcomings, the following has been changed (here only the essential aspects):
There are a few things to keep in mind:
Still under development or included in the next "version":
Currently integrated tests:
Both applicable for 3D as well as for 2D (however, the corresponding .param files have to be adapted to the case). Please note the dependency on the Lorenz factor in 3D. The included ci.bash script uses the MI. For more information, refer to the test case documentation.
Resulting advantage for the user compared to the old version.
Only the most important aspects are mentioned in the list above. Further information can be found in the individual documentation (function documentation)
Documentation will be added later for more information