Skip to content

Commit

Permalink
Extend compiler cpu optmizations to loongarch64.
Browse files Browse the repository at this point in the history
This patch extends the just-in-time compiler options in
brian2/codegen/cpp_prefs.py to optimize aggressively on loongarch64
CPU, similarly to numerous other platforms already supported by
brian2.

It was originally published in [Debian bug #1059428] and provided by
Loongson.

[Debian bug #1059428]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059428

Signed-off-by: Étienne Mollier <emollier@debian.org>
  • Loading branch information
liuxiang88 authored and emollier committed Dec 28, 2023
1 parent 9489e95 commit ab255dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brian2/codegen/cpp_prefs.py
Expand Up @@ -124,7 +124,7 @@
"-mtune=native",
"-std=c++11",
]
elif re.match("^(parisc.*|riscv.*|mips.*)$", machine):
elif re.match("^(parisc.*|riscv.*|mips.*|loong64.*)$", machine):
default_buildopts = [
"-w",
"-O3",
Expand Down

0 comments on commit ab255dd

Please sign in to comment.