Skip to content

Commit

Permalink
Enable validation layers for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sergcpp committed Jul 11, 2024
1 parent b11eb57 commit 30145e9
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/actions/test-sde/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ runs:
- run: |
WORK_DIR=`pwd`
cd ../../builds/Ray/tests
sde ${{ inputs.sde-args }} -- $WORK_DIR/${{ inputs.bin-dir }}/test_Ray -j4 ${{ inputs.test-args }}
sde ${{ inputs.sde-args }} -- $WORK_DIR/${{ inputs.bin-dir }}/test_Ray ${{ inputs.test-args }}
shell: bash
2 changes: 1 addition & 1 deletion .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ runs:
chmod +x ./${{ inputs.bin-dir }}/${{ inputs.bin-name }}
WORK_DIR=`pwd`
cd ../../builds/Ray/tests
$WORK_DIR/${{ inputs.bin-dir }}/${{ inputs.bin-name }} -j4 ${{ inputs.test-args }}
$WORK_DIR/${{ inputs.bin-dir }}/${{ inputs.bin-name }} ${{ inputs.test-args }}
shell: bash
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-x86_64"
test-args: "--nogpu"
test-args: "--nogpu -j4"
test-windows-x86_64-gpu-nv:
runs-on: [ windows, x86_64, nv ]
needs:
Expand All @@ -115,7 +115,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-x86_64"
test-args: "--device NV --nocpu"
test-args: "--device NV --nocpu -vl 1"
test-windows-x86_64-gpu-amd:
runs-on: [ windows, x86_64, amd ]
needs:
Expand All @@ -131,7 +131,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-x86_64"
test-args: "--device AMD --nocpu"
test-args: "--device AMD --nocpu -vl 1"
test-windows-x86_64-gpu-arc:
runs-on: [ windows, x86_64, arc ]
needs:
Expand All @@ -147,7 +147,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-x86_64"
test-args: "--device Arc --nocpu"
test-args: "--device Arc --nocpu -vl 1"
test-windows-x86_64-gpu-xe:
runs-on: [ windows, x86_64, xe ]
needs:
Expand All @@ -163,7 +163,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-x86_64"
test-args: "--device Xe --nocpu"
test-args: "--device Xe --nocpu -vl 1"
test-windows-arm64-cpu:
runs-on: [ windows, arm64 ]
needs:
Expand All @@ -179,7 +179,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-arm64"
test-args: "--nogpu"
test-args: "--nogpu -j4"
test-windows-arm64-gpu-adreno:
runs-on: [ windows, arm64, adreno ]
needs:
Expand All @@ -195,7 +195,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-arm64"
test-args: "--device Adreno --nocpu"
test-args: "--device Adreno --nocpu -vl 1"
test-linux-x86_64-cpu:
runs-on: [ linux, x86_64 ]
needs:
Expand All @@ -211,7 +211,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "linux-x86_64"
test-args: "--nogpu"
test-args: "--nogpu -j4"
test-linux-x86_64-gpu-amd:
runs-on: [ linux, x86_64, amd ]
needs:
Expand All @@ -227,7 +227,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "linux-x86_64"
test-args: "--device AMD --nocpu --nohwrt"
test-args: "--device AMD --nocpu --nohwrt -vl 1"
test-linux-x86_64-gpu-nv:
runs-on: [ linux, x86_64, nv ]
needs:
Expand All @@ -243,7 +243,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "linux-x86_64"
test-args: "--device NV --nocpu"
test-args: "--device NV --nocpu -vl 1"
test-macos-arm64-cpu:
runs-on: [ macos, arm64 ]
needs:
Expand All @@ -259,7 +259,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "macos-universal"
test-args: "--nogpu"
test-args: "--nogpu -j4"
test-macos-arm64-gpu-m1:
runs-on: [ macos, arm64, m1 ]
needs:
Expand All @@ -275,7 +275,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "macos-universal"
test-args: "--device M1 --nocpu"
test-args: "--device M1 --nocpu -vl 1"
test-macos-x86_64-cpu:
runs-on: [ macos, x86_64 ]
needs:
Expand All @@ -291,4 +291,4 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "macos-universal"
test-args: "--nogpu"
test-args: "--nogpu -j4"
28 changes: 14 additions & 14 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-x86_64"
test-args: "--nogpu"
test-args: "--nogpu -j4"
test-windows-x86_64-gpu-nv:
runs-on: [ windows, x86_64, nv ]
needs:
Expand Down Expand Up @@ -374,7 +374,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-arm64"
test-args: "--nogpu"
test-args: "--nogpu -j4"
test-windows-arm64-gpu-adreno:
runs-on: [ windows, arm64, adreno ]
needs:
Expand Down Expand Up @@ -406,7 +406,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "linux-x86_64"
test-args: "--nogpu"
test-args: "--nogpu -j4"
test-linux-x86_64-gpu-amd:
runs-on: [ linux, x86_64, amd ]
needs:
Expand Down Expand Up @@ -454,7 +454,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "macos-universal"
test-args: "--nogpu"
test-args: "--nogpu -j4"
test-macos-arm64-gpu-m1:
runs-on: [ macos, arm64, m1 ]
needs:
Expand Down Expand Up @@ -486,7 +486,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "macos-universal"
test-args: "--nogpu"
test-args: "--nogpu -j4"
test-windows-x86_64-cpu-sse2:
runs-on: [ windows, x86_64, win10 ]
needs:
Expand All @@ -502,7 +502,7 @@ jobs:
uses: ./.github/actions/test-sde
with:
bin-dir: "windows-x86_64"
test-args: "--arch SSE2 --nogpu"
test-args: "--arch SSE2 --nogpu -j4"
sde-args: "-p4p"
test-windows-x86_64-cpu-sse41:
runs-on: [ windows, x86_64, win10 ]
Expand All @@ -519,7 +519,7 @@ jobs:
uses: ./.github/actions/test-sde
with:
bin-dir: "windows-x86_64"
test-args: "--arch SSE41 --nogpu"
test-args: "--arch SSE41 --nogpu -j4"
sde-args: "-pnr"
test-windows-x86_64-cpu-avx:
runs-on: [ windows, x86_64 ]
Expand All @@ -536,7 +536,7 @@ jobs:
uses: ./.github/actions/test-sde
with:
bin-dir: "windows-x86_64"
test-args: "--arch AVX --nogpu"
test-args: "--arch AVX --nogpu -j4"
sde-args: "-snb"
test-windows-x86_64-cpu-avx2:
runs-on: [ windows, x86_64 ]
Expand All @@ -553,7 +553,7 @@ jobs:
uses: ./.github/actions/test-sde
with:
bin-dir: "windows-x86_64"
test-args: "--arch AVX2 --nogpu"
test-args: "--arch AVX2 --nogpu -j4"
sde-args: "-hsw"
test-windows-x86_64-cpu-avx512:
runs-on: [ windows, x86_64 ]
Expand All @@ -570,7 +570,7 @@ jobs:
uses: ./.github/actions/test-sde
with:
bin-dir: "windows-x86_64"
test-args: "--arch AVX512 --nogpu"
test-args: "--arch AVX512 --nogpu -j4"
sde-args: "-future"
test-linux-x86_64-cpu-tsan:
runs-on: [ linux, x86_64 ]
Expand All @@ -588,7 +588,7 @@ jobs:
with:
bin-name: "test_Ray-tsan"
bin-dir: "linux-x86_64-tsan"
test-args: "--nogpu"
test-args: "--nogpu -j4"
test-windows-x86_64-cpu-asan:
runs-on: [ windows, x86_64 ]
needs:
Expand All @@ -605,7 +605,7 @@ jobs:
with:
bin-name: "test_Ray-asan"
bin-dir: "windows-x86_64-asan"
test-args: "--nogpu"
test-args: "--nogpu -j4"
test-windows-x86_64-gpu-nv-asan:
runs-on: [ windows, x86_64, nv ]
needs:
Expand Down Expand Up @@ -638,7 +638,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-arm64"
test-args: "--nogpu --time_limit 2.95"
test-args: "--nogpu -j4 --time_limit 2.95"
test-windows-arm64-gpu-perf:
runs-on: [ windows, arm64, perf, adreno ]
needs:
Expand All @@ -654,4 +654,4 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-arm64"
test-args: "--nocpu --time_limit 5.4"
test-args: "--nocpu -j4 --time_limit 5.4"
4 changes: 1 addition & 3 deletions tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ int main(int argc, char *argv[]) {
threads_count = 1;
}

if (threads_count > 1) {
g_minimal_output = true;
}
g_minimal_output = true;

#if defined(_WIN32) && !defined(__clang__)
const bool enable_fp_exceptions = !nocpu || full_tests;
Expand Down

0 comments on commit 30145e9

Please sign in to comment.