Skip to content
Merged
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
21 changes: 0 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ jobs:
run: |
sudo apt-get update -q
sudo apt-get install libopenmpi-dev -y --no-install-recommends

- name: Install the rust-ptx-linker
run: |
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh
sudo ./llvm.sh $(rustc --version -v | grep -oP "LLVM version: \K\d+")
rm llvm.sh
cargo install rust-ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force

- name: Check the default features
run: cargo check
Expand All @@ -64,13 +57,6 @@ jobs:
run: |
sudo apt-get update -q
sudo apt-get install libopenmpi-dev -y --no-install-recommends

- name: Install the rust-ptx-linker
run: |
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh
sudo ./llvm.sh $(rustc --version -v | grep -oP "LLVM version: \K\d+")
rm llvm.sh
cargo install rust-ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force

- name: Run the test-suite
run: cargo test --workspace --no-fail-fast
Expand Down Expand Up @@ -104,13 +90,6 @@ jobs:
sudo apt-get update -q
sudo apt-get install libopenmpi-dev -y --no-install-recommends

- name: Install the rust-ptx-linker
run: |
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh
sudo ./llvm.sh $(rustc --version -v | grep -oP "LLVM version: \K\d+")
rm llvm.sh
cargo install rust-ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force

- name: Check the code style for the default features
run: cargo clippy -- -D warnings

Expand Down
35 changes: 18 additions & 17 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,26 @@ jobs:
sudo apt-get update -q
sudo apt-get install libopenmpi-dev -y --no-install-recommends

- name: Install the Rust toolchain
- name: Generate the coverage data
run: |
cargo install grcov --force --locked
rustup component add llvm-tools-preview

- name: Install the rust-ptx-linker
cargo clean
cargo \
--config "target.'cfg(all())'.rustflags=['-Cinstrument-coverage']" \
test --workspace --all-targets
env:
CARGO_INCREMENTAL: 0
RUSTDOCFLAGS: -Cinstrument-coverage
LLVM_PROFILE_FILE: coverage/coverage-%p-%m.profraw

- name: Download grcov
run: |
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh
sudo ./llvm.sh $(rustc --version -v | grep -oP "LLVM version: \K\d+")
rm llvm.sh
cargo install rust-ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force

- name: Generate the code coverage
curl -sL https://github.com/mozilla/grcov/releases/download/v0.8.18/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf -
chmod +x ./grcov

- name: Generate the coverage reports
run: |
RUSTFLAGS="-Cinstrument-coverage" \
LLVM_PROFILE_FILE="codecov-%p-%m.profraw" \
cargo test --workspace

grcov . -s . --binary-path ./target/debug/ \
-t cobertura -o cobertura.xml --branch \
./grcov . -s . --binary-path ./target/debug/deps \
-t lcov -o coverage.lcov --branch \
--keep-only "necsim/*" \
--keep-only "rustcoalescence/*" \
--ignore-not-existing \
Expand All @@ -62,4 +62,5 @@ jobs:
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.lcov
fail_ci_if_error: true
7 changes: 0 additions & 7 deletions .github/workflows/rustdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ jobs:
sudo apt-get update -q
sudo apt-get install libopenmpi-dev -y --no-install-recommends

- name: Install the rust-ptx-linker
run: |
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh
sudo ./llvm.sh $(rustc --version -v | grep -oP "LLVM version: \K\d+")
rm llvm.sh
cargo install rust-ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force

- name: Build the Documentation
run: |
RUSTDOCFLAGS="\
Expand Down
18 changes: 8 additions & 10 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ RUN echo "debconf debconf/frontend select Noninteractive" | sudo debconf-set-sel
echo "keyboard-configuration keyboard-configuration/layout select 'English (US)'" | sudo debconf-set-selections && \
echo "keyboard-configuration keyboard-configuration/layoutcode select 'us'" | sudo debconf-set-selections && \
echo "resolvconf resolvconf/linkify-resolvconf boolean false" | sudo debconf-set-selections && \
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin && \
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600 && \
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub && \
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /" && \
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb -O cuda_keyring.deb && \
sudo dpkg -i cuda_keyring.deb && \
rm cuda_keyring.deb && \
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin && \
sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600 && \
sudo add-apt-repository deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/ / && \
sudo apt-get update -q && \
sudo apt-get install cuda -y --no-install-recommends && \
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && \
sudo ./llvm.sh $(rustc --version -v | grep -oP "LLVM version: \K\d+") && \
rm llvm.sh && \
sudo apt-get install cuda-12-3 -y --no-install-recommends && \
sudo apt-get clean autoclean && \
sudo apt-get autoremove -y && \
sudo rm -rf /var/lib/{apt,dpkg,cache,log}/
Expand All @@ -31,6 +30,5 @@ RUN sudo apt-get update -q && \
sudo apt-get autoremove -y && \
sudo rm -rf /var/lib/{apt,dpkg,cache,log}/

RUN cargo install rust-ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force && \
cargo install cargo-mpirun --force && \
RUN cargo install cargo-mpirun --force && \
cargo install cargo-reaper --git https://github.com/juntyr/grim-reaper --force
Loading