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

MLI API #755

Draft
wants to merge 26 commits into
base: mli-feature
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,16 @@ jobs:
python -m pip install git+https://github.com/CrayLabs/SmartRedis.git@develop#egg=smartredis
python -m pip install .[dev,mypy]


- name: Install ML Runtimes
if: matrix.subset != 'dragon'
run: smart build --device cpu -v


- name: Install ML Runtimes (with dragon)
if: matrix.subset == 'dragon'
env:
SMARTSIM_DRAGON_TOKEN: ${{ secrets.DRAGON_TOKEN }}

run: |
if [ -n "${SMARTSIM_DRAGON_TOKEN}" ]; then
smart build --device cpu -v --dragon-repo dragonhpc/dragon-nightly --dragon-version 0.10
Expand Down
44 changes: 38 additions & 6 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ build:
os: ubuntu-22.04
tools:
python: "3.10"
jobs:
post_checkout:
# jobs:
commands:
# post_checkout:
# Cancel building pull requests when there aren't changed in the docs directory or YAML file.
# You can add any other files or directories that you'd like here as well,
# like your docs requirements file, or other files that will change your docs build.
Expand All @@ -19,20 +20,51 @@ build:
then
exit 183;
fi
pre_create_environment:
# - su && touch /usr/lib/foo
# - su && ls /usr/lib/foo
# pre_create_environment:
- git clone --depth 1 https://github.com/CrayLabs/SmartRedis.git smartredis
- git clone --depth 1 https://github.com/CrayLabs/SmartDashboard.git smartdashboard
post_create_environment:
- python -m pip install .[dev,docs]
# post_create_environment:
- pwd
- python -m pip install -e .[dev,docs]
- cd smartredis; python -m pip install .
- cd smartredis/doc; doxygen Doxyfile_c; doxygen Doxyfile_cpp; doxygen Doxyfile_fortran
- ln -s smartredis/examples ./examples
- cd smartdashboard; python -m pip install .
pre_build:
- smart build --device cpu --dragon -v
- |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(dirname $(find $PWD -name "libdragon.so")) &&
make docs &&
mkdir -p _readthedocs/ &&
cp -r doc/_build/html/ _readthedocs/



# - smart build --device cpu --dragon -v
# - cp ./smartsim/_core/.dragon/dragon-0.9/lib/libdragon.so /usr/lib/




# - export $(cat /home/docs/checkouts/readthedocs.org/user_builds/smartsim/envs/755/lib/python3.10/site-packages/smartsim/_core/.dragon/.env | grep DRAGON_INCLUDE_DIR)
# - export LD_LIBRARY_PATH=$DRAGON_INCLUDE_DIR:$LD_LIBRARY_PATH
# - echo $DRAGON_INCLUDE_DIR
# - echo $LD_LIBRARY_PATH
# - ls
# - pwd
# - find /home/docs/checkouts/readthedocs.org/user_builds/smartsim/envs/755/lib/python3.10/site-packages/smartsim/_core/.dragon -name ".env"
# - which smart
# - smart site

# pre_build:
- pip install typing_extensions==4.8.0
- pip install pydantic==1.10.13
- python -m sphinx -b linkcheck doc/ $READTHEDOCS_OUTPUT/linkcheck

# build:


# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: doc/conf.py
Expand Down
Loading
Loading