Skip to content

Commit 2ec8342

Browse files
authored
Fix build for gcc 8 and test in CI (#1154)
1 parent e4cf982 commit 2ec8342

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ env:
1919
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
2020

2121
jobs:
22-
ubuntu-latest-make:
23-
runs-on: ubuntu-latest
22+
ubuntu-focal-make:
23+
runs-on: ubuntu-20.04
2424

2525
steps:
2626
- name: Clone
@@ -31,12 +31,12 @@ jobs:
3131
id: depends
3232
run: |
3333
sudo apt-get update
34-
sudo apt-get install build-essential
34+
sudo apt-get install build-essential gcc-8
3535
3636
- name: Build
3737
id: make_build
3838
run: |
39-
make
39+
CC=gcc-8 make
4040
4141
ubuntu-latest-cmake:
4242
runs-on: ubuntu-latest
@@ -216,7 +216,7 @@ jobs:
216216
runs-on: ubuntu-latest
217217

218218
needs:
219-
- ubuntu-latest-make
219+
- ubuntu-focal-make
220220
- ubuntu-latest-cmake
221221
- macOS-latest-make
222222
- macOS-latest-cmake

ggml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ static const size_t CACHE_LINE_SIZE_F32 = CACHE_LINE_SIZE/sizeof(float);
436436
static inline __m128i bytes_from_nibbles_16(const uint8_t * rsi)
437437
{
438438
// Load 8 bytes from memory
439-
__m128i tmp = _mm_loadu_si64( ( const __m128i* )rsi );
439+
__m128i tmp = _mm_loadl_epi64( ( const __m128i* )rsi );
440440

441441
// Expand bytes into uint16_t values
442442
__m128i bytes = _mm_cvtepu8_epi16( tmp );

0 commit comments

Comments
 (0)