Skip to content
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

reduce example complexity #3323

Conversation

psychocoderHPC
Copy link
Member

The PR is changing cmake flags in the examples. The feature to compile different setups by changing cmakeFlags in the examples is useful for parameter scans and was from us hijacked to compile different solver in our CI.
This PR reducing the free parameter for a example to a useful minimum, for the corresponding test.

A new folder tests is introducing compile tests. We do not aim to test each possible combination for all solvers, with shapes, ...
We need to be realistic what we can test within the CI.
Later PRs will introduce unit tests to cover more parts of PIConGPU/PMacc

Incompatibilities

Old files cmakeFlag from the examples are not compatible with this PR. The default case (zero) is always running but other cases can be broken. Broken means that e.g. changing the field solver will have no effect.

Review

Please review the PR commit wise. Each example I changed has its own commit.

Remove few configurable option in the example to reduce the complextity.

- remove param for field solver (reducing the ugly pre-compiler hack to
calculate the time step for directinal splitting.
- remove param for current interpolation
- remove param for current solver
Remove params to chose field solver, current solver, precision.
@psychocoderHPC psychocoderHPC added refactoring code change to improve performance or to unify a concept but does not change public API component: tests unit tests component: user input signals changes in user API such as .param files, .cfg syntax, etc. - changelog! labels Aug 7, 2020
@psychocoderHPC psychocoderHPC marked this pull request as draft August 7, 2020 15:27
@psychocoderHPC psychocoderHPC added the component: examples PIConGPU or PMacc examples label Aug 7, 2020
@psychocoderHPC psychocoderHPC force-pushed the topic-reduceExampleComplexity branch 3 times, most recently from 29c90b1 to de49808 Compare August 8, 2020 18:47
@psychocoderHPC psychocoderHPC force-pushed the topic-reduceExampleComplexity branch from de49808 to d2b65c0 Compare August 9, 2020 18:34
@psychocoderHPC psychocoderHPC marked this pull request as ready for review August 10, 2020 07:56
@psychocoderHPC
Copy link
Member Author

can be merged

@sbastrakov sbastrakov merged commit 360f616 into ComputationalRadiationPhysics:dev Aug 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: examples PIConGPU or PMacc examples component: tests unit tests component: user input signals changes in user API such as .param files, .cfg syntax, etc. - changelog! refactoring code change to improve performance or to unify a concept but does not change public API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants