Skip to content

ci: ctest --parallel #11546

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

Closed
wants to merge 2 commits into from
Closed
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
36 changes: 11 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ jobs:

- name: Test
id: cmake_test
run: |
cd build
ctest -L 'main|curl' --verbose --timeout 900
run: ctest --parallel --test-dir build -L 'main|curl' --verbose --timeout 900

- name: Determine tag name
id: tag
Expand Down Expand Up @@ -142,9 +140,7 @@ jobs:

- name: Test
id: cmake_test
run: |
cd build
ctest -L main --verbose --timeout 900
run: ctest --parallel --test-dir build -L main --verbose --timeout 900

- name: Determine tag name
id: tag
Expand Down Expand Up @@ -209,9 +205,7 @@ jobs:

- name: Test
id: cmake_test
run: |
cd build
ctest -L 'main|curl' --verbose --timeout 900
run: ctest --parallel --test-dir build -L 'main|curl' --verbose --timeout 900

- name: Test llama2c conversion
id: llama2c_test
Expand Down Expand Up @@ -306,9 +300,7 @@ jobs:

- name: Test
id: cmake_test
run: |
cd build
ctest -L main --verbose --timeout 900
run: ctest --parallel --test-dir build -L main --verbose --timeout 900

ubuntu-latest-cmake-rpc:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -343,9 +335,7 @@ jobs:

- name: Test
id: cmake_test
run: |
cd build
ctest -L main --verbose
run: ctest --parallel --test-dir build -L main --verbose

ubuntu-22-cmake-vulkan:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -380,10 +370,8 @@ jobs:

- name: Test
id: cmake_test
run: |
cd build
# This is using llvmpipe and runs slower than other backends
ctest -L main --verbose --timeout 1800
# This is using llvmpipe and runs slower than other backends
run: ctest --parallel --test-dir build -L main --verbose --timeout 1800

ubuntu-22-cmake-hip:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -810,15 +798,15 @@ jobs:
-DOPENCL_HEADERS_BUILD_TESTING=OFF `
-DOPENCL_HEADERS_BUILD_CXX_TESTS=OFF `
-DCMAKE_INSTALL_PREFIX="$env:RUNNER_TEMP/opencl-arm64-release"
cmake --build . --target install
cmake --build . --target install -j
git clone https://github.com/KhronosGroup/OpenCL-ICD-Loader
cd OpenCL-ICD-Loader
mkdir build-arm64-release && cd build-arm64-release
cmake .. `
-A arm64 `
-DCMAKE_PREFIX_PATH="$env:RUNNER_TEMP/opencl-arm64-release" `
-DCMAKE_INSTALL_PREFIX="$env:RUNNER_TEMP/opencl-arm64-release"
cmake --build . --target install --config release
cmake --build . --target install --config release -j

- name: Build
id: cmake_build
Expand Down Expand Up @@ -850,9 +838,7 @@ jobs:
id: cmake_test
# not all machines have native AVX-512
if: ${{ matrix.build != 'msvc-arm64' && matrix.build != 'llvm-arm64' && matrix.build != 'llvm-arm64-opencl-adreno' && matrix.build != 'kompute-x64' && matrix.build != 'vulkan-x64' && (matrix.build != 'avx512-x64' || env.HAS_AVX512F == '1') }}
run: |
cd build
ctest -L main -C Release --verbose --timeout 900
run: ctest --parallel --test-dir build -L main -C Release --verbose --timeout 900

- name: Test (Intel SDE)
id: cmake_test_sde
Expand All @@ -865,7 +851,7 @@ jobs:
$sde = $(join-path $env:RUNNER_TEMP sde-external-${env:SDE_VERSION}-win/sde.exe)
cd build
$env:LLAMA_SKIP_TESTS_SLOW_ON_EMULATOR = 1
& $sde -future -- ctest -L main -C Release --verbose --timeout 900
& $sde -future -- ctest --parallel -L main -C Release --verbose --timeout 900

- name: Determine tag name
id: tag
Expand Down
Loading