Skip to content

Added wget to CI

Added wget to CI #7

Workflow file for this run

name: CUDA CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
cuda-build-and-test:
runs-on: ubuntu-latest
container:
image: nvidia/cuda:11.8.0-devel-ubuntu20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: |
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y \
cmake \
build-essential \
g++ \
gcc \
libboost-all-dev \
libhdf5-dev \
libgmp-dev \
libtbb-dev \
libopenmpi-dev \
openmpi-bin \
libjsoncpp-dev \
python3.7 \
python3-pip \
python3-dev \
wget
- name: Exporting OpenMP and CUDA environment variables
run: |
export OMP_PROC_BIND=spread
export OMP_PLACES=threads
export CUDA_VISIBLE_DEVICES=0
- name: Download dependencies
run: |
wget -c https://drive.google.com/file/d/1BaMXRJLpsgOCl_lNpe9UcumxB9SfFvP9/view?usp=drive_link -P .github/dependencies/
wget -c https://drive.google.com/file/d/1z3JnT7Yctd0Hb8NqNEMX28rd3J1kuP7e/view?usp=drive_link -P .github/dependencies/
wget -c https://drive.google.com/file/d/153V-ZeFh47PAbkDta_K8RsUEeqFhXlaF/view?usp=drive_link -P .github/dependencies/
- name: Extract Trilinos
run: |
mkdir -p /usr/local/Trilinos
tar -xzvf .github/dependencies/trilinos-install-16.0-serial-omp-mpi-cuda.tar.gz -C /usr/local/Trilinos
- name: Extract CGAL
run: |
mkdir -p /usr/local/CGAL
tar -xzvf .github/dependencies/cgal-install-6.0.1.tar.gz -C /usr/local/CGAL
- name: Extract nvcc_wrapper
run: |
tar -xzvf .github/dependencies/nvcc_wrapper.tar.gz -C /usr/local/bin
chmod +x /usr/local/bin/nvcc_wrapper
- name: Configure CMake
run: |
mkdir -pv build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
- name: Build
run: |
cd build
make -j$(nproc)
- name: Run Tests
run: |
cd build
ctest --output-on-failure