Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] Clp: reenable everywhere and disable AVX2 usage on x86_64
@ 2019-10-27 20:03 voidlinux-github
  2019-10-28  9:02 ` [PR PATCH] [Merged]: " voidlinux-github
  0 siblings, 1 reply; 2+ messages in thread
From: voidlinux-github @ 2019-10-27 20:03 UTC (permalink / raw)
  To: ml

[-- 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}"

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: Clp: reenable everywhere and disable AVX2 usage on x86_64
  2019-10-27 20:03 [PR PATCH] Clp: reenable everywhere and disable AVX2 usage on x86_64 voidlinux-github
@ 2019-10-28  9:02 ` voidlinux-github
  0 siblings, 0 replies; 2+ messages in thread
From: voidlinux-github @ 2019-10-28  9:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 412 bytes --]

There's a merged pull request on the void-packages repository

Clp: reenable everywhere and disable AVX2 usage on x86_64
https://github.com/void-linux/void-packages/pull/15835

Description:
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-28  9:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-27 20:03 [PR PATCH] Clp: reenable everywhere and disable AVX2 usage on x86_64 voidlinux-github
2019-10-28  9:02 ` [PR PATCH] [Merged]: " voidlinux-github

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).