pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: MengMengDaXiaoJi (@MengMengDaXiaoJi) <noreply+MengMengDaXiaoJi@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] PR #948: Add RISC-V64 architecture support in Makefile
Date: Tue, 13 Jan 2026 07:36:34 +0000
Message-ID: <gh-pgvector-pgvector-948@github.com> (raw)

On RISC-V64 platform, '-march=native' is not supported, so we should use '-march=rv64gc' instead.

inline patch 1: Makefile (+5/-0 lines) download inline-1.patchdiff --git a/Makefile b/Makefile index d98d73b8c..f9a2b15da 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,11 @@ ifneq ($(filter ppc64%, $(shell uname -m)), ) OPTFLAGS = endif +# RISC-V64 doesn't support -march=native +ifeq ($(shell uname -m), riscv64) + OPTFLAGS = +endif + # For auto-vectorization: # - GCC (needs -ftree-vectorize OR -O3) - https://gcc.gnu.org/projects/tree-ssa/vectorization.html # - Clang (could use pragma instead) - https://llvm.org/docs/Vectorizers.html

view thread (7+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-948@github.com>
Permalink:  ../gh-pgvector-pgvector-948@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