summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Huber2016-08-05 15:10:15 +0200
committerMarcel Huber2016-08-05 15:10:15 +0200
commit74e73e32becf0a29236b6b410c3eeb91e0d0e618 (patch)
treecc24773fa944d21567404981a79deaa4a799ab32
parent620f8144a4c485f1d8c5495c3d23af98aa962cbe (diff)
downloadaur-74e73e32becf0a29236b6b410c3eeb91e0d0e618.tar.gz
provide coi and myo libs too
-rw-r--r--.SRCINFO86
-rw-r--r--PKGBUILD118
-rw-r--r--mpss-coi-gcc6-compilation.patch56
3 files changed, 200 insertions, 60 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ec75b95884a..825c97116ea 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = mpss
pkgdesc = Intel® Manycore Platform Software Stack
pkgver = 3.7.1
- pkgrel = 6
+ pkgrel = 7
url = https://software.intel.com/en-us/articles/intel-manycore-platform-software-stack-mpss
arch = x86_64
license = LGPL2.1
@@ -12,42 +12,44 @@ pkgbase = mpss
depends = nfs-utils
depends = netctl
depends = ifplugd
- source_x86_64 = http://registrationcenter-download.intel.com/akdlm/irc_nas/9226/mpss-3.7.1-linux.tar
- source_x86_64 = http://registrationcenter-download.intel.com/akdlm/irc_nas/9226/mpss-3.7.1-k1om.tar
- source_x86_64 = http://registrationcenter-download.intel.com/akdlm/irc_nas/9226/mpss-src-3.7.1.tar
- source_x86_64 = dkms.conf
- source_x86_64 = blacklist-mpss.conf
- source_x86_64 = mpss-daemon.service
- source_x86_64 = micmgmt.setup.py
- source_x86_64 = mpss-daemon-archlinux-extension.patch
- source_x86_64 = mpss-daemon-minimize-modules.patch
- source_x86_64 = mpss-modules-explicit-coprocessor-build.patch
- source_x86_64 = mpss-modules-init-indent.patch
- source_x86_64 = mpss-modules-rcu-lockup.patch
- source_x86_64 = mpss-modules-page-cache.patch
- source_x86_64 = mpss-gen-symver-map-python3-compat.patch
- source_x86_64 = mpss-micmgmt-misleading-indent.patch
- source_x86_64 = mpss-micmgmt-remove-inline0.patch
- source_x86_64 = mpss-micmgmt-remove-inline1.patch
- source_x86_64 = mpss-micmgmt-whitespace.patch
- sha256sums_x86_64 = 3a8d070d7b82d41afa67766db8e3305621643ced1b3f8e2845bf333cdf39b83b
- sha256sums_x86_64 = d73abe69df8f36e6214194fc010877b2ee5ea47e2227acf823d88896804899aa
- sha256sums_x86_64 = 4458257ded25dc7b69fa6de49e7ec066d0053ef6be54267bb283dbb4e6eb38c8
- sha256sums_x86_64 = a76162c169073060ee3a966e95342f29b3e342c956d29169c10a6dd97e342fa5
- sha256sums_x86_64 = 540cfb724426aaa92fd3998cf6f1a34e491332316af88848d251409bdd596fb3
- sha256sums_x86_64 = 8fe2d3b0f1374cf74ea9ef1c5ade0a6cdf891cbcd0438420c19da27feef144c7
- sha256sums_x86_64 = 191d6fd54157ad5a9465947c73b4332a83fc4411be5d9738d0594a2b7ddb7273
- sha256sums_x86_64 = 265d26efa3e127f4d5211bb32e65c70beb9ee6b1703a5e2c146e9aa3e4d33604
- sha256sums_x86_64 = b135e8af616fa2404777ae8c689ea97b9ffb73d18036039fd545108b9b9310fc
- sha256sums_x86_64 = 2169df02b5623c43feb272f2d142472d2d42a089a370a6f33f470aa3dea50603
- sha256sums_x86_64 = b1264678b77a3ae64716e507e225fce5cfd1c77ae77d0119071c28cab74d0a97
- sha256sums_x86_64 = 3690295e9e24e6a8b42323ca5b2b76f56a3a8f4bdee75b3dfc5a3f01e3f3d1bc
- sha256sums_x86_64 = ace053c75b096c2e120c73076c9a86fcbf1528518761766b9e41e975dc44ae43
- sha256sums_x86_64 = 17791147eef797e4fe161bb08e989685303dbff866d01f2e37335c09e6367688
- sha256sums_x86_64 = 64d26ff84029d246868f995cf9fd49b20851a671208c3fa474e0fef5216708cd
- sha256sums_x86_64 = 99d0e6d58a14bfbbe96b41de8f0f4383225acaefba8e4d48c7ff86924502c545
- sha256sums_x86_64 = ac8e471ddd8ff1cba8b269434ab0efac2ece7bc68cf0044147d99e70e831ce09
- sha256sums_x86_64 = 1e523015afb1919023d61648126e13baa7d577a9b64aa3445dd67e156e75e5fa
+ source = http://registrationcenter-download.intel.com/akdlm/irc_nas/9226/mpss-3.7.1-linux.tar
+ source = http://registrationcenter-download.intel.com/akdlm/irc_nas/9226/mpss-3.7.1-k1om.tar
+ source = http://registrationcenter-download.intel.com/akdlm/irc_nas/9226/mpss-src-3.7.1.tar
+ source = dkms.conf
+ source = blacklist-mpss.conf
+ source = mpss-daemon.service
+ source = micmgmt.setup.py
+ source = mpss-daemon-archlinux-extension.patch
+ source = mpss-daemon-minimize-modules.patch
+ source = mpss-modules-explicit-coprocessor-build.patch
+ source = mpss-modules-init-indent.patch
+ source = mpss-modules-rcu-lockup.patch
+ source = mpss-modules-page-cache.patch
+ source = mpss-gen-symver-map-python3-compat.patch
+ source = mpss-micmgmt-misleading-indent.patch
+ source = mpss-micmgmt-remove-inline0.patch
+ source = mpss-micmgmt-remove-inline1.patch
+ source = mpss-micmgmt-whitespace.patch
+ source = mpss-coi-gcc6-compilation.patch
+ sha256sums = 3a8d070d7b82d41afa67766db8e3305621643ced1b3f8e2845bf333cdf39b83b
+ sha256sums = d73abe69df8f36e6214194fc010877b2ee5ea47e2227acf823d88896804899aa
+ sha256sums = 4458257ded25dc7b69fa6de49e7ec066d0053ef6be54267bb283dbb4e6eb38c8
+ sha256sums = a76162c169073060ee3a966e95342f29b3e342c956d29169c10a6dd97e342fa5
+ sha256sums = 540cfb724426aaa92fd3998cf6f1a34e491332316af88848d251409bdd596fb3
+ sha256sums = 8fe2d3b0f1374cf74ea9ef1c5ade0a6cdf891cbcd0438420c19da27feef144c7
+ sha256sums = 191d6fd54157ad5a9465947c73b4332a83fc4411be5d9738d0594a2b7ddb7273
+ sha256sums = 265d26efa3e127f4d5211bb32e65c70beb9ee6b1703a5e2c146e9aa3e4d33604
+ sha256sums = b135e8af616fa2404777ae8c689ea97b9ffb73d18036039fd545108b9b9310fc
+ sha256sums = 2169df02b5623c43feb272f2d142472d2d42a089a370a6f33f470aa3dea50603
+ sha256sums = b1264678b77a3ae64716e507e225fce5cfd1c77ae77d0119071c28cab74d0a97
+ sha256sums = 3690295e9e24e6a8b42323ca5b2b76f56a3a8f4bdee75b3dfc5a3f01e3f3d1bc
+ sha256sums = ace053c75b096c2e120c73076c9a86fcbf1528518761766b9e41e975dc44ae43
+ sha256sums = 17791147eef797e4fe161bb08e989685303dbff866d01f2e37335c09e6367688
+ sha256sums = 64d26ff84029d246868f995cf9fd49b20851a671208c3fa474e0fef5216708cd
+ sha256sums = 99d0e6d58a14bfbbe96b41de8f0f4383225acaefba8e4d48c7ff86924502c545
+ sha256sums = ac8e471ddd8ff1cba8b269434ab0efac2ece7bc68cf0044147d99e70e831ce09
+ sha256sums = 1e523015afb1919023d61648126e13baa7d577a9b64aa3445dd67e156e75e5fa
+ sha256sums = 0589259ca31ef4a66885f37a9404d4d728395e2c393d32628ac4444c7637a78f
pkgname = mpss-modules-dkms
pkgdesc = mic Kernel module of Intel® Manycore Platform Software Stack
@@ -70,6 +72,16 @@ pkgname = mpss-micmgmt-miclib
groups = mpss
depends = mpss-libscif
+pkgname = mpss-coi
+ pkgdesc = compiler offload infrastructure of Intel® Manycore Platform Software Stack
+ groups = mpss
+ depends = mpss-libscif
+
+pkgname = mpss-myo
+ pkgdesc = mine yours ours of Intel® Manycore Platform Software Stack
+ groups = mpss
+ depends = mpss-libscif
+
pkgname = mpss-micmgmt-tools
pkgdesc = micmgmt tools of Intel® Manycore Platform Software Stack
groups = mpss
diff --git a/PKGBUILD b/PKGBUILD
index c3cba3b5eda..cec7a6e6890 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,23 @@
# Maintainer: Marcel Huber <`echo "moc tknup liamg tä oofrebuhlecram" | rev`>
pkgbase=mpss
-pkgname=(mpss-modules-dkms mpss-gen-symver-map mpss-libscif mpss-micmgmt-miclib
- mpss-micmgmt-tools mpss-micmgmt-python mpss-daemon
- mpss-boot-files mpss-flash-files)
+pkgname=(
+ mpss-modules-dkms
+ mpss-gen-symver-map mpss-libscif
+ mpss-micmgmt-miclib
+ mpss-coi mpss-myo
+ mpss-micmgmt-tools mpss-micmgmt-python mpss-daemon
+ mpss-boot-files mpss-flash-files
+)
pkgdesc="Intel® Manycore Platform Software Stack"
pkgver=3.7.1
-pkgrel=6
+pkgrel=7
arch=('x86_64')
url="https://software.intel.com/en-us/articles/intel-manycore-platform-software-stack-mpss"
license=('LGPL2.1')
depends=(dkms python nfs-utils netctl ifplugd)
makedepends=(asciidoc libarchive)
-source_x86_64=(
+source=(
http://registrationcenter-download.intel.com/akdlm/irc_nas/9226/mpss-${pkgver}-linux.tar
http://registrationcenter-download.intel.com/akdlm/irc_nas/9226/mpss-${pkgver}-k1om.tar
http://registrationcenter-download.intel.com/akdlm/irc_nas/9226/mpss-src-${pkgver}.tar
@@ -31,25 +36,27 @@ source_x86_64=(
mpss-micmgmt-remove-inline0.patch
mpss-micmgmt-remove-inline1.patch
mpss-micmgmt-whitespace.patch
+ mpss-coi-gcc6-compilation.patch
)
-sha256sums_x86_64=('3a8d070d7b82d41afa67766db8e3305621643ced1b3f8e2845bf333cdf39b83b'
- 'd73abe69df8f36e6214194fc010877b2ee5ea47e2227acf823d88896804899aa'
- '4458257ded25dc7b69fa6de49e7ec066d0053ef6be54267bb283dbb4e6eb38c8'
- 'a76162c169073060ee3a966e95342f29b3e342c956d29169c10a6dd97e342fa5'
- '540cfb724426aaa92fd3998cf6f1a34e491332316af88848d251409bdd596fb3'
- '8fe2d3b0f1374cf74ea9ef1c5ade0a6cdf891cbcd0438420c19da27feef144c7'
- '191d6fd54157ad5a9465947c73b4332a83fc4411be5d9738d0594a2b7ddb7273'
- '265d26efa3e127f4d5211bb32e65c70beb9ee6b1703a5e2c146e9aa3e4d33604'
- 'b135e8af616fa2404777ae8c689ea97b9ffb73d18036039fd545108b9b9310fc'
- '2169df02b5623c43feb272f2d142472d2d42a089a370a6f33f470aa3dea50603'
- 'b1264678b77a3ae64716e507e225fce5cfd1c77ae77d0119071c28cab74d0a97'
- '3690295e9e24e6a8b42323ca5b2b76f56a3a8f4bdee75b3dfc5a3f01e3f3d1bc'
- 'ace053c75b096c2e120c73076c9a86fcbf1528518761766b9e41e975dc44ae43'
- '17791147eef797e4fe161bb08e989685303dbff866d01f2e37335c09e6367688'
- '64d26ff84029d246868f995cf9fd49b20851a671208c3fa474e0fef5216708cd'
- '99d0e6d58a14bfbbe96b41de8f0f4383225acaefba8e4d48c7ff86924502c545'
- 'ac8e471ddd8ff1cba8b269434ab0efac2ece7bc68cf0044147d99e70e831ce09'
- '1e523015afb1919023d61648126e13baa7d577a9b64aa3445dd67e156e75e5fa')
+sha256sums=('3a8d070d7b82d41afa67766db8e3305621643ced1b3f8e2845bf333cdf39b83b'
+ 'd73abe69df8f36e6214194fc010877b2ee5ea47e2227acf823d88896804899aa'
+ '4458257ded25dc7b69fa6de49e7ec066d0053ef6be54267bb283dbb4e6eb38c8'
+ 'a76162c169073060ee3a966e95342f29b3e342c956d29169c10a6dd97e342fa5'
+ '540cfb724426aaa92fd3998cf6f1a34e491332316af88848d251409bdd596fb3'
+ '8fe2d3b0f1374cf74ea9ef1c5ade0a6cdf891cbcd0438420c19da27feef144c7'
+ '191d6fd54157ad5a9465947c73b4332a83fc4411be5d9738d0594a2b7ddb7273'
+ '265d26efa3e127f4d5211bb32e65c70beb9ee6b1703a5e2c146e9aa3e4d33604'
+ 'b135e8af616fa2404777ae8c689ea97b9ffb73d18036039fd545108b9b9310fc'
+ '2169df02b5623c43feb272f2d142472d2d42a089a370a6f33f470aa3dea50603'
+ 'b1264678b77a3ae64716e507e225fce5cfd1c77ae77d0119071c28cab74d0a97'
+ '3690295e9e24e6a8b42323ca5b2b76f56a3a8f4bdee75b3dfc5a3f01e3f3d1bc'
+ 'ace053c75b096c2e120c73076c9a86fcbf1528518761766b9e41e975dc44ae43'
+ '17791147eef797e4fe161bb08e989685303dbff866d01f2e37335c09e6367688'
+ '64d26ff84029d246868f995cf9fd49b20851a671208c3fa474e0fef5216708cd'
+ '99d0e6d58a14bfbbe96b41de8f0f4383225acaefba8e4d48c7ff86924502c545'
+ 'ac8e471ddd8ff1cba8b269434ab0efac2ece7bc68cf0044147d99e70e831ce09'
+ '1e523015afb1919023d61648126e13baa7d577a9b64aa3445dd67e156e75e5fa'
+ '0589259ca31ef4a66885f37a9404d4d728395e2c393d32628ac4444c7637a78f')
extract_rpmfiles() {
_extract_rpmfiles=(
@@ -75,6 +82,8 @@ extract_srcfiles() {
"src/mpss-daemon-${pkgver}.tar.bz2|mpss-daemon"
"src/mpss-micmgmt-${pkgver}.tar.bz2|mpss-micmgmt"
"src/mpss-metadata-${pkgver}.tar.bz2|mpss-metadata"
+ "src/mpss-coi-${pkgver}.tar.bz2|mpss-coi"
+ "src/mpss-myo-${pkgver}.tar.bz2|mpss-myo"
)
for ef in "${_extract_srcfiles[@]}"; do
_filepart="$(cut -d'|' -f1 <<<$ef)";
@@ -226,6 +235,69 @@ package_mpss-micmgmt-miclib() {
install_lib
}
+package_mpss-coi() {
+ depends=(mpss-libscif)
+ pkgdesc="compiler offload infrastructure of Intel® Manycore Platform Software Stack"
+ groups=(mpss)
+ _pkgname=${pkgname}
+ msg2 "Starting make in ${_pkgname}..."
+
+ LDFLAGS="-L$_install_lib" \
+ CFLAGS="-I$_install_include" \
+ make -C $_pkgname \
+ --include-dir=$_metadata_include_dir \
+ all
+
+ LDFLAGS="-L$_install_lib" \
+ CFLAGS="-I$_install_include" \
+ make -C $_pkgname \
+ --include-dir=$_metadata_include_dir \
+ DESTDIR="$pkgdir" \
+ prefix=/usr/ \
+ libdir=/usr/lib \
+ install
+
+ install -D -m644 ${_pkgname}/COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -D -m644 ${_pkgname}/COPYING.BSD "$pkgdir/usr/share/licenses/$pkgname/LICENSE.BSD"
+ install -D -m644 ${_pkgname}/COPYING.LGPL "$pkgdir/usr/share/licenses/$pkgname/LICENSE.LGPL"
+}
+
+package_mpss-myo() {
+ depends=(mpss-libscif)
+ pkgdesc="mine yours ours of Intel® Manycore Platform Software Stack"
+ groups=(mpss)
+ _pkgname=${pkgname}
+ msg2 "Starting make in ${_pkgname}..."
+
+ LDFLAGS="-L$_install_lib" \
+ CFLAGS="-I$_install_include" \
+ make -C $_pkgname/src \
+ --include-dir=$_metadata_include_dir \
+ HOST=1 CARD=0 \
+ TARGET=libmyo-client.so \
+ DBL_TARGET=libmyodbl-client.so \
+ BUILD_AND_INSTALL_MAN_PAGES=1 \
+ all
+
+ LDFLAGS="-L$_install_lib" \
+ CFLAGS="-I$_install_include" \
+ make -C $_pkgname/src \
+ --include-dir=$_metadata_include_dir \
+ DESTDIR="$pkgdir" \
+ prefix=/usr/ \
+ libdir=/usr/lib \
+ HOST=1 CARD=0 \
+ TARGET=libmyo-client.so \
+ DBL_TARGET=libmyodbl-client.so \
+ BUILD_AND_INSTALL_MAN_PAGES=1 \
+ install
+
+ install -D -m644 ${_pkgname}/COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -D -m644 ${_pkgname}/COPYING.BSD "$pkgdir/usr/share/licenses/$pkgname/LICENSE.BSD"
+ install -D -m644 ${_pkgname}/COPYING.LGPL "$pkgdir/usr/share/licenses/$pkgname/LICENSE.LGPL"
+ install -D -m644 ${_pkgname}/COPYING.LIB "$pkgdir/usr/share/licenses/$pkgname/LICENSE.LIB"
+}
+
package_mpss-micmgmt-tools() {
depends=(mpss-micmgmt-miclib netctl ifplugd)
pkgdesc="micmgmt tools of Intel® Manycore Platform Software Stack"
diff --git a/mpss-coi-gcc6-compilation.patch b/mpss-coi-gcc6-compilation.patch
new file mode 100644
index 00000000000..751b8d11ca9
--- /dev/null
+++ b/mpss-coi-gcc6-compilation.patch
@@ -0,0 +1,56 @@
+From d5a25d9c6f8411968f2a522ea4c86845b8fd5257 Mon Sep 17 00:00:00 2001
+From: Marcel Huber <marcelhuberfoo@gmail.com>
+Date: Fri, 5 Aug 2016 14:21:29 +0200
+Subject: gcc6 compilation fixes
+
+---
+ src/include/internal/_DMA.h | 4 ++--
+ src/include/internal/_Process.h | 1 +
+ src/mechanism/dma/dma.cpp | 4 ++++
+ 3 files changed, 7 insertions(+), 2 deletions(-)
+
+diff --git mpss-coi/src/include/internal/_DMA.h mpss-coi/src/include/internal/_DMA.h
+index 989caa9..add34cd 100755
+--- mpss-coi/src/include/internal/_DMA.h
++++ mpss-coi/src/include/internal/_DMA.h
+@@ -104,8 +104,8 @@ public:
+ }
+ COIRESULT AsyncDMAProgamming(dma_data *in_dma_op);
+
+- static const uint64_t MAXSPINSIZE = 2 * 1024 * 1024;
+- static const double MAXSPINTIME = 0.0005;
++ static const uint64_t MAXSPINSIZE;
++ static const double MAXSPINTIME;
+ //Node that gets enqueued to later on fetch related information
+ //when a DMA operation finishes
+ typedef struct
+diff --git mpss-coi/src/include/internal/_Process.h mpss-coi/src/include/internal/_Process.h
+index e496743..d9a7a3e 100755
+--- mpss-coi/src/include/internal/_Process.h
++++ mpss-coi/src/include/internal/_Process.h
+@@ -241,6 +241,7 @@ public:
+ // Reponse for function handles, sent as an array of uint64 handles.
+ // Number of handles is same size as the request message.
+ SUB_MESSAGE_TYPE(FUNCTIONHANDLES,
++ uint64_t dummy;
+ uint64_t handles[];
+ );
+
+diff --git mpss-coi/src/mechanism/dma/dma.cpp mpss-coi/src/mechanism/dma/dma.cpp
+index 995c088..4b0ac3a 100755
+--- mpss-coi/src/mechanism/dma/dma.cpp
++++ mpss-coi/src/mechanism/dma/dma.cpp
+@@ -64,6 +64,10 @@
+ #include <internal/_Process.h>
+ #include <internal/_Perf.h>
+
++
++const uint64_t COIDMAFence::MAXSPINSIZE = 2 * 1024 * 1024;
++const double COIDMAFence::MAXSPINTIME = 0.0005;
++
+ COIDMAFence::COIDMAFence(_COIComm *comm, void *process) :
+ m_mem(NULL),
+ m_offset(0),
+--
+2.9.2
+