Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loongarch support #30

Merged
merged 3 commits into from
Feb 23, 2024
Merged

loongarch support #30

merged 3 commits into from
Feb 23, 2024

Conversation

junchao-loongson
Copy link
Contributor

test info:

junchao@arch6k ~/work/ruapu                                                                                                                                                        [14:58:16] 
> $lscpu                                                                                                                                                                           [±master]
Architecture:          loongarch64
  CPU op-mode(s):      32-bit, 64-bit
  Address sizes:       48 bits physical, 48 bits virtual
  Byte Order:          Little Endian
CPU(s):                8
  On-line CPU(s) list: 0-7
Model name:            Loongson-3A6000
  CPU family:          Loongson-64bit
  Model:               0x00
  Thread(s) per core:  1
  Core(s) per socket:  8
  Socket(s):           1
  BogoMIPS:            5000.00
  Flags:               cpucfg lam ual fpu lsx lasx crc32 complex crypto lvz lbt_x86 lbt_arm lbt_mips
Caches (sum of all):   
  L1d:                 512 KiB (8 instances)
  L1i:                 512 KiB (8 instances)
  L2:                  2 MiB (8 instances)
  L3:                  16 MiB (1 instance)
NUMA:                  
  NUMA node(s):        1
  NUMA node0 CPU(s):   0-7

junchao@arch6k ~/work/ruapu                                                                                                                                                        [14:52:36] 
> $ gcc main.c -o ruapu                                                                                                                                                            [±master]
                                                                                                                                                                                              
junchao@arch6k ~/work/ruapu                                                                                                                                                        [14:52:39] 
> $./ruapu                                                                                                                                                                         [±master]
lsx = 1
lasx = 1

@nihui nihui merged commit b263bf6 into nihui:master Feb 23, 2024
10 checks passed
@nihui
Copy link
Owner

nihui commented Feb 23, 2024

incredible work !

@nihui
Copy link
Owner

nihui commented Feb 23, 2024

cpucfg lam ual fpu lsx lasx crc32 complex crypto lvz lbt_x86 lbt_arm lbt_mips
剩下的这些能搞吗

@junchao-loongson
Copy link
Contributor Author

我整理下,下周把能加的加上

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.

2 participants