【文件属性】:
文件名称:SIMD-test:探索SIMD优化
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-01 08:14:45
C
SIMD测试
结果:启用-O3时,gcc和clang都可以执行简单的SIMD优化。 没有探索更困难的SIMD优化问题。
test-gcc-debug
sum: 99897982687.000000 time: 0.446810
test-gcc-o3
sum: 99897982687.000000 time: 0.157358
test-gcc-simd
sum: 99897982687.000000 time: 0.157701
test-gcc-debug-simd
sum: 99897982687.000000 time: 0.213039
test-clang-debug
sum: 99897982687.000000 time: 0.410983
test-clang-o3
sum: 99897982687.000000 time: 0.159946
test-cl
【文件预览】:
SIMD-test-master
----test.c(1KB)
----run(987B)
----README.md(6KB)