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

WIP: testing cocde coverage #43

Merged
merged 10 commits into from
Aug 5, 2020
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
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ jobs:
env:
OCCA_DIR: /home/runner/work/libparanumal/libparanumal/occa/
LD_LIBRARY_PATH: /home/runner/work/libparanumal/libparanumal/occa/lib
LIBP_COVERAGE: 1
- name: Test
run: |
echo ${LD_LIBRARY_PATH}
ls ${OCCA_DIR}/lib
make test
make test LIBP_COVERAGE=1
bash <(curl --no-buffer -s https://codecov.io/bash) -x gcov
env:
OCCA_DIR: /home/runner/work/libparanumal/libparanumal/occa/
LD_LIBRARY_PATH: /home/runner/work/libparanumal/libparanumal/occa/lib
LIBP_COVERAGE: 1
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
![Build](https://github.com/paranumal/libparanumal/workflows/Build/badge.svg)
[![codecov](https://codecov.io/gh/paranumal/libparanumal/branch/master/graph/badge.svg)](https://codecov.io/gh/paranumal/libparanumal)

## libParanumal
An experimental set of finite element flow solvers for heterogeneous (GPU/CPU) systems. The initial development of libParanumal was performed by the [Parallel Numerical Algorithms Group at Virginia Tech](http://paranumal.com).
Expand Down
14 changes: 10 additions & 4 deletions make.top
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,17 @@ export LIBP_MPICC = mpicc
export LIBP_MPICXX= mpic++
export LIBP_LD = mpic++

export LIBP_CFLAGS=-O2 -fopenmp -g -Wall -Wshadow -Wno-unused-function
export LIBP_MPICFLAGS=$(LIBP_CFLAGS)
export LIBP_CFLAGS=-O2 -fopenmp -g -Wall -Wshadow -Wno-unused-function
export LIBP_MPICFLAGS=$(LIBP_CFLAGS)

export LIBP_CXXFLAGS=-O2 -fopenmp -g -Wall -Wshadow -Wno-unused-function -std=c++11
export LIBP_MPICXXFLAGS=$(LIBP_CXXFLAGS)
export LIBP_CXXFLAGS=-O2 -fopenmp -g -Wall -Wshadow -Wno-unused-function -std=c++11
export LIBP_MPICXXFLAGS=$(LIBP_CXXFLAGS)

ifeq (1,${LIBP_COVERAGE})
export LIBP_CFLAGS+=--coverage
export LIBP_CXXFLAGS+=--coverage
export LIBP_MPICXXFLAGS+=--coverage
endif

export LIBP_LIBS=-L$(OCCA_DIR)/lib -locca $(links)

Expand Down