SuperPI for Linux

发布时间:2022-07-01 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了SuperPI for Linux脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

Super π(Pi)是Windows底下很受欢迎的测试CPU的工具,常用于硬件发烧友中对超频后的CPU进行压力测试。因其只用到基础的浮点运算,而不涉及其他的系统库环境,所以,很适合用于排查CPU物理问题。而基于Linux环境,同样也有Super PI for linux套件。当系统出现不明原因的死机、缓慢、自动重启等故障,我们可用其协助分析是否CPU不稳定导致的?

一、下载

可惜,我没有找到该程序的源码,只能提供编译后的程序包。

但从运行中的提示可见,该程序应该是从fortran转换到C的。应适合所有的CPU类型使用。

SuperPI for Linux

下载文件

点击这里下载文件

二、使用

解压后,运行即可:

引用

# tar xzvf superpi_linux.tar.gz

# cd superpi

# ./super_pi 20

Version 2.0 of the super_pi for Linux OS

Fortran source program was translated into C program with version 19981204 of

f2c, then generated C source program was optimized manually.

pgcc 3.2-3 with compile option of "-fast -tp px -Mbuiltin -Minline=size:1000 -M                                             noframe -Mnobounds -Mcache_align -Mdalign -Mnoreentrant" was used for the

compilation.

------ Started super_pi run : 四 3月 6 11:33:32 CST 2008

Start of PI calculation up to 1048576 decimal digits

End of initialization. Time=       0.437 Sec.

I= 1 L=       0        Time=       1.341 Sec.

I= 2 L=       0        Time=       1.607 Sec.

I= 3 L=       1        Time=       1.598 Sec.

I= 4 L=       2        Time=       1.609 Sec.

I= 5 L=       5        Time=       1.595 Sec.

I= 6 L=      10        Time=       1.583 Sec.

I= 7 L=      21        Time=       1.589 Sec.

I= 8 L=      43        Time=       1.523 Sec.

I= 9 L=      87        Time=       1.521 Sec.

I=10 L=     174        Time=       1.524 Sec.

I=11 L=     349        Time=       1.521 Sec.

I=12 L=     698        Time=       1.516 Sec.

I=13 L=    1396        Time=       1.521 Sec.

I=14 L=    2794        Time=       1.574 Sec.

I=15 L=    5588        Time=       1.510 Sec.

I=16 L=   11176        Time=       1.507 Sec.

I=17 L=   22353        Time=       1.461 Sec.

I=18 L=   44707        Time=       1.408 Sec.

I=19 L=   89415        Time=       1.345 Sec.

End of main loop

End of calculation.    Time=      30.470 Sec.

End of data output.    Time=       0.180 Sec.

Total calculation(I/O) time=      30.650(       1.282) Sec.

------ Ended super_pi run : 四 3月 6 11:34:03 CST 2008

※说明

1、命令运行中使用的参数m,是指位数,表示要算2的多少次方位,如通常要算小数点后1M位(2^20次方);

2、m最大到25次方,若设置再大的值,会自动缩小到该值

引用

Specified M(=30) is too large.  M is set to 25. Start of PI calculation up to 33554432 decimal digits

3、因算法不同,该程序不能用于和Windows平台上的Super PI进行性能对比(实际上,快很多);

4、该程序在SMP环境中,只能让CPU满载运行,所以,对于多CPU的环境,可同时用多个程序并发运行。

脚本宝典总结

以上是脚本宝典为你收集整理的SuperPI for Linux全部内容,希望文章能够帮你解决SuperPI for Linux所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:并发