Skip to content

Add riscv64 support - #15669

Merged
ktf merged 1 commit into
AliceO2Group:devfrom
Mahsuba:riscv64-support
Aug 7, 2026
Merged

Add riscv64 support #15669
ktf merged 1 commit into
AliceO2Group:devfrom
Mahsuba:riscv64-support

Conversation

@Mahsuba

@Mahsuba Mahsuba commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

x9.c had an arch guard that only knew x86 and aarch64. I added a riscv64 branch using the PAUSE hint (raw .4byte, works on any march, no-op if unsupported).

rANS defines.h had the same problem in its coder detection, hitting an #error on riscv64. Added it so the scalar Compat coder gets picked. No SIMD.

Both build and run fine on riscv64 (Ubuntu, GCC 15).

More infos in the issue: #15664

- x9.c: add a riscv64 branch to the arch guards, emitting the PAUSE
  hint (Zihintpause) as a raw .4byte encoding so it assembles regardless
  of -march and is a NOP on cores without the extension.
- rANS defines.h: add riscv64 (64-bit) to the coder-detection guard so
  the existing scalar Compat/SingleStream coders are selected; no SIMD.

Refs AliceO2Group#15664
@Mahsuba
Mahsuba requested review from a team, MichaelLettrich and shahor02 as code owners August 7, 2026 15:01
@ktf
ktf merged commit 5d1f519 into AliceO2Group:dev Aug 7, 2026
4 of 7 checks passed
@ktf

ktf commented Aug 7, 2026

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants