Commit d09b1946 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

openblas: First try with auto-detected target and if it fails try TARGET=GENERIC.

parent 48480c03
...@@ -2,27 +2,33 @@ ...@@ -2,27 +2,33 @@
parts = parts =
openblas openblas
extends =
../gcc/buildout.cfg
[openblas] [openblas]
recipe = slapos.recipe.cmmi recipe = slapos.recipe.cmmi
url = http://github.com/xianyi/OpenBLAS/archive/v0.2.15.tar.gz url = http://github.com/xianyi/OpenBLAS/archive/v0.2.15.tar.gz
md5sum = b1190f3d3471685f17cfd1ec1d252ac9 md5sum = b1190f3d3471685f17cfd1ec1d252ac9
configure-command = true
# You can specify more options with openblas:make-ext-options parameter. build-common-options =
BINARY="$(uname -m | grep -q x86_64 && echo 64 || echo 32)" NO_STATIC=1 USE_OPENMP=1 USE_THREAD=1
# You can specify more options with openblas:build-ext-options parameter.
# Example : # Example :
# * to build generic binary that supports multiple architecture in one binary # * to build generic binary that supports multiple architecture in one binary
# DYNAMIC_ARCH=1 # DYNAMIC_ARCH=1
# * to build on not-yet-supported platform # * to specify target explicitly
# TARGET=GENERIC # (see https://github.com/xianyi/OpenBLAS/blob/v0.2.15/TargetList.txt )
make-ext-options = # 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
make-options = make-options =
PREFIX="${buildout:parts-directory}/${:_buildout_section_name_}" dummy
BINARY="$(uname -m | grep -q x86_64 && echo 64 || echo 32)" make-targets =
NO_STATIC=1 PREFIX="${buildout:parts-directory}/${:_buildout_section_name_}" install
USE_OPENMP=1
USE_THREAD=1
${:make-ext-options}
environment = environment =
PATH=${gcc-fortran:location}/bin:%(PATH)s PATH=${gcc-fortran:location}/bin:%(PATH)s
LD_LIBRARY_PATH=${gcc-fortran:location}/lib:${gcc-fortran:location}/lib64 LD_LIBRARY_PATH=${gcc-fortran:location}/lib:${gcc-fortran:location}/lib64
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment