Skip to content

Add switches for some functions to compile differently for host vs device #1985

Add switches for some functions to compile differently for host vs device

Add switches for some functions to compile differently for host vs device #1985

Workflow file for this run

name: Tests Full
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
tests:
name: Run Unit and Regression Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set system to non-interactive mode
run: export DEBIAN_FRONTEND=noninteractive
- name: install dependencies
run: |
sudo apt-get update -y -qq
sudo apt-get install -y --allow-downgrades --allow-remove-essential --allow-change-held-packages -qq build-essential gfortran libhdf5-serial-dev
pip install numpy
pip install h5py
- name: build and run tests
run: |
mkdir -p bin
cd bin
mkdir -p ${HOME}/install
cmake -DCMAKE_INSTALL_PREFIX=${HOME}/install \
-DSINGULARITY_USE_SPINER=ON \
-DSINGULARITY_BUILD_TESTS=ON \
-DSINGULARITY_BUILD_EXAMPLES=ON \
-DSINGULARITY_BUILD_PYTHON=ON \
-DSINGULARITY_TEST_SESAME=OFF \
-DSINGULARITY_USE_HELMHOLTZ=ON \
-DSINGULARITY_TEST_HELMHOLTZ=ON \
-DSINGULARITY_FORCE_SUBMODULE_MODE=ON \
-DSINGULARITY_PLUGINS=$(pwd)/../example/plugin \
..
#-DSINGULARITY_TEST_PYTHON=ON \
#-DSINGULARITY_TEST_STELLAR_COLLAPSE=ON \
#..
make
make install
ctest --output-on-failure