mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
Clp: reenable everywhere and disable AVX2 usage on x86_64
This commit is contained in:
parent
611120a85c
commit
8eab0fb91e
2 changed files with 47 additions and 5 deletions
46
srcpkgs/Clp/patches/disable-avx.patch
Normal file
46
srcpkgs/Clp/patches/disable-avx.patch
Normal file
|
@ -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 <intrin.h>
|
||||||
|
-#elif defined(__arm__)
|
||||||
|
-#include <arm_neon.h>
|
||||||
|
-#else
|
||||||
|
-#include <immintrin.h>
|
||||||
|
-//#include <fmaintrin.h>
|
||||||
|
#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 <intrin.h>
|
||||||
|
-#elif defined(__arm__)
|
||||||
|
-#include <arm_neon.h>
|
||||||
|
-#else
|
||||||
|
-#include <immintrin.h>
|
||||||
|
-//#include <fmaintrin.h>
|
||||||
|
#endif
|
||||||
|
int ClpSimplexDual::dualColumn0(const CoinIndexedVector *rowArray,
|
||||||
|
const CoinIndexedVector *columnArray,
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'Clp'
|
# Template file for 'Clp'
|
||||||
pkgname=Clp
|
pkgname=Clp
|
||||||
version=1.17.3
|
version=1.17.3
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
depends="libClp>=${version}_${revision}"
|
depends="libClp>=${version}_${revision}"
|
||||||
short_desc="COIN LP Solver"
|
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"
|
distfiles="https://www.coin-or.org/Tarballs/${pkgname}/${pkgname}-${version}.tgz"
|
||||||
checksum=a13bf54291ad503cf76f5f93f2643d2add4faa5d0e60ff2db902ef715c094573
|
checksum=a13bf54291ad503cf76f5f93f2643d2add4faa5d0e60ff2db902ef715c094573
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
|
||||||
aarch64*) broken="https://travis-ci.org/void-linux/void-packages/jobs/596999100"
|
|
||||||
esac
|
|
||||||
|
|
||||||
libClp-devel_package() {
|
libClp-devel_package() {
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
depends="lib${sourcepkg}>=${version}_${revision}"
|
depends="lib${sourcepkg}>=${version}_${revision}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue