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

Potential race condition in base GNUmakefile examples target #68

Closed
mirenradia opened this issue Jun 26, 2024 · 1 comment
Closed

Potential race condition in base GNUmakefile examples target #68

mirenradia opened this issue Jun 26, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@mirenradia
Copy link
Member

@WeiqunZhang pointed out that the examples target in the base GNUmakefile has a potential race condition since all of the individual examples targets will try to build AMReX source files together at the same time if built with parallel jobs.

This is why your CI keeps failing for the ScalarField, @julianakwan!

@mirenradia mirenradia added the bug Something isn't working label Jun 26, 2024
@mirenradia mirenradia self-assigned this Jun 26, 2024
mirenradia added a commit that referenced this issue Jul 19, 2024
This adds a base Makefile that should be common to GRTeclyn examples
(once there is more than one) and eventually the tests too.

There is also a new amrex-objects target in the root makefile which
should fix #68 as it is a dependency of the examples targets although
this does rely on the examples keeping the same default configuration
(i.e. USE_MPI = TRUE, COMP = gnu).

I have added a base name to the BinaryBH example.
mirenradia added a commit that referenced this issue Dec 20, 2024
I think this will help with #68. The disadvantage (and the reason I
bothered to set this default in the first place) is that consecutive
builds of different AMReX executables (e.g. two different examples) will
be slower. To mitigate this, users should use Ccache. I will add this to
the CI in a separate PR.
mirenradia added a commit that referenced this issue Dec 20, 2024
I think this will help with #68. The disadvantage (and the reason I
bothered to set this default in the first place) is that consecutive
builds of different AMReX executables (e.g. two different examples) will
be slower. To mitigate this, users should use Ccache. I will add this to
the CI in a separate PR.
mirenradia added a commit that referenced this issue Dec 23, 2024
I think this will help with #68. The disadvantage (and the reason I
bothered to set this default in the first place) is that consecutive
builds of different AMReX executables (e.g. two different examples) will
be slower. To mitigate this, users should use Ccache. I will add this to
the CI in a separate PR.
julianakwan pushed a commit that referenced this issue Dec 23, 2024
I think this will help with #68. The disadvantage (and the reason I
bothered to set this default in the first place) is that consecutive
builds of different AMReX executables (e.g. two different examples) will
be slower. To mitigate this, users should use Ccache. I will add this to
the CI in a separate PR.
mirenradia added a commit that referenced this issue Jan 7, 2025
I think this will help with #68. The disadvantage (and the reason I
bothered to set this default in the first place) is that consecutive
builds of different AMReX executables (e.g. two different examples) will
be slower. To mitigate this, users should use Ccache. I will add this to
the CI in a separate PR.
julianakwan pushed a commit that referenced this issue Jan 8, 2025
I think this will help with #68. The disadvantage (and the reason I
bothered to set this default in the first place) is that consecutive
builds of different AMReX executables (e.g. two different examples) will
be slower. To mitigate this, users should use Ccache. I will add this to
the CI in a separate PR.
@mirenradia
Copy link
Member Author

Fixed in #82.

julianakwan pushed a commit that referenced this issue Jan 17, 2025
I think this will help with #68. The disadvantage (and the reason I
bothered to set this default in the first place) is that consecutive
builds of different AMReX executables (e.g. two different examples) will
be slower. To mitigate this, users should use Ccache. I will add this to
the CI in a separate PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant