-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'RaulPPelaez:v2.x' into v2.x
- Loading branch information
Showing
22 changed files
with
483 additions
and
391 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,9 @@ name: CI | |
|
||
on: | ||
push: | ||
branches: [ v2.x ] | ||
branches: [ master, v2.x ] | ||
pull_request: | ||
branches: [ v2.x ] | ||
branches: [ master, v2.x ] | ||
schedule: | ||
# Run every Sunday at midnight | ||
- cron: '0 0 * * 0' | ||
|
@@ -25,45 +25,72 @@ jobs: | |
# Oldest supported versions | ||
- name: Linux (CUDA 10.2) | ||
cuda: "10.2.89" | ||
gcc: "8.5.*" | ||
nvcc: "10.2" | ||
gcc: "7.*" | ||
cuda12: 'false' | ||
|
||
# Latest supported versions | ||
- name: Linux (CUDA 11.8) | ||
cuda: "11.8.0" | ||
gcc: "10.3.*" | ||
nvcc: "11.8" | ||
|
||
- name: Linux (CUDA 12) | ||
cuda: "12.*" | ||
gcc: "11.*" | ||
cuda12: 'true' | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Mamba | ||
uses: mamba-org/provision-with-micromamba@main | ||
with: | ||
environment-file: false | ||
extra-specs: "" | ||
cache-env: true | ||
cache-downloads: true | ||
- name: Manage disk space | ||
run: | | ||
sudo mkdir -p /opt/empty_dir || true | ||
for d in \ | ||
/opt/ghc \ | ||
/opt/hostedtoolcache \ | ||
/usr/lib/jvm \ | ||
/usr/local/.ghcup \ | ||
/usr/local/lib/android \ | ||
/usr/local/share/powershell \ | ||
/usr/share/dotnet \ | ||
/usr/share/swift \ | ||
; do | ||
sudo rsync --stats -a --delete /opt/empty_dir/ $d || true | ||
done | ||
sudo apt-get purge -y -f firefox \ | ||
google-chrome-stable \ | ||
microsoft-edge-stable gcc | ||
sudo apt-get autoremove -y >& /dev/null | ||
sudo apt-get autoclean -y >& /dev/null | ||
sudo docker image prune --all --force | ||
df -h | ||
- name: Install CUDA Toolkit | ||
# CUDA 12 can be installed with mamba | ||
if: ${{ matrix.cuda12 == 'false' }} | ||
uses: Jimver/[email protected] | ||
with: | ||
cuda: ${{ matrix.cuda }} | ||
linux-local-args: '["--toolkit", "--override"]' | ||
linux-local-args: '["--toolkit", "--override"]' | ||
|
||
- name: Prepare dependencies | ||
- name: Prepare dependencies (CUDA <12) | ||
if: ${{ matrix.cuda12 == 'false'}} | ||
run: | | ||
sed -i -e "/cudatoolkit/c\ - cudatoolkit ${{ matrix.cuda }}" \ | ||
-e "/gxx_linux-64/c\ - gxx_linux-64 ${{ matrix.gcc }}" \ | ||
-e "/nvcc_linux-64/c\ - nvcc_linux-64 ${{ matrix.nvcc }}" \ | ||
sed -i -e "/cuda-version/d" \ | ||
-e "/cuda-libraries-dev/d" \ | ||
-e "/cuda-nvcc/d" \ | ||
-e "/gxx_linux-64/c\ - gxx_linux-64 ${{ matrix.gcc }}\n - gcc_linux-64" \ | ||
environment.yml | ||
- name: Prepare dependencies (CUDA >=12) | ||
if: ${{ matrix.cuda12 == 'true' }} | ||
run: | | ||
sed -i -e "/cuda-version/c\ - cuda-version ${{ matrix.cuda }}" \ | ||
-e "/gxx_linux-64/c\ - gxx_linux-64 ${{ matrix.gcc }}" \ | ||
environment.yml | ||
- name: Show dependency file | ||
run: cat environment.yml | ||
|
||
- name: Install dependencies | ||
run: micromamba env create -n uammd -f environment.yml | ||
|
||
- name: Install Mamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: environment.yml | ||
cache-environment: false | ||
cache-downloads: true | ||
env: | ||
CONDA_OVERRIDE_CUDA: ${{ matrix.nvcc }} | ||
|
||
|
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,24 @@ | ||
name: Build Documentation | ||
|
||
on: | ||
push: | ||
branches: [ master, v2.x ] | ||
pull_request: | ||
branches: [ master, v2.x ] | ||
|
||
jobs: | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install docs dependencies | ||
run: | | ||
pip install -r docs/requirements.txt | ||
shell: bash -el {0} | ||
|
||
- name: Build Sphinx Documentation | ||
run: | | ||
cd docs | ||
make html | ||
shell: bash -el {0} |
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,17 @@ | ||
|
||
version: 2 | ||
|
||
build: | ||
os: "ubuntu-22.04" | ||
tools: | ||
python: "3.11" | ||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
python: | ||
install: | ||
- requirements: docs/requirements.txt | ||
|
||
formats: | ||
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
name: uammd | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- cmake >=3.22 | ||
- cudatoolkit 11.8.* | ||
- gxx_linux-64 10.3.* | ||
- cuda-version 12.* | ||
- gxx_linux-64 11.* | ||
- cuda-libraries-dev | ||
- cuda-nvcc | ||
- make | ||
- nvcc_linux-64 11.8 | ||
- sysroot_linux-64 2.17 | ||
- mkl-devel | ||
- pybind11 | ||
- python 3.10.* | ||
- python 3.11.* |
Oops, something went wrong.