GNU bug report logs -
#31172
[PATCH 0/1] Add psm2
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31172 in the body.
You can then email your comments to 31172 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#31172
; Package
guix-patches
.
(Mon, 16 Apr 2018 07:47:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Rouby Pierre-Antoine <pierre-antoine.rouby <at> inria.fr>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Mon, 16 Apr 2018 07:47:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
This patch add package for psm2. They compile and install without any error.
But, I'm not familiar with psm2. Someone could have a look ?
Rouby Pierre-Antoine (1):
gnu: Add psm2.
gnu/packages/linux.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
--
2.16.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#31172
; Package
guix-patches
.
(Mon, 16 Apr 2018 07:50:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 31172 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/linux.scm (psm2): New variable.
---
gnu/packages/linux.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index f49171fa5..a4a8859e5 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -27,6 +27,7 @@
;;; Copyright © 2017, 2018 Rutger Helling <rhelling <at> mykolab.com>
;;; Copyright © 2017 nee <nee-git <at> hidamari.blue>
;;; Copyright © 2017 Dave Love <fx <at> gnu.org>
+;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby <at> inria.fr>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -4561,3 +4562,43 @@ text-mode or graphical applications that don't use a display server.
Also included is @command{fbgrab}, a wrapper around @command{fbcat} that
emulates the behaviour of Gunnar Monell's older fbgrab utility.")
(license license:gpl2)))
+
+(define-public psm2
+ (package
+ (name "psm2")
+ (version "10.3-46")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/intel/opa-psm2.git")
+ (commit "5fabd0e699a920e74333f789923fd1c02bb7c629")))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0wadphv4rl5p38x6a3dgpbijlzqdvcn02cfafnp72nh9faz0zvlx"))))
+ (build-system gnu-build-system)
+ (arguments
+ '(#:modules ((guix build utils)
+ (guix build gnu-build-system))
+ #:phases (modify-phases %standard-phases
+ (delete 'configure)
+ (delete 'check)
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out")))
+ (setenv "DESTDIR" out)
+ (invoke "make" "install")
+ #t))))))
+ (inputs
+ `(("rdma-core" ,rdma-core)
+ ("numactl" ,numactl)))
+ (synopsis "Intel Performance Scaled Messaging 2 (PSM2) library")
+ (description
+ "This package is low-level user-level Intel's communications interface.
+The PSM2 API is a high-performance vendor-specific protocol that provides a
+low-level communications interface for the Intel Omni-Path family of
+products.")
+ (home-page "https://github.com/intel/opa-psm2")
+ ;; Only the x86_64 architecure is supported.
+ (supported-systems '("x86_64-linux"))
+ (license (list license:bsd-3 license:gpl2)))) ; dual
--
2.16.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#31172
; Package
guix-patches
.
(Mon, 23 Apr 2018 12:53:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 31172 <at> debbugs.gnu.org (full text, mbox):
Hello,
Rouby Pierre-Antoine <pierre-antoine.rouby <at> inria.fr> skribis:
> * gnu/packages/linux.scm (psm2): New variable.
Overall LGTM! Some comments:
> +(define-public psm2
> + (package
> + (name "psm2")
> + (version "10.3-46")
> + (source (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://github.com/intel/opa-psm2.git")
> + (commit "5fabd0e699a920e74333f789923fd1c02bb7c629")))
I think you can use the “PSM2_10.3-46” tag for clarity here.
> + (arguments
> + '(#:modules ((guix build utils)
> + (guix build gnu-build-system))
This #:modules isn’t needed since it’s already the default set of
modules.
> + #:phases (modify-phases %standard-phases
> + (delete 'configure)
> + (delete 'check)
> + (replace 'install
> + (lambda* (#:key outputs #:allow-other-keys)
> + (let* ((out (assoc-ref outputs "out")))
> + (setenv "DESTDIR" out)
> + (invoke "make" "install")
Setting DESTDIR doesn’t quite work; it leads to an incorrect layout with
some files going to $prefix/usr:
--8<---------------cut here---------------start------------->8---
$ find /gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/lib
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/lib/udev
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/lib/udev/rules.d
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/lib/udev/rules.d/40-psm.rules
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/lib/udev/rules.d/40-psm-compat.rules
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/share
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/share/doc
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/share/doc/psm2-10.3-46
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/share/doc/psm2-10.3-46/COPYING
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/lib
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/lib/libpsm2
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/lib/libpsm2/libpsm2-compat.cmds
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/lib64
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/lib64/libpsm2.so.2
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/lib64/psm2-compat
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/lib64/psm2-compat/libpsm_infinipath.so.1
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/lib64/libpsm2.so
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/lib64/libpsm2.so.2.1
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/lib64/libpsm2.a
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/psm2.h
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/hfi1diag
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/hfi1diag/hfi1_deprecated.h
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/hfi1diag/ptl_ips
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/hfi1diag/ptl_ips/ipserror.h
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/hfi1diag/psmi_wrappers.h
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/hfi1diag/opa_intf.h
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/hfi1diag/linux-x86_64
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/hfi1diag/linux-x86_64/bit_ops.h
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/hfi1diag/linux-x86_64/sysdep.h
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/hfi1diag/opa_udebug.h
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/hfi1diag/opa_debug.h
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/hfi1diag/opa_byteorder.h
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/hfi1diag/opa_common.h
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/hfi1diag/opa_revision.h
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/hfi1diag/opa_service.h
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/hfi1diag/psm2_mock_testing.h
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/hfi1diag/opa_user.h
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/psm2_mq.h
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/usr/include/psm2_am.h
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/etc
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/etc/modprobe.d
/gnu/store/i1ln5bgdkspm959nv7k42ysgycgsm3v6-psm2-10.3-46/etc/modprobe.d/libpsm2-compat.conf
--8<---------------cut here---------------end--------------->8---
Also we should avoid lib64/.
Could you send an updated patch?
Eventually we should try adding psm2 as an input to ‘openmpi’ so that it
is built with PSM2 modules.
Thank you!
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#31172
; Package
guix-patches
.
(Wed, 25 Apr 2018 11:50:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 31172 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/linux.scm (psm2): New variable.
---
gnu/packages/linux.scm | 48 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index f49171fa5..e69bbf5b7 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -27,6 +27,7 @@
;;; Copyright © 2017, 2018 Rutger Helling <rhelling <at> mykolab.com>
;;; Copyright © 2017 nee <nee-git <at> hidamari.blue>
;;; Copyright © 2017 Dave Love <fx <at> gnu.org>
+;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby <at> inria.fr>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -4561,3 +4562,50 @@ text-mode or graphical applications that don't use a display server.
Also included is @command{fbgrab}, a wrapper around @command{fbcat} that
emulates the behaviour of Gunnar Monell's older fbgrab utility.")
(license license:gpl2)))
+
+(define-public psm2
+ (package
+ (name "psm2")
+ (version "10.3-46")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/intel/opa-psm2.git")
+ (commit (string-append "PSM2_" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0wadphv4rl5p38x6a3dgpbijlzqdvcn02cfafnp72nh9faz0zvlx"))))
+ (build-system gnu-build-system)
+ (arguments
+ '(#:make-flags
+ `(,(string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))
+ #:tests? #f
+ #:phases (modify-phases %standard-phases
+ (delete 'configure)
+ (add-after 'unpack 'patch-Makefiles
+ (lambda _
+ (substitute* "Makefile"
+ (("/lib64") "/lib")
+ (("/usr") ""))
+ (substitute* "compat/Makefile"
+ (("/lib64") "/lib")
+ (("/usr") ""))
+ #t))
+ (replace 'install
+ (lambda _
+ (setenv "DESTDIR" %output)
+ (invoke "make" "install"))))))
+ (inputs
+ `(("rdma-core" ,rdma-core)
+ ("numactl" ,numactl)))
+ (synopsis "Intel Performance Scaled Messaging 2 (PSM2) library")
+ (description
+ "This package is low-level user-level Intel's communications interface.
+The PSM2 API is a high-performance vendor-specific protocol that provides a
+low-level communications interface for the Intel Omni-Path family of
+products.")
+ (home-page "https://github.com/intel/opa-psm2")
+ ;; Only the x86_64 architecure is supported.
+ (supported-systems '("x86_64-linux"))
+ (license (list license:bsd-3 license:gpl2)))) ; dual
--
2.17.0
Reply sent
to
ludo <at> gnu.org (Ludovic Courtès)
:
You have taken responsibility.
(Thu, 26 Apr 2018 13:23:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Rouby Pierre-Antoine <pierre-antoine.rouby <at> inria.fr>
:
bug acknowledged by developer.
(Thu, 26 Apr 2018 13:23:03 GMT)
Full text and
rfc822 format available.
Message #19 received at 31172-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Rouby Pierre-Antoine <pierre-antoine.rouby <at> inria.fr> skribis:
> * gnu/packages/linux.scm (psm2): New variable.
Awesome, applied with the following changes.
Thank you!
Ludo’.
[Message part 2 (text/x-patch, inline)]
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 2b82babfa..8fc9c56d6 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -4665,7 +4665,8 @@ privileges.")
(replace 'install
(lambda _
(setenv "DESTDIR" %output)
- (invoke "make" "install"))))))
+ (invoke "make" "install")
+ #t)))))
(inputs
`(("rdma-core" ,rdma-core)
("numactl" ,numactl)))
@@ -4674,7 +4675,7 @@ privileges.")
"This package is low-level user-level Intel's communications interface.
The PSM2 API is a high-performance vendor-specific protocol that provides a
low-level communications interface for the Intel Omni-Path family of
-products.")
+high-speed networking devices.")
(home-page "https://github.com/intel/opa-psm2")
;; Only the x86_64 architecure is supported.
(supported-systems '("x86_64-linux"))
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 25 May 2018 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 336 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.