From cd40d022146718407717dd4963a2eeffe656c60c Mon Sep 17 00:00:00 2001 From: "Mark W. Krentel" Date: Mon, 31 Oct 2022 23:38:04 -0500 Subject: hpctoolkit: adjust rocm dependency types (#33627) Drop the link dependency type for the rocm packages. We don't actually link, and that adds rpaths that conflict with the app. --- var/spack/repos/builtin/packages/hpctoolkit/package.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/hpctoolkit/package.py b/var/spack/repos/builtin/packages/hpctoolkit/package.py index 368e115a68..5e7b70b299 100644 --- a/var/spack/repos/builtin/packages/hpctoolkit/package.py +++ b/var/spack/repos/builtin/packages/hpctoolkit/package.py @@ -137,10 +137,12 @@ class Hpctoolkit(AutotoolsPackage): depends_on("hpcviewer@2022.10:", type="run", when="@2022.10: +viewer") depends_on("hpcviewer", type="run", when="+viewer") - depends_on("hip@4.5:", when="+rocm") - depends_on("hsa-rocr-dev@4.5:", when="+rocm") - depends_on("roctracer-dev@4.5:", when="+rocm") - depends_on("rocprofiler-dev@4.5:", when="+rocm") + # Avoid 'link' dep, we don't actually link, and that adds rpath + # that conflicts with app. + depends_on("hip@4.5:", type=("build", "run"), when="+rocm") + depends_on("hsa-rocr-dev@4.5:", type=("build", "run"), when="+rocm") + depends_on("roctracer-dev@4.5:", type=("build", "run"), when="+rocm") + depends_on("rocprofiler-dev@4.5:", type=("build", "run"), when="+rocm") conflicts("%gcc@:7", when="@2022.10:", msg="hpctoolkit requires gnu gcc 8.x or later") conflicts("%gcc@:6", when="@2021.00:2022.06", msg="hpctoolkit requires gnu gcc 7.x or later") -- cgit v1.2.3-60-g2f50