@@ -106,83 +106,3 @@ jobs:
106106 wget https://huggingface.co/karpathy/tinyllamas/resolve/main/stories260K/stories260K.bin
107107 ./bin/llama-convert-llama2c-to-ggml --copy-vocab-from-model ./tok512.bin --llama2c-model stories260K.bin --llama2c-output-model stories260K.gguf
108108 ./bin/llama-completion -m stories260K.gguf -p "One day, Lily met a Shoggoth" -n 500 -c 256
109-
110- ubuntu-riscv64-native-sanitizer :
111- runs-on : ubuntu-24.04-riscv
112-
113- continue-on-error : true
114-
115- strategy :
116- matrix :
117- sanitizer : [ADDRESS, THREAD, UNDEFINED]
118- build_type : [Debug]
119-
120- steps :
121- - name : Install dependencies
122- run : |
123- # Set gcc-14 and g++-14 as the default compilers
124- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 100
125- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 100
126-
127- git lfs install
128-
129- - name : GCC version check
130- run : |
131- gcc --version
132- g++ --version
133-
134- - name : Clone
135- id : checkout
136- uses : actions/checkout@v6
137-
138- # note: sparing some ccache since these jobs run on dedicated runners that are not part of the organitzation
139- # - name: ccache
140- # uses: ggml-org/ccache-action@v1.2.24
141- # with:
142- # key: riscv-ubuntu-native-sanitizer-${{ matrix.sanitizer }}-${{ matrix.build_type }}
143- # evict-old-files: 1d
144- # save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
145-
146- - name : Build
147- id : cmake_build
148- if : ${{ matrix.sanitizer != 'THREAD' }}
149- run : |
150- cmake -B build \
151- -DLLAMA_OPENSSL=OFF \
152- -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
153- -DGGML_OPENMP=ON \
154- -DLLAMA_BUILD_EXAMPLES=ON \
155- -DLLAMA_BUILD_TOOLS=ON \
156- -DLLAMA_BUILD_TESTS=OFF \
157- -DCMAKE_C_COMPILER_LAUNCHER=ccache \
158- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
159- -DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON \
160- -DCMAKE_C_COMPILER=riscv64-linux-gnu-gcc-14 \
161- -DCMAKE_CXX_COMPILER=riscv64-linux-gnu-g++-14
162-
163- cmake --build build --config ${{ matrix.build_type }} -j $(nproc)
164-
165- - name : Build (no OpenMP)
166- id : cmake_build_no_openmp
167- if : ${{ matrix.sanitizer == 'THREAD' }}
168- run : |
169- cmake -B build \
170- -DLLAMA_OPENSSL=OFF \
171- -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
172- -DGGML_OPENMP=OFF \
173- -DLLAMA_BUILD_EXAMPLES=ON \
174- -DLLAMA_BUILD_TOOLS=ON \
175- -DLLAMA_BUILD_TESTS=OFF \
176- -DCMAKE_C_COMPILER_LAUNCHER=ccache \
177- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
178- -DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON \
179- -DCMAKE_C_COMPILER=riscv64-linux-gnu-gcc-14 \
180- -DCMAKE_CXX_COMPILER=riscv64-linux-gnu-g++-14
181-
182- cmake --build build --config ${{ matrix.build_type }} -j $(nproc)
183-
184- - name : Test
185- id : cmake_test
186- run : |
187- cd build
188- ctest -L main --verbose --timeout 900
0 commit comments