Advertisement
Guest User

Untitled

a guest
Oct 11th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 7.13 KB | None | 0 0
  1. #  ----------------------------
  2. #  Make.inc for ATLAS3.10.3
  3. #  ----------------------------
  4.  
  5. #  ----------------------------------
  6. #  Make sure we get the correct shell
  7. #  ----------------------------------
  8.    SHELL = /bin/sh
  9.  
  10. #  -------------------------------------------------
  11. #  Name indicating the platform to configure BLAS to
  12. #  -------------------------------------------------
  13.    ARCH = Corei464AVXMAC
  14.  
  15. #  ----------------------------
  16. #  Paths to various directories
  17. #  ----------------------------
  18.    BLDdir = /wrkdirs/usr/ports/math/atlas/work/ATLAS/build
  19.    SRCdir = /wrkdirs/usr/ports/math/atlas/work/ATLAS/build/.././
  20.    INCAdir = $(BLDdir)/include
  21.    INCSdir = $(SRCdir)/include
  22.    BINdir = $(BLDdir)/bin
  23.    LIBdir = $(BLDdir)/lib
  24.  
  25.    SYSdir = $(BLDdir)/tune/sysinfo
  26.    GMMdir = $(BLDdir)/src/blas/gemm
  27.    GMVdir = $(BLDdir)/src/blas/gemv
  28.    GR1dir = $(BLDdir)/src/blas/ger
  29.    L1Bdir = $(BLDdir)/src/blas/level1
  30.    L2Bdir = $(BLDdir)/src/blas/level2
  31.    L3Bdir = $(BLDdir)/src/blas/level3
  32.    TSTdir = $(BLDdir)/src/testing
  33.    AUXdir = $(BLDdir)/src/auxil
  34.    CBLdir = $(BLDdir)/interfaces/blas/C/src
  35.    FBLdir = $(BLDdir)/interfaces/blas/F77/src
  36.    MMTdir = $(BLDdir)/tune/blas/gemm
  37.    MVTdir = $(BLDdir)/tune/blas/gemv
  38.    R1Tdir = $(BLDdir)/tune/blas/ger
  39.    L1Tdir = $(BLDdir)/tune/blas/level1
  40.    L3Tdir = $(BLDdir)/tune/blas/level3
  41.    FLAdir = $(BLDdir)/src/lapack/reference
  42.    ADdir  = $(SRCdir)/CONFIG/ARCHS
  43.  
  44. #  ---------------------------------------------------------------------
  45. #  Name and location of scripts for running executables during tuning
  46. #  ---------------------------------------------------------------------
  47.    ATLRUN = $(BLDdir)/bin/ATLrun.sh
  48.    ATLFWAIT = $(BLDdir)/bin/xatlas_waitfile
  49.  
  50. #  ---------------------
  51. #  Libraries to be built
  52. #  ---------------------
  53.    ATLASlib = $(LIBdir)/libatlas.a
  54.    CBLASlib = $(LIBdir)/libcblas.a
  55.    F77BLASlib = $(LIBdir)/libf77blas.a
  56.    LAPACKlib = $(LIBdir)/liblapack.a
  57.    PTCBLASlib = $(LIBdir)/libptcblas.a
  58.    PTF77BLASlib = $(LIBdir)/libptf77blas.a
  59.    PTLAPACKlib = $(LIBdir)/libptlapack.a
  60.    TESTlib = $(LIBdir)/libtstatlas.a
  61.  
  62. #  -------------------------------------------
  63. #  Upper bound on largest cache size, in bytes
  64. #  -------------------------------------------
  65.    L2SIZE = -DL2SIZE=33554432
  66.  
  67. #  ---------------------------------------
  68. #  Command setting up correct include path
  69. #  ---------------------------------------
  70.    INCLUDES = -I$(INCAdir) -I$(INCSdir) -I$(INCSdir)/contrib
  71.  
  72. #  -------------------------------------------
  73. #  Defines for setting up F77/C interoperation
  74. #  -------------------------------------------
  75.    F2CDEFS = -DAdd_ -DF77_INTEGER=int -DStringSunStyle
  76.  
  77. #  ------------------------------
  78. #  Architecture identifying flags
  79. #  ------------------------------
  80.    ARCHDEFS = -DATL_OS_FreeBSD -DATL_ARCH_Corei4 -DATL_CPUMHZ=2592 -DATL_AVXMAC -DATL_AVX -DATL_SSE3 -DATL_SSE2 -DATL_SSE1 -DATL_USE64BITS -DATL_GAS_x8664
  81.  
  82.    TIDLIST=
  83.  
  84. #  -------------------------------------------------------------------
  85. #  NM is the flag required to name a compiled object/executable
  86. #  OJ is the flag required to compile to object rather than executable
  87. #  These flags are used by all compilers.
  88. #  -------------------------------------------------------------------
  89.    NM = -o
  90.    OJ = -c
  91.  
  92. #  ---------------------------------------------------------------------------
  93. #  Various compilers and linkers.  The compilers recognized by ATLAS are:
  94. #    F77 :  Compiler to compile f77 interface code with -- Should match what
  95. #           user compile's his own code with; has no affect on ATLAS
  96. #           performance
  97. #    ICC :  Compiler to used to compile all non-kernels in ATLAS, including
  98. #           C interface codes.  Should match whatever compiler user compiles
  99. #           with.  Impact on performance should be minimal.
  100. #    SMC :  Compiler to use to compile single precision matmul kernels
  101. #    DMC :  Compiler to use to compile double precision matmul kernels
  102. #    SKC :  Compiler to use to compile single precision non-matmul kernels
  103. #    DKC :  Compiler to use to compile double precision non-matmul kernels
  104. #    XCC :  Compiler to be used on the compile engine of a cross-compiler
  105. #  These C compiler are mostly the same, but flags are often different.
  106. #  Note that if you specify no F77 compiler, F77 will be set to a C compiler
  107. #  to aid in linking.
  108. #  ---------------------------------------------------------------------------
  109.    NPROC=8
  110.    CDEFS = $(L2SIZE) $(INCLUDES) $(F2CDEFS) $(ARCHDEFS)  -DATL_NCPU=$(NPROC) -D_THREAD_SAFE -D_REENTRANT
  111.  
  112.    ICC = /usr/local/bin/clang60
  113.    ICCFLAGS = $(CDEFS) -O2 -mavx2 -mfma
  114.    SMC = /usr/local/bin/clang60
  115.    SMCFLAGS = -O2 -mavx2 -mfma
  116.    DMC = /usr/local/bin/clang60
  117.    DMCFLAGS = -O2 -mavx2 -mfma
  118.    SKC = /usr/local/bin/clang60
  119.    SKCFLAGS = -O2 -mavx2 -mfma
  120.    DKC = /usr/local/bin/clang60
  121.    DKCFLAGS = -O2 -mavx2 -mfma
  122.    XCC = /usr/local/bin/clang60
  123.    XCCFLAGS = $(CDEFS) -O2
  124.    GCC = /usr/local/bin/clang60
  125.    GCCFLAGS = -O2 -mavx2 -mfma
  126.    F77 = /usr/local/bin/flang
  127.    F77FLAGS = -O -mavx2 -mfma
  128.    F77NOOPT = $(F77FLAGS) -O0   # turn off optimization
  129.    SMAFLAGS =
  130.    DMAFLAGS =
  131.    CKC = $(SKC)
  132.    ZKC = $(DKC)
  133.    sKCFLAGS = $(CDEFS) $(SKCFLAGS)
  134.    dKCFLAGS = $(CDEFS) $(DKCFLAGS)
  135.    cKCFLAGS = $(CDEFS) $(SKCFLAGS)
  136.    zKCFLAGS = $(CDEFS) $(DKCFLAGS)
  137.    GOODGCC = /usr/local/bin/clang60 -O2 -mavx2 -mfma
  138.    KC = $(DKC)
  139.    KCFLAGS = $(CDEFS) $(DKCFLAGS)
  140.    LDFLAGS = -melf_x86_64_fbsd
  141.    F77SYSLIB =
  142.    BC = $(KC)
  143.    NCFLAGS = $(KCFLAGS)
  144.  
  145.    CLINKER = $(KC)
  146.    CLINKFLAGS = $(KCFLAGS)
  147.    FLINKER = $(F77)
  148.    FLINKFLAGS = $(F77FLAGS)
  149.    FCLINKFLAGS = $(FLINKFLAGS)
  150.    ARCHIVER = ar
  151.    ARFLAGS  = r
  152.    RANLIB   = echo
  153.  
  154. #  -------------------------------------
  155. #  tar, gzip, gunzip, and parallel make
  156. #  -------------------------------------
  157.    TAR    = tar
  158.    BZIP   = bzip2
  159.    BUNZIP = bunzip2
  160.    PMAKE  = À¥‚
  161.  
  162. #  ------------------------------------
  163. #  Reference and system libraries
  164. #  ------------------------------------
  165.    FBLASlib = $(LIBdir)/libf77refblas.a
  166.    FLAPACKlib = $(FLAdir)/lapack_$(ARCH).a
  167.    SBLASlib = $(FBLASlib)  # should be serial sysblas
  168.    BLASlib = $(FBLASlib)   # should be parallel sysblas
  169.    SLAPACKlib =   # set to parallel system lapack
  170.    SSLAPACKlib =  # set to serial system lapack
  171.    LIBS = -lpthread -lm
  172.  
  173. #  --------------------------------------------------------------------
  174. #  Compiler names for architectural defaults and flags to atlas_install
  175. #  --------------------------------------------------------------------
  176.    iccD = clang
  177.    smcD = clang
  178.    dmcD = clang
  179.    skcD = clang
  180.    dkcD = clang
  181.    xccD = clang
  182.    gccD = clang
  183.    f77D = gfortran
  184.    INSTFLAGS = -1 0 -a 1 -l 1
  185.  
  186. #  -------------------------------------------------------------------
  187. #  Dependence info for building optional external threading interfaces
  188. #  -------------------------------------------------------------------
  189.    sextthr =
  190.    dextthr =
  191.    cextthr =
  192.    zextthr =
  193. #  ---------------------------------------
  194. #  Generic targets needed by all makefiles
  195. #  ---------------------------------------
  196. do_it: all
  197. waitfile:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement