| 1 | 1/1 | 返回列表 |
| 查看: 1053 | 回復(fù): 0 | ||
onesupeng金蟲 (職業(yè)作家)
|
[資源]
【原創(chuàng)】并行平臺構(gòu)建與管理[4]:并行測試 atlas+hpl 測試之安裝(1)
|
|
經(jīng)過幾天的試驗(yàn)和努力,同時得到鳥哥的指點(diǎn),終于裝好了這個東西。為了不至于馬上忘記,趕緊將如何安裝記錄下來,讓更多的人掌握這個技術(shù)文檔。同時在此非常感謝鳥哥(vbird)。 我們的平臺: AMD4000+ MPI1.4.7 PGI 1、到 https://sourceforge.net/project/showfiles.php?group_id=23725 下載 atlas3.6.0.tar.gz 文檔 2、到 http://www.netlib.org/benchmark/hpl/index.html 下載 hpl.tgz 文檔 3、在普通用戶下用命令 tar -zxvf **將兩個文件解壓,就會看見ATLAS和hpl兩個文件夾。 4、現(xiàn)安裝atlas,進(jìn)入ATLAS,用make config CC=/usr/mpich/bin/mpicc(CC所等的是編譯器地址,各臺機(jī)器不盡相同,我試了gcc好像不行),然后會出一些選擇,一般默認(rèn)即可,注意architecture這里的多少位的選擇,一般先在新出的大多為64位的。我的是64位,architecture用默認(rèn)的Linux_HAMMER64SSE2_2。 5、然后就對Make..Linux_HAMMER64SSE2_2作一定的修改,主要是對編譯器路徑的修改,見附件。 6、修改好以后,make install arch=Linux_HAMMER64SSE2_2,一般就會成功。如果失敗,建議刪除整個ATLAS,再從頭來,每一步都要更仔細(xì)就好,多試幾下是有好處的。 附錄: # ----------------------------- # Make.ARCH for ATLAS3.6.0 # ----------------------------- # ---------------------------------- # Make sure we get the correct shell # ---------------------------------- SHELL = /bin/sh # ------------------------------------------------- # Name indicating the platform to configure BLAS to # ------------------------------------------------- ARCH = Linux_HAMMER64SSE2_2 # ------------------- # Various directories # ------------------- TOPdir = /home/tfbao/ATLAS INCdir = $(TOPdir)/include/$(ARCH) SYSdir = $(TOPdir)/tune/sysinfo/$(ARCH) GMMdir = $(TOPdir)/src/blas/gemm/$(ARCH) UMMdir = $(GMMdir) GMVdir = $(TOPdir)/src/blas/gemv/$(ARCH) GR1dir = $(TOPdir)/src/blas/ger/$(ARCH) L1Bdir = $(TOPdir)/src/blas/level1/$(ARCH) L2Bdir = $(TOPdir)/src/blas/level2/$(ARCH) L3Bdir = $(TOPdir)/src/blas/level3/$(ARCH) TSTdir = $(TOPdir)/src/testing/$(ARCH) AUXdir = $(TOPdir)/src/auxil/$(ARCH) CBLdir = $(TOPdir)/interfaces/blas/C/src/$(ARCH) FBLdir = $(TOPdir)/interfaces/blas/F77/src/$(ARCH) BINdir = $(TOPdir)/bin/$(ARCH) LIBdir = $(TOPdir)/lib/$(ARCH) PTSdir = $(TOPdir)/src/pthreads MMTdir = $(TOPdir)/tune/blas/gemm/$(ARCH) MVTdir = $(TOPdir)/tune/blas/gemv/$(ARCH) R1Tdir = $(TOPdir)/tune/blas/ger/$(ARCH) L1Tdir = $(TOPdir)/tune/blas/level1/$(ARCH) L3Tdir = $(TOPdir)/tune/blas/level3/$(ARCH) # --------------------------------------------------------------------- # Name and location of scripts for running executables during tuning # --------------------------------------------------------------------- ATLRUN = $(BINdir)/ATLrun.sh ATLFWAIT = $(BINdir)/xatlas_waitfile # --------------------- # Libraries to be built # --------------------- ATLASlib = $(LIBdir)/libatlas.a CBLASlib = $(LIBdir)/libcblas.a F77BLASlib = $(LIBdir)/libf77blas.a PTCBLASlib = $(LIBdir)/libptcblas.a PTF77BLASlib = $(LIBdir)/libptf77blas.a LAPACKlib = $(LIBdir)/liblapack.a TESTlib = $(LIBdir)/libtstatlas.a # ------------------------------------------- # Upper bound on largest cache size, in bytes # ------------------------------------------- L2SIZE = -DL2SIZE=1048576 # --------------------------------------- # Command setting up correct include path # --------------------------------------- INCLUDES = -I$(TOPdir)/include -I$(TOPdir)/include/$(ARCH) \ -I$(TOPdir)/include/contrib # ------------------------------------------- # Defines for setting up F77/C interoperation # ------------------------------------------- F2CDEFS = -DAdd__ -DStringSunStyle # -------------------------------------- # Special defines for user-supplied GEMM # -------------------------------------- UMMDEFS = # ------------------------------ # Architecture identifying flags # ------------------------------ ARCHDEFS = -DATL_OS_Linux -DATL_ARCH_HAMMER64 -DATL_SSE2 -DATL_SSE1 -DATL_GAS_x8664 -m64 # ------------------------------------------------------------------- # NM is the flag required to name a compiled object/executable # OJ is the flag required to compile to object rather than executable # These flags are used by all compilers. # ------------------------------------------------------------------- NM = -o OJ = -c # --------------------------------------------------------------------------- # Fortran 77 compiler and the flags to use. Presently, ATLAS does not itself # use any Fortran 77, but vendor BLAS are typically written for Fortran, so # any links that include non-ATLAS BLAS will use FLINKER instead of CLINKER # --------------------------------------------------------------------------- F77 = /usr/mpich/bin/mpif77 F77FLAGS = -fomit-frame-pointer -O -m64 FLINKER = $(F77) FLINKFLAGS = $(F77FLAGS) FCLINKFLAGS = $(FLINKFLAGS) # --------------------------------------------------------------------------- # Various C compilers, and the linker to be used when we are not linking in # non-ATLAS BLAS (which usually necessitate using the Fortran linker). # The C compilers recognized by ATLAS are: # CC : Compiler to use to compile regular, non-generated code # MCC : Compiler to use to compile generated, highly-optimized code # XCC : Compiler to be used on the compile engine of a cross-compiler # These will typically all be the same. An example of where this is not # the case would be DEC ALPHA 21164, where you want to use gcc for MCC, # because DEC's cc does not allow the programmer access to all 32 floating # point registers. However, on normal C code, DEC's cc produces much faster # code than gcc, so you CC set to cc. Of course, any system where you are # cross-compiling, you will need to set XCC differently than CC & MCC. # --------------------------------------------------------------------------- CDEFS = $(L2SIZE) $(INCLUDES) $(F2CDEFS) $(ARCHDEFS) -DATL_NCPU=2 GCCdir = /usr/bin GOODGCC = /usr/mpich/bin/mpicc CC = /usr/mpich/bin/mpicc CCFLAG0 = -fomit-frame-pointer -O -mfpmath=387 -m64 CCFLAGS = $(CDEFS) $(CCFLAG0) MCC = /usr/mpich/bin/mpicc MMFLAGS = -fomit-frame-pointer -O -mfpmath=387 -m64 XCC = /usr/mpich/bin/mpicc XCCFLAGS = $(CDEFS) -fomit-frame-pointer -O -mfpmath=387 -m64 CLINKER = $(CC) CLINKFLAGS = $(CCFLAGS) BC = $(CC) BCFLAGS = $(CCFLAGS) ARCHIVER = ar ARFLAGS = r RANLIB = echo # ------------------------------------- # tar, gzip, gunzip, and parallel make # ------------------------------------- TAR = /bin/tar GZIP = /bin/gzip GUNZIP = /bin/gunzip PMAKE = $(MAKE) -j 2 # ------------------------------------ # Reference and system libraries # ------------------------------------ BLASlib = FBLASlib = FLAPACKlib = LIBS = -lpthread -lm # ---------------------------------------------------------- # ATLAS install resources (include arch default directories) # ---------------------------------------------------------- ARCHDEF = $(TOPdir)/CONFIG/ARCHS/HAMMER64SSE2/gcc/misc MMDEF = $(TOPdir)/CONFIG/ARCHS/HAMMER64SSE2/gcc/gemm INSTFLAGS = # --------------------------------------- # Generic targets needed by all makefiles # --------------------------------------- waitfile: |
找到一些相關(guān)的精華帖子,希望有用哦~
| 1 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 一志愿西安交通大學(xué)材料工程專業(yè) 282分求調(diào)劑 +11 | 楓橋ZL 2026-03-18 | 13/650 |
|
|---|---|---|---|---|
|
[考研] 招08考數(shù)學(xué) +4 | laoshidan 2026-03-20 | 8/400 |
|
|
[考研] 一志愿武理材料工程348求調(diào)劑 +5 |  ̄^ ̄゜汗 2026-03-19 | 7/350 |
|
|
[考研] 08工科 320總分 求調(diào)劑 +11 | 梨花珞晚風(fēng) 2026-03-17 | 11/550 |
|
|
[考研] 298求調(diào)劑一志愿211 +3 | 上岸6666@ 2026-03-20 | 3/150 |
|
|
[考研] 一志愿南大,0703化學(xué),分?jǐn)?shù)336,求調(diào)劑 +3 | 收到VS 2026-03-21 | 3/150 |
|
|
[考研] 278求調(diào)劑 +9 | 煙火先于春 2026-03-17 | 9/450 |
|
|
[考研] 一志愿重慶大學(xué)085700資源與環(huán)境總分308求調(diào)劑 +7 | 墨墨漠 2026-03-20 | 7/350 |
|
|
[考研] 0805材料320求調(diào)劑 +3 | 深海物語 2026-03-20 | 3/150 |
|
|
[考研] 346求調(diào)劑[0856] +4 | WayneLim327 2026-03-16 | 7/350 |
|
|
[考研] 303求調(diào)劑 +5 | 睿08 2026-03-17 | 7/350 |
|
|
[考研]
|
.6lL 2026-03-18 | 8/400 |
|
|
[考研] 295求調(diào)劑 +4 | 一志愿京區(qū)211 2026-03-18 | 6/300 |
|
|
[考研] 藥學(xué)383 求調(diào)劑 +3 | 藥學(xué)chy 2026-03-15 | 5/250 |
|
|
[考研] 281求調(diào)劑(0805) +14 | 煙汐憶海 2026-03-16 | 25/1250 |
|
|
[考研] 0703化學(xué)調(diào)劑 +4 | 18889395102 2026-03-18 | 4/200 |
|
|
[考研] 286求調(diào)劑 +6 | lemonzzn 2026-03-16 | 10/500 |
|
|
[考研] 材料考研調(diào)劑 +3 | xwt。 2026-03-19 | 3/150 |
|
|
[考研] 283求調(diào)劑 +3 | 聽風(fēng)就是雨; 2026-03-16 | 3/150 |
|
|
[考研] 070300化學(xué)學(xué)碩求調(diào)劑 +6 | 太想進(jìn)步了0608 2026-03-16 | 6/300 |
|