buildout.cfg 1.41 KB
Newer Older
1
[buildout]
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
2 3 4 5
extends =
  ../patch/buildout.cfg
  ../perl/buildout.cfg

6 7 8
parts =
  openblas

9 10 11
extends =
  ../gcc/buildout.cfg

12 13
[openblas]
recipe = slapos.recipe.cmmi
14 15
url = http://github.com/xianyi/OpenBLAS/archive/v0.2.15.tar.gz
md5sum = b1190f3d3471685f17cfd1ec1d252ac9
16 17 18
patch-options = -p0
patches =
  ${:_profile_base_location_}/disable_openmp_if_single_core.patch#ee553ccaf9dd4bc37374588e49956f62
19

20
build-common-options = BINARY="$(uname -m | grep -q x86_64 && echo 64 || echo 32)" NO_STATIC=1 USE_OPENMP=1 USE_THREAD=1
21 22 23 24 25 26 27 28 29 30 31 32

# 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 =
33
  make ${:build-common-options} ${:build-ext-options} || (make -j1 clean && make ${:build-common-options} TARGET=GENERIC)
34
make-options =
35 36 37
  dummy
make-targets =
  PREFIX="${buildout:parts-directory}/${:_buildout_section_name_}" install
38
environment =
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
39
  PATH=${gcc-fortran:location}/bin:${patch:location}/bin:${perl:location}/bin:%(PATH)s
40 41
  LD_LIBRARY_PATH=${gcc-fortran:location}/lib:${gcc-fortran:location}/lib64
  LDFLAGS=-Wl,-rpath=${gcc-fortran:location}/lib -Wl,-rpath=${gcc-fortran:location}/lib64