pg.ddx.io pgvector/pgvector GitHub issues and pull requests
help / color / mirror / Atom feedFrom: jkatz (@jkatz) <noreply+jkatz@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] PR #531: Add AVX-512 FP16 implementation of halfvec distance functions
Date: Wed, 24 Apr 2024 17:34:11 +0000
Message-ID: <gh-pgvector-pgvector-531-c2075481844@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-531@github.com>
References: <gh-pgvector-pgvector-531@github.com>
@lucagiac81 I'm having issues compiling on an EC2 r7i. This is using gcc12 and clang-15. Here is some truncated output:
```
/usr/bin/clang-15 -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Xclang -no-opaque-pointers -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/usr/include/postgresql/16/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/halfutils.bc src/halfutils.c
src/halfutils.c:92:9: error: expected ';' after expression
__m512h dist = _mm512_setzero_ph();
^
;
src/halfutils.c:92:2: error: use of undeclared identifier '__m512h'
__m512h dist = _mm512_setzero_ph();
^
src/halfutils.c:92:11: error: use of undeclared identifier 'dist'
__m512h dist = _mm512_setzero_ph();
^
src/halfutils.c:92:18: warning: call to undeclared function '_mm512_setzero_ph'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
__m512h dist = _mm512_setzero_ph();
^
src/halfutils.c:95:10: error: expected ';' after expression
__m512h axi = _mm512_loadu_ph(ax+i);
^
;
src/halfutils.c:95:3: error: use of undeclared identifier '__m512h'
__m512h axi = _mm512_loadu_ph(ax+i);
^
src/halfutils.c:95:11: error: use of undeclared identifier 'axi'; did you mean 'ax'?
__m512h axi = _mm512_loadu_ph(ax+i);
^~~
ax
src/halfutils.c:87:52: note: 'ax' declared here
HalfvecL2SquaredDistanceAvx512Fp16(int dim, half * ax, half * bx)
```
view thread (32+ messages) latest in thread
Message-ID: <gh-pgvector-pgvector-531-c2075481844@github.com>
Permalink: ../gh-pgvector-pgvector-531-c2075481844@github.com/
·
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox