mirror of
https://git.adityakumar.xyz/llama.cpp.git
synced 2024-11-09 23:29:44 +00:00
Fix build for gcc 8 and test in CI (#1154)
This commit is contained in:
parent
e4cf982e0d
commit
2ec83428de
2 changed files with 6 additions and 6 deletions
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
@ -19,8 +19,8 @@ env:
|
||||||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ubuntu-latest-make:
|
ubuntu-focal-make:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone
|
- name: Clone
|
||||||
|
@ -31,12 +31,12 @@ jobs:
|
||||||
id: depends
|
id: depends
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install build-essential
|
sudo apt-get install build-essential gcc-8
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
id: make_build
|
id: make_build
|
||||||
run: |
|
run: |
|
||||||
make
|
CC=gcc-8 make
|
||||||
|
|
||||||
ubuntu-latest-cmake:
|
ubuntu-latest-cmake:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -216,7 +216,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
needs:
|
needs:
|
||||||
- ubuntu-latest-make
|
- ubuntu-focal-make
|
||||||
- ubuntu-latest-cmake
|
- ubuntu-latest-cmake
|
||||||
- macOS-latest-make
|
- macOS-latest-make
|
||||||
- macOS-latest-cmake
|
- macOS-latest-cmake
|
||||||
|
|
2
ggml.c
2
ggml.c
|
@ -436,7 +436,7 @@ static const size_t CACHE_LINE_SIZE_F32 = CACHE_LINE_SIZE/sizeof(float);
|
||||||
static inline __m128i bytes_from_nibbles_16(const uint8_t * rsi)
|
static inline __m128i bytes_from_nibbles_16(const uint8_t * rsi)
|
||||||
{
|
{
|
||||||
// Load 8 bytes from memory
|
// Load 8 bytes from memory
|
||||||
__m128i tmp = _mm_loadu_si64( ( const __m128i* )rsi );
|
__m128i tmp = _mm_loadl_epi64( ( const __m128i* )rsi );
|
||||||
|
|
||||||
// Expand bytes into uint16_t values
|
// Expand bytes into uint16_t values
|
||||||
__m128i bytes = _mm_cvtepu8_epi16( tmp );
|
__m128i bytes = _mm_cvtepu8_epi16( tmp );
|
||||||
|
|
Loading…
Reference in a new issue