Skip to content

Commit

Permalink
Move analyze & coverage to GHA.
Browse files Browse the repository at this point in the history
But haven't uploaded these yet.
  • Loading branch information
liuliu committed Jun 9, 2024
1 parent ed3effd commit f9d0d88
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 15 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/analyze.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: ubsan-unit-tests
on: [push]
jobs:
build:
runs-on: rtx6000-4x
steps:
- uses: actions/checkout@v2
- name: configure
run: |
cd lib && ./configure --enable-sm80 --disable-openmp && cd ..
- name: analyze
run: |
cd lib && scan-build -o ../_analyze --use-cc clang make
16 changes: 16 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: ubsan-unit-tests
on: [push]
jobs:
build:
runs-on: rtx6000-4x
steps:
- uses: actions/checkout@v2
- name: configure & build
run: |
cd lib && ./configure --enable-sm80 && cd ..
make -j 64 -C test COVER=1 all.tests
- name: tests
run: |
make -C test check
- name: coverage report
cd test && ./cover-gen.rb ../_coverage
2 changes: 1 addition & 1 deletion .github/workflows/cuda-int-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
- name: configure & build
run: |
cd lib && ./configure --enable-sm80 && cd ..
make -j 32 -C test/int/nnc
make -j 64 -C test/int/nnc
- name: integration tests
run: |
make -C test/int/nnc test
2 changes: 1 addition & 1 deletion .github/workflows/macos-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: macos-unit-tests
on: [push]
jobs:
build:
runs-on: macos-12
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install libjpeg and libpng
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: undef-unit-tests
name: ubsan-unit-tests
on: [push]
jobs:
build:
Expand All @@ -8,11 +8,11 @@ jobs:
- name: configure & build
run: |
cd lib && ./configure --enable-sm80 && cd ..
make -j 32 -C lib undef
make -j 32 -C bin undef
make -j 32 -C bin/nnc undef
make -j 32 -C bin/cuda undef
make -j 32 -C test undef
make -j 64 -C lib ubsan
make -j 64 -C bin ubsan
make -j 64 -C bin/nnc ubsan
make -j 64 -C bin/cuda ubsan
make -j 64 -C test ubsan
- name: tests
run: |
make -C test test
14 changes: 7 additions & 7 deletions lib/scheme.mk
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ asan: all

# Undefined Scheme

UNDEF ?= 0
ifeq ($(UNDEF), 1)
UBSAN ?= 0
ifeq ($(UBSAN), 1)
CFLAGS += -g -fno-omit-frame-pointer -O0 -fsanitize=address -fsanitize=undefined
NVFLAGS += -g -O0
LDFLAGS += -g -fno-omit-frame-pointer -O0 -fsanitize=address -fsanitize=undefined
endif

undef: CFLAGS += -g -fno-omit-frame-pointer -O0 -fsanitize=address -fsanitize=undefined
undef: NVFLAGS += -g -O0
undef: LDFLAGS += -g -fno-omit-frame-pointer -O0 -fsanitize=address -fsanitize=undefined
undef: export UNDEF = 1
undef: all
ubsan: CFLAGS += -g -fno-omit-frame-pointer -O0 -fsanitize=address -fsanitize=undefined
ubsan: NVFLAGS += -g -O0
ubsan: LDFLAGS += -g -fno-omit-frame-pointer -O0 -fsanitize=address -fsanitize=undefined
ubsan: export UBSAN = 1
ubsan: all

# Coverage Scheme

Expand Down

0 comments on commit f9d0d88

Please sign in to comment.