Skip to content

loongarch: add loongarch simd opt#111

Open
HecaiYuan wants to merge 2 commits intomborgerding:masterfrom
HecaiYuan:master
Open

loongarch: add loongarch simd opt#111
HecaiYuan wants to merge 2 commits intomborgerding:masterfrom
HecaiYuan:master

Conversation

@HecaiYuan
Copy link

@HecaiYuan HecaiYuan commented Sep 1, 2025

The LoongArch created by Loongson is a new RISC ISA, which is a bit like MIPS or RISC-V.

Two extensions providing SIMD instructions have been proposed:

  • LSX (Loongson SIMD eXtension) with 128-bit vectors is very similar to SSE on x86;
  • LASX (Loongson Advanced SIMD eXtension) with 256-bit vectors is very similar to AVX on x86.

To compile, we run either:
cmake -DKISSFFT_DATATYPE=simd -DHAVE_LSX=ON ../ or make DKISSFFT_DATATYPE=simd HAVE_LSX=lsx.

Further reading

We are ready for review, please let me know if there are more changes or enhancements that should be made. Thanks for everyone in advance. @mborgerding @basilgello

@HecaiYuan
Copy link
Author

Hello @mborgerding @basilgello . Whenever you have some time, could you please provide your insights on this? Your feedback would be very valuable. Thank you.

@C0rn3j C0rn3j changed the title loonagrch: add loongarch simd opt loongarch: add loongarch simd opt Sep 12, 2025
@HecaiYuan
Copy link
Author

Hi @mborgerding @basilgello @C0rn3j , I wanted to check if there's any feedback on this PR. Would be happy to provide more details if helpful.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant