Skip to content

Commit e804ad0

Browse files
authored
SmartSim 0.4.1 Release
See https://www.craylabs.org/docs/changelog.html for details.
2 parents bfe0c35 + 994589c commit e804ad0

File tree

197 files changed

+11076
-4243
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+11076
-4243
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474

7575
- name: Build sdist
7676
run: |
77-
python -m pip install cmake>=3.10
77+
python -m pip install cmake>=3.13
7878
python setup.py sdist
7979
8080
- uses: actions/upload-artifact@v2

.github/workflows/run_tests.yml

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
name: run-tests
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- develop
48

59
env:
610
HOMEBREW_NO_ANALYTICS: "ON" # Make Homebrew installation a little quicker
711
HOMEBREW_NO_AUTO_UPDATE: "ON"
812
HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK: "ON"
913
HOMEBREW_NO_GITHUB_API: "ON"
1014
HOMEBREW_NO_INSTALL_CLEANUP: "ON"
11-
15+
DEBIAN_FRONTEND: "noninteractive" # Disable interactive apt install sessions
1216

1317
jobs:
1418
run_tests:
@@ -43,11 +47,29 @@ jobs:
4347
sudo apt-get install -y wget
4448
4549
- name: Install GNU make for MacOS and set GITHUB_PATH
46-
if: "contains( matrix.os, 'macos' )"
50+
if: contains( matrix.os, 'macos' )
4751
run: |
4852
brew install make || true
4953
echo "$(brew --prefix)/opt/make/libexec/gnubin" >> $GITHUB_PATH
5054
55+
- name: Build Singularity from source
56+
if: contains( matrix.os, 'ubuntu' ) && matrix.py_v == 3.9 && matrix.rai == '1.2.5'
57+
run: |
58+
sudo apt-get install -y libseccomp-dev pkg-config squashfs-tools cryptsetup curl git # wget build-essential
59+
echo 'export PATH=/usr/local/go/bin:$PATH' >> ~/.bashrc
60+
source ~/.bashrc
61+
export VERSION=1.0.0 # Apptainer (singularity) version
62+
wget https://github.com/apptainer/apptainer/releases/download/v${VERSION}/apptainer-${VERSION}.tar.gz
63+
tar -xzf apptainer-${VERSION}.tar.gz
64+
cd apptainer-${VERSION}
65+
./mconfig
66+
make -C builddir
67+
sudo make -C builddir install
68+
69+
- name: singularity pull test container # This lets us time how long the pull takes
70+
if: contains( matrix.os, 'ubuntu' ) && matrix.py_v == 3.9 && matrix.rai == '1.2.5'
71+
run: singularity pull docker://alrigazzi/smartsim-testing
72+
5173
- name: Install SmartSim (with ML backends)
5274
run: python -m pip install .[dev,ml,ray]
5375

@@ -56,10 +78,20 @@ jobs:
5678
run: smart build --device cpu -v
5779

5880
- name: Install ML Runtimes with Smart (with pt, tf, and onnx support)
59-
if: contains( matrix.os, 'ubuntu' )
81+
if: contains( matrix.os, 'ubuntu' ) && (matrix.py_v != 3.9 || matrix.rai != '1.2.3')
6082
run: smart build --device cpu --onnx -v
6183

84+
- name: Install ML Runtimes with Smart excluding PyTorch for Ubuntu/Python3.9/RAI1.2.3 combo
85+
if: contains( matrix.os, 'ubuntu' ) && matrix.py_v == 3.9 && matrix.rai == '1.2.3'
86+
run: smart build --device cpu --no_pt --onnx -v
87+
6288
- name: Run Pytest
6389
run: |
6490
echo "SMARTSIM_LOG_LEVEL=debug" >> $GITHUB_ENV
65-
py.test -s --import-mode=importlib -o log_cli=true
91+
py.test -s --import-mode=importlib -o log_cli=true --cov=$(smart site) --cov-report=xml --cov-config=./tests/test_configs/cov/local_cov.cfg --ignore=tests/full_wlm/ ./tests/
92+
93+
- name: Upload Pytest coverage to Codecov
94+
uses: codecov/codecov-action@v2
95+
with:
96+
fail_ci_if_error: true
97+
files: ./coverage.xml

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ __pycache__
55
.coverage*
66
htmlcov
77
smartsim.egg-info
8+
tests/test_output
89

910
# Dependencies
1011
smartsim/_core/.third-party
@@ -17,8 +18,8 @@ smartredis
1718
# written upon install
1819
smartsim/version.py
1920

20-
smartsim/_core/bin/redis-server
21-
smartsim/_core/bin/redis-cli
21+
smartsim/_core/bin/*-server
22+
smartsim/_core/bin/*-cli
2223

2324
# created upon install
2425
smartsim/_core/lib

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ clean:
3434

3535
# help: clobber - clean, remove deps, builds, (be careful)
3636
.PHONY: clobber
37-
clobber: clean clean-deps
37+
clobber: clean
3838

3939

4040
# help:
@@ -111,9 +111,15 @@ cov:
111111
# help: tutorials-dev - Build and start a docker container to run the tutorials
112112
.PHONY: tutorials-dev
113113
tutorials-dev:
114-
@docker compose build tutorials
114+
@docker compose build tutorials-dev
115115
@docker run -p 8888:8888 smartsim-tutorials:dev-latest
116116

117+
# help: tutorials-prod - Build and start a docker container to run the tutorials (v0.4.1)
118+
.PHONY: tutorials-prod
119+
tutorials-prod:
120+
@docker compose build tutorials-prod
121+
@docker run -p 8888:8888 smartsim-tutorials:v0.4.1
122+
117123

118124
# help:
119125
# help: Test

0 commit comments

Comments
 (0)