gnu: scorep-openmpi: Update to 9.0.

* gnu/packages/mpi.scm (make-scorep): Update to 9.0.
[source]: Update URI.
[inputs]: Add cubew, gotcha, libbfd, libiberty.
[native-inputs]: Remove cube.
[arguments]<#:configure-flags>: Adapt.
Change-Id: I832bb5092091080b5544e51c60ca8e3bc27beb12
Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Luca Cirrottola 2025-08-28 23:44:59 +02:00 committed by Andreas Enge
parent a0fc8ae8c8
commit b768eefa59
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -731,57 +731,66 @@ programmable API.")
(define (make-scorep mpi) (define (make-scorep mpi)
(package (package
(name (string-append "scorep-" (package-name mpi))) (name (string-append "scorep-" (package-name mpi)))
(version "3.1") (version "9.0")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
"http://www.vi-hps.org/upload/packages/scorep/scorep-" "https://perftools.pages.jsc.fz-juelich.de/cicd/scorep/tags/"
version ".tar.gz")) "scorep-" version "/scorep-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"0h45357djna4dn9jyxx0n36fhhms3jrf22988m9agz1aw2jfivs9")) "15q93rc8wblbzqgh99rqzyq6fdp88mi6yziww05c6cbgrjs5s2jx"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
;; Remove bundled software. ;; Remove bundled software.
'(begin '(begin
(for-each delete-file-recursively (for-each delete-file-recursively
'("vendor/opari2" "vendor/cube")) '("vendor/otf2" "vendor/opari2"
#t)))) "vendor/cubelib" "vendor/cubew"))))))
(build-system gnu-build-system) (build-system gnu-build-system)
(inputs (inputs
`(("mpi" ,mpi) (list mpi
("papi" ,papi) papi
("opari2" ,opari2) opari2
("libunwind" ,libunwind) libunwind
("otf2" ,otf2) otf2
("cubelib" ,cube "lib") ;for lib, include cubelib
("openmpi" ,openmpi) cubew
("zlib" ,zlib))) gotcha
libbfd
libiberty
openmpi
zlib))
(native-inputs (native-inputs
(list gfortran (list gfortran
flex flex
cube ;for cube-config bison
bison python
python doxygen
doxygen which))
which))
(arguments (arguments
`(#:configure-flags (list
(list "--enable-shared" "--disable-static" #:configure-flags
(string-append "--with-opari2=" #~(list "--enable-shared" "--disable-static"
(assoc-ref %build-inputs "opari2")) "MPI_LIBS=-lmpi" "SHMEM_LIBS=-loshmem"
(string-append "--with-cube=" (string-append "--with-cubelib="
(assoc-ref %build-inputs "cube"))) #$(this-package-input "cubelib"))
#:parallel-tests? #f (string-append "--with-cubew="
#:make-flags '("V=1") #$(this-package-input "cubew"))
#:phases (string-append "--with-libbfd="
(modify-phases %standard-phases #$(this-package-input "libbfd"))
(add-after 'install 'licence (string-append "--with-otf2="
(lambda* (#:key outputs #:allow-other-keys) #$(this-package-input "otf2"))
(let ((doc (string-append (assoc-ref outputs "out") (string-append "--with-opari2="
"/share/doc/scorep"))) #$(this-package-input "opari2")))
(install-file "COPYING" doc) #:parallel-tests? #f
#t)))))) #:phases
#~(modify-phases %standard-phases
(add-after 'install 'licence
(lambda* (#:key outputs #:allow-other-keys)
(let ((doc (string-append (assoc-ref outputs "out")
"/share/doc/scorep")))
(install-file "COPYING" doc)))))))
(home-page "https://www.vi-hps.org/projects/score-p/") (home-page "https://www.vi-hps.org/projects/score-p/")
(synopsis "Performance measurement infrastructure for parallel code") (synopsis "Performance measurement infrastructure for parallel code")
(description (description