Blis: bump (#9321)

keep old for compatibility.
This commit is contained in:
extrowerk
2023-09-01 08:05:46 +02:00
committed by GitHub
parent 95b4c5ad02
commit 8c72e99a1f
2 changed files with 97 additions and 4 deletions

View File

@@ -12,10 +12,9 @@ COPYRIGHT="2018 The University of Texas at Austin
2016 Hewlett Packard Enterprise Development LP
2018-2019 Advanced Micro Devices, Inc."
LICENSE="BSD (3-clause)"
REVISION="2"
REVISION="1"
SOURCE_URI="https://github.com/flame/blis/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="5e05868c4a6cf5032a7492f8861653e939a8f907a4fa524bbb6e14394e170a3d"
#PATCHES="blis-$portVersion.patchset"
CHECKSUM_SHA256="1135f664be7355427b91025075562805cdc6cc730d3173f83533b2c5dcc2f308"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
@@ -31,7 +30,7 @@ GLOBAL_WRITABLE_FILES="
settings/blis/config.mk keep-old
"
libVersion="3.0.0"
libVersion="4.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
@@ -86,6 +85,8 @@ INSTALL()
prepareInstalledDevelLib libblis
mv $settingsDir/pkgconfig $libDir
fixPkgconfig
packageEntries devel \
@@ -94,6 +95,9 @@ INSTALL()
TEST()
{
platform=`ls -1 $sourceDir/lib/`
export LIBRARY_PATH=$LIBRARY_PATH:$sourceDir/lib/$platform/
echo $LIBRARY_PATH
cd blastest
make $jobArgs
make run

View File

@@ -0,0 +1,89 @@
SUMMARY="BLAS-like Library Instantiation Software framework"
DESCRIPTION="BLIS is a portable software framework for instantiating \
high-performance BLAS-like dense linear algebra libraries. The framework \
was designed to isolate essential kernels of computation that, when \
optimized, immediately enable optimized implementations of most of its \
commonly used and computationally intensive operations. While BLIS exports a \
new BLAS-like API, it also includes a BLAS compatibility layer which gives \
application developers access to BLIS implementations via traditional BLAS \
routine calls. An object-based API unique to BLIS is also available."
HOMEPAGE="https://github.com/flame/blis"
COPYRIGHT="2018 The University of Texas at Austin
2016 Hewlett Packard Enterprise Development LP
2018-2019 Advanced Micro Devices, Inc."
LICENSE="BSD (3-clause)"
REVISION="3"
SOURCE_URI="https://github.com/flame/blis/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="5e05868c4a6cf5032a7492f8861653e939a8f907a4fa524bbb6e14394e170a3d"
SOURCE_DIR="blis-0.8.0"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
TARGET="generic"
if [ "$effectiveTargetArchitecture" = x86_64 ]; then
TARGET="x86_64"
fi
libVersion="3.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
blis8$secondaryArchSuffix = $portVersion
lib:libblis$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgomp$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:find
cmd:g++$secondaryArchSuffix
cmd:make
cmd:perl
cmd:python3
"
defineDebugInfoPackage blis8$secondaryArchSuffix \
"$libDir"/libblis.so.$libVersion
BUILD()
{
# Not an autotools configure
./configure \
--enable-threading=openmp \
--prefix=$prefix \
--libdir=$libDir \
--includedir=$includeDir \
--sharedir=$settingsDir \
--disable-static \
$TARGET # CPU target
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLib libblis
fixPkgconfig
rm -rf $developDir $settingsDir/blis
}
TEST()
{
cd blastest
make $jobArgs
make run
cd ..
cd testsuite
make $jobArgs
./test_libblis.x
}