From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] Clp: reenable everywhere and disable AVX2 usage on x86_64
Date: Sun, 27 Oct 2019 21:03:26 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-15835@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 556 bytes --]
There is a new pull request by q66 against master on the void-packages repository
https://github.com/void-ppc/void-packages clp
https://github.com/void-linux/void-packages/pull/15835
Clp: reenable everywhere and disable AVX2 usage on x86_64
please, next time check for that kinda stuff before blindly bumping it (and it should receive a better review too) and marking stuff broken
we had haswell avx2 code enabled and that's unacceptable
@mobinmob @xtraeme
A patch file from https://github.com/void-linux/void-packages/pull/15835.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-clp-15835.patch --]
[-- Type: text/x-diff, Size: 3014 bytes --]
From a0a443008048e17f500ad07ea38803853482b3f4 Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
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 <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,
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}"
next reply other threads:[~2019-10-27 20:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-27 20:03 voidlinux-github [this message]
2019-10-28 9:02 ` [PR PATCH] [Merged]: " voidlinux-github
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-15835@inbox.vuxu.org \
--to=voidlinux-github@inbox.vuxu.org \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).