需要的软件包:
1> mpi运行环境,这里我们使用的是:mpich2-1.5.tar.gz
2>矩阵库GOTOBLAS,我们使用的是:GotoBLAS2-1.13.tar.gz
3>linpack测试软件包:hpl-2.1.tar.gz
安装过程:
1> GOTOBLAS2代数库的安装
查看cpu架构:cat /proc/cpuinfo
[root@compute-0 ~]# cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 16 model : 5 model name : AMD Athlon(tm) II X4 620 Processor # 注:我的是AMD的架构 如果你的是intel 应该是CORE2的架构 stepping : 2 cpu MHz : 2600.147 cache size : 512 KB fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc up rep_good tsc_reliable nonstop_tsc unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw bogomips : 5200.29 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: |
修改Makefile.rul (注:对Makefile.rul修改,用户可以更加针对自己的硬件平台进行安装,因此效率会高很多。
所有架构、编译器的选择,多线程的设置等都是修改这个文件。)
# # Beginning of user configuration #
# This library's version VERSION = 1.13
# You can specify the target architecture, otherwise it's # automatically detected. # TARGET = PENRYN
# If you want to support multiple architecture in one binary # DYNAMIC_ARCH = 1 |