mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
OpenBLAS: use the same parameters for install and test (#3494)
This commit is contained in:
@@ -4,7 +4,7 @@ version."
|
||||
HOMEPAGE="http://www.openblas.net/"
|
||||
COPYRIGHT="2011-2018 The OpenBLAS Project"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="http://github.com/xianyi/OpenBLAS/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="4b4b4453251e9edb5f57465bf2b3cf67b19d811d50c8588cdf2ea1f201bb834f"
|
||||
SOURCE_FILENAME="OpenBLAS-$portVersion.tar.gz"
|
||||
@@ -53,25 +53,38 @@ defineDebugInfoPackage openblas$secondaryArchSuffix \
|
||||
"$libDir"/libopenblas.so.0 \
|
||||
"$libDir"/libopenblasp-r$portVersion.so
|
||||
|
||||
# DYNAMIC_ARCH is x86 only
|
||||
# PPC & others should specify TARGET=
|
||||
case "$effectiveTargetArchitecture" in
|
||||
x86) target=NORTHWOOD;;
|
||||
x86_64) target=PRESCOTT;;
|
||||
*) target=;;
|
||||
esac
|
||||
|
||||
BUILD()
|
||||
{
|
||||
# DYNAMIC_ARCH is x86 only
|
||||
# PPC & others should specify TARGET=
|
||||
case "$effectiveTargetArchitecture" in
|
||||
x86) target=NORTHWOOD;;
|
||||
x86_64) target=PRESCOTT;;
|
||||
*) target=;;
|
||||
esac
|
||||
|
||||
make MAKE_NB_JOBS=${jobArgs#-j} NO_LAPACKE=1 NO_AFFINITY=1 NO_WARMUP=1 \
|
||||
NUM_THREADS=64 DYNAMIC_ARCH=1 USE_OPENMP=1 ${target:+TARGET=$target}
|
||||
make MAKE_NB_JOBS=${jobArgs#-j} \
|
||||
NO_LAPACKE=1 \
|
||||
NO_AFFINITY=1 \
|
||||
NO_WARMUP=1 \
|
||||
NUM_THREADS=64 \
|
||||
DYNAMIC_ARCH=1 \
|
||||
USE_OPENMP=1 \
|
||||
${target:+TARGET=$target}
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install PREFIX=$prefix \
|
||||
OPENBLAS_LIBRARY_DIR=$libDir \
|
||||
OPENBLAS_INCLUDE_DIR=$includeDir
|
||||
OPENBLAS_LIBRARY_DIR=$libDir \
|
||||
OPENBLAS_INCLUDE_DIR=$includeDir \
|
||||
NO_LAPACKE=1 \
|
||||
NO_AFFINITY=1 \
|
||||
NO_WARMUP=1 \
|
||||
NUM_THREADS=64 \
|
||||
DYNAMIC_ARCH=1 \
|
||||
USE_OPENMP=1 \
|
||||
${target:+TARGET=$target}
|
||||
|
||||
prepareInstalledDevelLibs libopenblas libopenblasp-r$portVersion
|
||||
|
||||
@@ -86,5 +99,12 @@ INSTALL()
|
||||
|
||||
TEST()
|
||||
{
|
||||
make tests DYNAMIC_ARCH=1 USE_OPENMP=1
|
||||
make tests \
|
||||
NO_LAPACKE=1 \
|
||||
NO_AFFINITY=1 \
|
||||
NO_WARMUP=1 \
|
||||
NUM_THREADS=64 \
|
||||
DYNAMIC_ARCH=1 \
|
||||
USE_OPENMP=1 \
|
||||
${target:+TARGET=$target}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user