summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorLaura Bellentani <l.bellentani@cineca.it>2023-09-13 22:07:32 +0200
committerGitHub <noreply@github.com>2023-09-13 16:07:32 -0400
commiteee8fdc4384d2f4a12249dff6b557c4f0dc92cf2 (patch)
tree90197b2ef6e263a13f69540ee7a15be943e3a770 /var
parent5a91802807e3ea8a50f804000005e9de4a7b0943 (diff)
downloadspack-eee8fdc4384d2f4a12249dff6b557c4f0dc92cf2.tar.gz
spack-eee8fdc4384d2f4a12249dff6b557c4f0dc92cf2.tar.bz2
spack-eee8fdc4384d2f4a12249dff6b557c4f0dc92cf2.tar.xz
spack-eee8fdc4384d2f4a12249dff6b557c4f0dc92cf2.zip
scorep: Change in configuration option for nvhpc compiler (#39919)
* scorep version 8.1 added * configure finds cudart and cupti in the nvhpcsdk suite * style fixed * changes to find libcuda.so in cuda directory --------- Co-authored-by: Laura Bellentani <lbellen1@login01.leonardo.local>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/scorep/package.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/scorep/package.py b/var/spack/repos/builtin/packages/scorep/package.py
index 0921552eda..ba9ac487e5 100644
--- a/var/spack/repos/builtin/packages/scorep/package.py
+++ b/var/spack/repos/builtin/packages/scorep/package.py
@@ -16,6 +16,7 @@ class Scorep(AutotoolsPackage):
url = "https://perftools.pages.jsc.fz-juelich.de/cicd/scorep/tags/scorep-7.1/scorep-7.1.tar.gz"
maintainers("wrwilliams")
+ version("8.1", sha256="3a40b481fce610871ddf6bdfb88a6d06b9e5eb38c6080faac6d5e44990060a37")
version("8.0", sha256="4c0f34f20999f92ebe6ca1ff706d0846b8ce6cd537ffbedb49dfaef0faa66311")
version("7.1", sha256="98dea497982001fb82da3429ca55669b2917a0858c71abe2cfe7cd113381f1f7")
version("7.0", sha256="68f24a68eb6f94eaecf500e17448f566031946deab74f2cba072ee8368af0996")
@@ -139,6 +140,12 @@ class Scorep(AutotoolsPackage):
# https://github.com/spack/spack/issues/1609
conflicts("platform=darwin")
+ def find_libpath(self, libname, root):
+ libs = find_libraries(libname, root, shared=True, recursive=True)
+ if len(libs.directories) == 0:
+ return None
+ return libs.directories[0]
+
def configure_args(self):
spec = self.spec
@@ -168,7 +175,9 @@ class Scorep(AutotoolsPackage):
if "+unwind" in spec:
config_args.append("--with-libunwind=%s" % spec["libunwind"].prefix)
if "+cuda" in spec:
- config_args.append("--with-libcuda=%s" % spec["cuda"].prefix)
+ config_args.append("--with-libcudart=%s" % spec["cuda"].prefix)
+ cuda_driver_path = self.find_libpath("libcuda", spec["cuda"].prefix)
+ config_args.append("--with-libcuda-lib=%s" % cuda_driver_path)
if "+hip" in spec:
config_args.append("--with-rocm=%s" % spec["hip"].prefix)