-
Notifications
You must be signed in to change notification settings - Fork 11
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
Updating submodules and pace refactor #75
Merged
Merged
Changes from 24 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
00cba46
Updated submodule versions
fmalatino 3bbe036
Loosened constraint on gridtools-cpp for build of gt4py in constraint…
fmalatino c250df0
Merge branch 'main' into refactor/submodule_updates
fmalatino d5bfeb0
Updating submodules to most recent versions as of 6 Feb 2024 16:00
fmalatino 16b15ce
Merge branch 'develop' into refactor/submodule_updates
fmalatino 82c4862
Updated submodules
fmalatino ecda385
Updated submodules to current commits in develop branches, and import…
fmalatino 6a7d6c3
Updating pyFV3 submodule
fmalatino 35c4ed9
Updated constraints.txt
fmalatino 63a46ac
Removed local references in constraints.txt
fmalatino 917b9c8
Removed local reference to dace in constraints.txt
fmalatino 09045d1
Updated pace internal imports
fmalatino 4e2e3f7
Unexposed modules in driver __init__ and updated NDSL
fmalatino 2ba7691
Updating to latest version of develop
fmalatino 7bda2c6
Linting
fmalatino 5e910e2
pace refactor
fmalatino ae07176
update to current pyFV3
fmalatino 5f83fde
Merged in current develop branch
fmalatino 4bb8877
Changing location of setup.cfg
fmalatino 3cb419e
Removed need for python path to be re-passed
fmalatino 8fb03f2
Linting
fmalatino f2724ce
Updates to reflect new structure
fmalatino ec1e2e3
Edits to requirements_dev.txt to install editable pace package
fmalatino 15fc295
Updated README
fmalatino e154802
Updating submodules after NDSL 2024.04.00 release
fmalatino 4131fba
Updating constraints.txt
fmalatino File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: "Main unit tests" | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] | ||
|
||
jobs: | ||
main_unit_tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Pace repository | ||
uses: actions/[email protected] | ||
with: | ||
submodules: 'recursive' | ||
- name: Step Python 3.8.12 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: '3.8.12' | ||
- name: Install OpenMPI & Boost for gt4py | ||
run: | | ||
sudo apt-get install libopenmpi-dev libboost1.74-dev | ||
- name: Install Python packages | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip install -r requirements_dev.txt -c constraints.txt | ||
- name: Clone datafiles | ||
run: | | ||
mkdir -p tests/main/input && cd tests/main/input | ||
git clone -b store_files https://github.com/mlee03/pace.git tmp && mv tmp/*.nc . && rm -rf tmp | ||
- name: Run all main tests | ||
run: | | ||
python -m pytest -x tests/main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,7 +115,7 @@ dependencies.svg: dependencies.dot | |
dot -Tsvg $< -o $@ | ||
|
||
.PHONY: constraints.txt | ||
constraints.txt: driver/setup.py dsl/setup.py fv3core/setup.py physics/setup.py util/setup.py stencils/setup.py util/requirements.txt requirements_docs.txt requirements_lint.txt external/gt4py/setup.cfg requirements_dev.txt | ||
constraints.txt: driver/setup.py ndsl/setup.py pyFV3/setup.py pySHiELD/setup.py requirements_docs.txt requirements_lint.txt external/gt4py/setup.cfg requirements_dev.txt | ||
pip-compile $^ --output-file constraints.txt | ||
sed -i.bak '/\@ git+https/d' constraints.txt | ||
rm -f constraints.txt.bak | ||
|
@@ -142,8 +142,8 @@ test_mpi_54rank: | |
mpirun -n 54 $(MPIRUN_ARGS) python3 -m mpi4py -m pytest tests/mpi_54rank | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will we always be using mpirun here or is there a chance it could be another invoker? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A change here would be prompted by a change in the docker image |
||
|
||
driver_savepoint_tests_mpi: build | ||
TARGET=driver $(MAKE) get_test_data | ||
$(CONTAINER_CMD) $(CONTAINER_FLAGS) bash -c "$(SAVEPOINT_SETUP) && cd $(PACE_PATH) && $(MPIRUN_CALL) python -m mpi4py -m pytest --maxfail=1 --data_path=$(EXPERIMENT_DATA_RUN)/driver/ $(TEST_ARGS) $(PHYSICS_THRESH_ARGS) -m parallel $(PACE_PATH)/physics/tests/savepoint" | ||
TARGET=pace $(MAKE) get_test_data | ||
$(CONTAINER_CMD) $(CONTAINER_FLAGS) bash -c "$(SAVEPOINT_SETUP) && cd $(PACE_PATH) && $(MPIRUN_CALL) python -m mpi4py -m pytest --maxfail=1 --data_path=$(EXPERIMENT_DATA_RUN)/pace/ $(TEST_ARGS) $(PHYSICS_THRESH_ARGS) -m parallel $(PACE_PATH)/physics/tests/savepoint" | ||
|
||
docs: ## generate Sphinx HTML documentation | ||
$(MAKE) -C docs html | ||
|
Submodule NDSL
updated
84 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is this workflow file needed?
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.
Are the tests contained within that directory also tested in CI? If so, it can be removed.