From a0a443008048e17f500ad07ea38803853482b3f4 Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 27 Oct 2019 21:00:15 +0100 Subject: [PATCH] Clp: reenable everywhere and disable AVX2 usage on x86_64 --- srcpkgs/Clp/patches/disable-avx.patch | 46 +++++++++++++++++++++++++++ srcpkgs/Clp/template | 6 +--- 2 files changed, 47 insertions(+), 5 deletions(-) create mode 100644 srcpkgs/Clp/patches/disable-avx.patch diff --git a/srcpkgs/Clp/patches/disable-avx.patch b/srcpkgs/Clp/patches/disable-avx.patch new file mode 100644 index 00000000000..53cd2e0be42 --- /dev/null +++ b/srcpkgs/Clp/patches/disable-avx.patch @@ -0,0 +1,46 @@ +This disables AVX2 usage on x86_64 (by defining NO_AVX_HARDWARE) as well as +removes now-unused includes for AVX2/AVX512 instrinsics (the NEON header +was never used in the first place and the way it's included is completely +wrong anyway). + +We need it disabled on x86_64 because we're generic (and AVX is sandybridge +and newer, but the enabled code was for haswell and newer), and on other +arches it's disabled for obvious reasons. + +--- Clp/src/ClpPackedMatrix.cpp ++++ Clp/src/ClpPackedMatrix.cpp +@@ -6749,11 +6749,6 @@ ClpPackedMatrix3::ClpPackedMatrix3() + } + #ifdef _MSC_VER + #include +-#elif defined(__arm__) +-#include +-#else +-#include +-//#include + #endif + /* Constructor from copy. */ + ClpPackedMatrix3::ClpPackedMatrix3(ClpSimplex *model, const CoinPackedMatrix *columnCopy) +@@ -6777,7 +6772,7 @@ ClpPackedMatrix3::ClpPackedMatrix3(ClpSimplex *model, const CoinPackedMatrix *co + { + //#undef COIN_AVX2 + //#define COIN_AVX2 8 +- //#define NO_AVX_HARDWARE ++#define NO_AVX_HARDWARE + #ifndef COIN_AVX2 + #define COIN_AVX2 4 + #else +--- Clp/src/ClpSimplexDual.cpp ++++ Clp/src/ClpSimplexDual.cpp +@@ -3556,11 +3556,6 @@ void moveAndZero(clpTempInfo *info, int type, void *extra) + #endif + #ifdef _MSC_VER + #include +-#elif defined(__arm__) +-#include +-#else +-#include +-//#include + #endif + int ClpSimplexDual::dualColumn0(const CoinIndexedVector *rowArray, + const CoinIndexedVector *columnArray, diff --git a/srcpkgs/Clp/template b/srcpkgs/Clp/template index ee23f8b3de2..5b2af733ca3 100644 --- a/srcpkgs/Clp/template +++ b/srcpkgs/Clp/template @@ -1,7 +1,7 @@ # Template file for 'Clp' pkgname=Clp version=1.17.3 -revision=1 +revision=2 build_style=gnu-configure depends="libClp>=${version}_${revision}" short_desc="COIN LP Solver" @@ -11,10 +11,6 @@ homepage="http://projects.coin-or.org/Clp" distfiles="https://www.coin-or.org/Tarballs/${pkgname}/${pkgname}-${version}.tgz" checksum=a13bf54291ad503cf76f5f93f2643d2add4faa5d0e60ff2db902ef715c094573 -case "$XBPS_TARGET_MACHINE" in - aarch64*) broken="https://travis-ci.org/void-linux/void-packages/jobs/596999100" -esac - libClp-devel_package() { short_desc+=" - development files" depends="lib${sourcepkg}>=${version}_${revision}"