Skip to content

Commit 1b9994f

Browse files
committed
ci : enable test-grad0
1 parent 2392f7a commit 1b9994f

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ jobs:
4141
ubuntu-latest-cmake:
4242
runs-on: ubuntu-latest
4343

44+
env:
45+
GGML_NLOOP: 3
46+
GGML_NITER: 1
47+
4448
steps:
4549
- name: Clone
4650
id: checkout
@@ -64,11 +68,15 @@ jobs:
6468
id: cmake_test
6569
run: |
6670
cd build
67-
ctest --verbose
71+
ctest --verbose --timeout 900
6872
6973
ubuntu-latest-cmake-sanitizer:
7074
runs-on: ubuntu-latest
7175

76+
env:
77+
GGML_NLOOP: 3
78+
GGML_NITER: 1
79+
7280
continue-on-error: true
7381

7482
strategy:
@@ -99,7 +107,7 @@ jobs:
99107
id: cmake_test
100108
run: |
101109
cd build
102-
ctest --verbose
110+
ctest --verbose --timeout 900
103111
104112
macOS-latest-make:
105113
runs-on: macos-latest
@@ -123,6 +131,10 @@ jobs:
123131
macOS-latest-cmake:
124132
runs-on: macos-latest
125133

134+
env:
135+
GGML_NLOOP: 3
136+
GGML_NITER: 1
137+
126138
steps:
127139
- name: Clone
128140
id: checkout
@@ -147,10 +159,15 @@ jobs:
147159
id: cmake_test
148160
run: |
149161
cd build
150-
ctest --verbose
162+
ctest --verbose --timeout 900
151163
152164
windows-latest-cmake:
153165
runs-on: windows-latest
166+
167+
env:
168+
GGML_NLOOP: 3
169+
GGML_NITER: 1
170+
154171
env:
155172
OPENBLAS_VERSION: 0.3.23
156173
OPENCL_VERSION: 2023.04.17
@@ -249,7 +266,7 @@ jobs:
249266
if: ${{ matrix.build != 'clblast' && (matrix.build != 'avx512' || env.HAS_AVX512F == '1') }} # Test AVX-512 only when possible
250267
run: |
251268
cd build
252-
ctest -C Release --verbose
269+
ctest -C Release --verbose --timeout 900
253270
254271
- name: Get commit hash
255272
id: commit

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ llama_add_test(test-quantize-fns.cpp)
1010
llama_add_test(test-quantize-perf.cpp)
1111
llama_add_test(test-sampling.cpp)
1212
llama_add_test(test-tokenizer-0.cpp ${CMAKE_CURRENT_SOURCE_DIR}/../models/ggml-vocab.bin)
13-
# llama_add_test(test-grad0.c) # SLOW
13+
llama_add_test(test-grad0.c) # SLOW
1414
# llama_add_test(test-opt.c) # SLOW

0 commit comments

Comments
 (0)