buildout.cfg 1.17 KB
Newer Older
1 2 3 4
[buildout]
parts =
  openblas

5 6 7
extends =
  ../gcc/buildout.cfg

8 9
[openblas]
recipe = slapos.recipe.cmmi
10 11 12
url = http://github.com/xianyi/OpenBLAS/archive/v0.2.15.tar.gz
md5sum = b1190f3d3471685f17cfd1ec1d252ac9

13
build-common-options = BINARY="$(uname -m | grep -q x86_64 && echo 64 || echo 32)" NO_STATIC=1 USE_OPENMP=1 USE_THREAD=1
14 15 16 17 18 19 20 21 22 23 24 25 26

# You can specify more options with openblas:build-ext-options parameter.
# Example :
# * to build generic binary that supports multiple architecture in one binary
#   DYNAMIC_ARCH=1
# * to specify target explicitly
#   (see https://github.com/xianyi/OpenBLAS/blob/v0.2.15/TargetList.txt )
#   TARGET=HASWELL
build-ext-options =

# First try with auto-detected target and if it fails try TARGET=GENERIC.
configure-command =
  make ${:build-common-options} ${:build-ext-options} || make ${:build-common-options} TARGET=GENERIC
27
make-options =
28 29 30
  dummy
make-targets =
  PREFIX="${buildout:parts-directory}/${:_buildout_section_name_}" install
31 32 33 34
environment =
  PATH=${gcc-fortran:location}/bin:%(PATH)s
  LD_LIBRARY_PATH=${gcc-fortran:location}/lib:${gcc-fortran:location}/lib64
  LDFLAGS=-Wl,-rpath=${gcc-fortran:location}/lib -Wl,-rpath=${gcc-fortran:location}/lib64