pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] PR #948: Add RISC-V64 architecture support in Makefile
7+ messages / 2 participants
[nested] [flat]

* [pgvector/pgvector] PR #948: Add RISC-V64 architecture support in Makefile
@ 2026-01-13 07:36  "MengMengDaXiaoJi (@MengMengDaXiaoJi)" <noreply+MengMengDaXiaoJi@github.com>
  0 siblings, 0 replies; 7+ messages in thread

From: MengMengDaXiaoJi (@MengMengDaXiaoJi) @ 2026-01-13 07:36 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

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
^ permalink raw [nested|flat] 7+ messages in thread

* Re: [pgvector/pgvector] PR #948: Add RISC-V64 architecture support in Makefile
@ 2026-01-13 16:53  "ankane (@ankane)" <noreply+ankane@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: ankane (@ankane) @ 2026-01-13 16:53 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @MengMengDaXiaoJi, thanks for the PR. Let's skip passing `-march` for RISC-V64 (similar to PowerPC).

Edit: It should also be possible to simplify the check to `ifeq ($(shell uname -m), riscv64)`

^ permalink  raw  [nested|flat] 7+ messages in thread

* Re: [pgvector/pgvector] PR #948: Add RISC-V64 architecture support in Makefile
@ 2026-01-14 02:28  "MengMengDaXiaoJi (@MengMengDaXiaoJi)" <noreply+MengMengDaXiaoJi@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: MengMengDaXiaoJi (@MengMengDaXiaoJi) @ 2026-01-14 02:28 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Thanks, I will check and modify my shell script.

^ permalink  raw  [nested|flat] 7+ messages in thread

* Re: [pgvector/pgvector] PR #948: Add RISC-V64 architecture support in Makefile
@ 2026-01-14 02:43  "MengMengDaXiaoJi (@MengMengDaXiaoJi)" <noreply+MengMengDaXiaoJi@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: MengMengDaXiaoJi (@MengMengDaXiaoJi) @ 2026-01-14 02:43 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @ankane ,  thanks for your kind suggestion, I modified it.

^ permalink  raw  [nested|flat] 7+ messages in thread

* Re: [pgvector/pgvector] PR #948: Add RISC-V64 architecture support in Makefile
@ 2026-01-14 14:11  "ankane (@ankane)" <noreply+ankane@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: ankane (@ankane) @ 2026-01-14 14:11 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane merged this (commit 544686feb10b).

^ permalink  raw  [nested|flat] 7+ messages in thread

* Re: [pgvector/pgvector] PR #948: Add RISC-V64 architecture support in Makefile
@ 2026-01-14 14:11  "ankane (@ankane)" <noreply+ankane@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: ankane (@ankane) @ 2026-01-14 14:11 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane closed this.

^ permalink  raw  [nested|flat] 7+ messages in thread

* Re: [pgvector/pgvector] PR #948: Add RISC-V64 architecture support in Makefile
@ 2026-01-14 14:12  "ankane (@ankane)" <noreply+ankane@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: ankane (@ankane) @ 2026-01-14 14:12 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Great, thanks @MengMengDaXiaoJi!

^ permalink  raw  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2026-01-14 14:12 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-01-13 07:36 [pgvector/pgvector] PR #948: Add RISC-V64 architecture support in Makefile "MengMengDaXiaoJi (@MengMengDaXiaoJi)" <noreply+MengMengDaXiaoJi@github.com>
2026-01-13 16:53 ` "ankane (@ankane)" <noreply+ankane@github.com>
2026-01-14 02:28 ` "MengMengDaXiaoJi (@MengMengDaXiaoJi)" <noreply+MengMengDaXiaoJi@github.com>
2026-01-14 02:43 ` "MengMengDaXiaoJi (@MengMengDaXiaoJi)" <noreply+MengMengDaXiaoJi@github.com>
2026-01-14 14:11 ` "ankane (@ankane)" <noreply+ankane@github.com>
2026-01-14 14:11 ` "ankane (@ankane)" <noreply+ankane@github.com>
2026-01-14 14:12 ` "ankane (@ankane)" <noreply+ankane@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