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

SSE2: not supported? #315

Closed
donge opened this issue Oct 17, 2022 · 3 comments
Closed

SSE2: not supported? #315

donge opened this issue Oct 17, 2022 · 3 comments

Comments

@donge
Copy link

donge commented Oct 17, 2022

I encounter and panic on an amd64 virtual cpu under QEMU enviroment.

which support SSE/SSE2 only, is it running with support SSE3 at least ?

panic: Unsupported CPU, maybe it's too old to run Sonic.

goroutine 1 [running]:
github.com/bytedance/sonic/internal/native.init.0()
        /go/pkg/mod/github.com/bytedance/sonic@v1.5.0/internal/native/dispatch_amd64.go:164 +0x30a
panic: Unsupported CPU, maybe it's too old to run Sonic.
cat /proc/cpuinfo
...
processor       : 15
vendor_id       : GenuineIntel
cpu family      : 6
model           : 6
model name      : QEMU Virtual CPU
stepping        : 3
microcode       : 0x1
cpu MHz         : 2194.916
cache size      : 4096 KB
physical id     : 15
siblings        : 1
core id         : 0
cpu cores       : 1
apicid          : 15
initial apicid  : 15
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl eagerfpu pni cx16 x2apic popcnt hypervisor lahf_lm abm
bogomips        : 4389.83
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:
@donge
Copy link
Author

donge commented Oct 17, 2022

I use cpuid 2.1.2 https://github.com/klauspost/cpuid/releases/tag/v2.1.2 to get the info

Name: QEMU Virtual CPU
Vendor String: GenuineIntel
Vendor ID: Intel
PhysicalCores: 0
Threads Per Core: 1
Logical Cores: 0
CPU Family 6 Model: 6 Stepping: 3
Features: CMOV,CMPXCHG8,CX16,FXSR,FXSROPT,HYPERVISOR,LAHF,LZCNT,MMX,NX,OSXSAVE,POPCNT,SSE,SSE2,SSE3,SYSCALL,SYSEE,X87,XSAVE
Microarchitecture level: 1
Cacheline bytes: 64
L1 Instruction Cache: 32768 bytes
L1 Data Cache: 32768 bytes
L2 Cache: 4194304 bytes
L3 Cache: 0 bytes

I can see the SSE is supported, so I suppose it maybe a bug

HasSSE

panic("Unsupported CPU, maybe it's too old to run Sonic.")

@liuq19
Copy link
Collaborator

liuq19 commented Oct 19, 2022

you can try the main branch, sonic has supported sse now. (#305)

@donge
Copy link
Author

donge commented Oct 19, 2022

Thanks @liuq19 , I think it's exactly my issue faced. Let me try

@liuq19 liuq19 closed this as completed Oct 19, 2022
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

No branches or pull requests

2 participants