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

Build: Refactor makefiles #71

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Build: Refactor makefiles #71

wants to merge 2 commits into from

Conversation

mirenradia
Copy link
Member

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.

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 mirenradia added bug Something isn't working enhancement New feature or request labels Jul 19, 2024
@mirenradia mirenradia self-assigned this Jul 19, 2024
Also switch to building fcompare with MPI so that we don't have to build
AMReX source files twice.
@mirenradia mirenradia added the github_actions Pull requests that update GitHub Actions code label Jul 19, 2024
@mirenradia
Copy link
Member Author

@julianakwan, would you be able to check this resolves the CI issues you were finding on your matter/scalar field branches?

@julianakwan
Copy link
Contributor

@julianakwan, would you be able to check this resolves the CI issues you were finding on your matter/scalar field branches?

Yeah, I'll test it out as a part of my usual suite of checks for PRs :)

@julianakwan
Copy link
Contributor

I merged the bugfix/68 branch into the enhancement/scalar_fields branch to test if the new Makefile would fix the race condition in the Example builds but unfortunately it did not - see failed GPU workflow here.
@mirenradia suggested separating out each example in the Examples directory and building them individually as a possible workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Potential race condition in base GNUmakefile examples target
2 participants