Skip to content

Commit

Permalink
Merge pull request #78 from CrayLabs/develop
Browse files Browse the repository at this point in the history
v0.3.2
  • Loading branch information
Sam Partee authored Aug 12, 2021
2 parents 05e299a + ac6776c commit 6948956
Show file tree
Hide file tree
Showing 147 changed files with 8,567 additions and 1,004 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: build-wheels
name: deploy-release

on:
release:
types: [published]

on: [release]

env:
HOMEBREW_NO_ANALYTICS: "ON" # Make Homebrew installation a little quicker
Expand Down Expand Up @@ -88,7 +91,7 @@ jobs:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@master
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI }}
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/run_local_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,28 @@ jobs:
if: contains(matrix.os, 'macos')
run: brew install make || true


- name: Install SmartSim (with ML backends if not python 3.9)
if: matrix.python-version != '3.9'
run: |
echo "$(brew --prefix)/opt/make/libexec/gnubin" >> $GITHUB_PATH
python -m pip install -vvv .[dev,ml]
- name: Install SmartSim
if: matrix.python-version == '3.9'
run: |
echo "$(brew --prefix)/opt/make/libexec/gnubin" >> $GITHUB_PATH
python -m pip install -vvv .[dev]
- name: Install ML Runtimes with Smart
- name: Install ML Runtimes with Smart (with pt and tf)
if: contains(matrix.os, 'macos')
run: smart -v --device cpu

- name: Install ML Runtimes with Smart (with pt tf and onnx support)
if: contains(matrix.os, 'ubuntu')
run: smart -v --device cpu --onnx

- name: Run Pytest
run: |
echo "SMARTSIM_LOG_LEVEL=debug" >> $GITHUB_ENV
py.test --import-mode=importlib -o log_cli=true
py.test -s --import-mode=importlib -o log_cli=true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
__pycache__
.ipynb_checkpoints
.pytest_cache/
.coverage*
htmlcov

# Dependencies
third-party
Expand Down
29 changes: 29 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
cff-version: 1.1.0
authors:
- family-names: Partee
given-names: Sam
orcid: https://orcid.org/0000-0001-6005-5116
email: [email protected]
- family-names: Ellis
given-names: Matthew
orcid: https://orcid.org/0000-0002-5782-5447
- family-names: Rigazzi
given-names: Alessandro
orcid: https://orcid.org/0000-0003-2132-7726
- family-names: Bachman
given-names: Scott
orcid: https://orcid.org/0000-0002-6479-4300
- family-names: Marques
given-names: Gustavo
orcid: https://orcid.org/0000-0001-7238-0290
- family-names: Shao
given-names: Andrew
orcid: https://orcid.org/0000-0003-3658-512X
- family-names: Benjamin
given-names: Robbins
orcid: https://orcid.org/0000-0003-3658-512X

title: "Using Machine Learning at Scale in HPC Simulations with SmartSim: An Application to Ocean Climate Modeling"
doi: 10.5281/zenodo.4682270
date-released: 2021-4-12
license: "BSD-2-Clause"
17 changes: 15 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ check-lint:
docs:
@cd doc; make html

# help: cov - generate html coverage report for Python client
.PHONY: cov
cov:
@cd ./tests/ && coverage html
@echo if data was present, coverage report is in ./tests/htmlcov/index.html

# help:
# help: Test
Expand All @@ -98,15 +103,23 @@ docs:
# help: test - Build and run all tests
.PHONY: test
test:
@cd ./tests/; python -m pytest
@cd ./tests/; python -m pytest --ignore=full_wlm/

# help: test-verbose - Build and run all tests [verbosely]
.PHONY: test-verbose
test-verbose:
@cd ./tests/; python -m pytest -vv
@cd ./tests/; python -m pytest -vv --ignore=full_wlm/

# help: test-cov - run python tests with coverage
.PHONY: test-cov
test-cov:
@cd ./tests/; python -m pytest --cov=../smartsim -vv --cov-config=${COV_FILE} --ignore=full_wlm/


# help: test-full - run all WLM tests with Python coverage (full test suite)
# help: WARNING: do not run test-full on shared systems.
.PHONY: test-full
test-full:
@cd ./tests/; python -m pytest --cov=../smartsim -vv --cov-config=${COV_FILE}


Loading

0 comments on commit 6948956

Please sign in to comment.