Skip to content

Commit

Permalink
modify CUDA test
Browse files Browse the repository at this point in the history
  • Loading branch information
dzzz2001 committed May 1, 2024
1 parent 1439426 commit 91c5fd8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: CUDA Test

on:
workflow_dispatch:
pull_request:

jobs:
test:
Expand All @@ -21,4 +22,8 @@ jobs:
cmake -B build -DUSE_CUDA=ON -DBUILD_TESTING=ON
cmake --build build -j4
cmake --install build
- name: Test
run: |
cd tests/integrate
bash Autotest.sh -n 2 -r '^[^#].*_.*(?<=GPU)'
# TODO: add tests
4 changes: 2 additions & 2 deletions tests/integrate/Autotest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ stress_threshold=0.001
# check accuracy
ca=8
# regex of case name
case="^[^#].*_.*$"
case='^[^#].*_.*(?<!GPU)$'
# enable AddressSanitizer
sanitize=false

Expand Down Expand Up @@ -167,7 +167,7 @@ check_out(){
test -e CASES || (echo "Plese specify tests." && exit 1)
which $abacus > /dev/null || (echo "No ABACUS executable was found." && exit 1)

testdir=`cat CASES | grep -E $case`
testdir=`cat CASES | grep -P $case`
failed=0
failed_case_list=()
ok=0
Expand Down

0 comments on commit 91c5fd8

Please sign in to comment.