Commit e586cb67 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Léo-Paul Géneau

component/openblas: build for multiple targets with runtime detection of the target CPU.

parent 6d8dcef3
...@@ -15,23 +15,21 @@ patch-options = -p0 ...@@ -15,23 +15,21 @@ patch-options = -p0
patches = patches =
${:_profile_base_location_}/disable_openmp_if_single_core.patch#ee553ccaf9dd4bc37374588e49956f62 ${:_profile_base_location_}/disable_openmp_if_single_core.patch#ee553ccaf9dd4bc37374588e49956f62
build-common-options = BINARY="$(uname -m | grep -q x86_64 && echo 64 || echo 32)" NO_STATIC=1 USE_OPENMP=1 USE_THREAD=1 build-common-options = NO_STATIC=1 USE_OPENMP=1 USE_THREAD=1 DYNAMIC_ARCH=1
# You can specify more options with openblas:build-ext-options parameter. # We build for multiple targets with runtime detection of the target CPU but
# 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 specify the oldest model you expect to encounter
# DYNAMIC_ARCH=1 # (see https://github.com/xianyi/OpenBLAS/blob/v0.2.18/TargetList.txt )
# * to specify target explicitly
# (see https://github.com/xianyi/OpenBLAS/blob/v0.2.15/TargetList.txt )
# TARGET=HASWELL # TARGET=HASWELL
build-ext-options = build-ext-options =
# Fortran is required for LAPACK, which is required for matplotlib. # Fortran is required for LAPACK, which is required for matplotlib.
pre-configure = type gfortran pre-configure = type gfortran
# First try with auto-detected target and if it fails try TARGET=GENERIC.
configure-command = configure-command =
make ${:build-common-options} ${:build-ext-options} || (make -j1 clean && make ${:build-common-options} TARGET=GENERIC) make ${:build-common-options} ${:build-ext-options}
make-options = make-options =
dummy dummy
make-targets = make-targets =
......
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