-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
汇编里为什么使用机器码,而不直接使用对应汇编指令? #2742
Comments
兼容更多编译器,有些低版本的gcc不支持这些汇编指令,会编译失败 |
|
不会,运行时会根据CPU支持的指令集来选择计算kernel,不支持i8mm的CPU不会执行 |
|
打开宏是必要条件不是充分条件;判断在这里: MNN/source/backend/cpu/bf16/BF16Functions.cpp Line 901 in d284430
|
如:
MNN//source/backend/cpu/arm/arm64/bf16/ARMV86_MNNPackedMatMul_BF16.S 中
.inst 0x6e40ec48 // bfmmla v8.4s, v2.8h, v0.8h
MNN/source/backend/cpu/arm/arm64/low_memory/MNNGemmHybridInt8FP32_sdot.S中
.inst 0x4f84e010 // sdot v16.4s, v0.16b, v4.4b[0]
为什么使用机器码,而不直接使用对应汇编指令?
The text was updated successfully, but these errors were encountered: