Skip to content

Commit 1aaf096

Browse files
committed
umpire package: camp.hip_repair_options not safe for CachedCMakePackage
1 parent 2348033 commit 1aaf096

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

var/spack/repos/builtin/packages/umpire/package.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
#
44
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
55

6+
import glob
67
import os
78
import socket
89

910
import llnl.util.tty as tty
1011

1112
from spack.package import *
12-
from spack.pkg.builtin.camp import hip_repair_options
1313

1414

1515
class Umpire(CachedCMakePackage, CudaPackage, ROCmPackage):
@@ -188,7 +188,8 @@ def initconfig_hardware_entries(self):
188188
if "+rocm" in spec:
189189
entries.append(cmake_cache_option("ENABLE_HIP", True))
190190
entries.append(cmake_cache_path("HIP_ROOT_DIR", "{0}".format(spec["hip"].prefix)))
191-
hip_repair_options(entries, spec)
191+
hip_inc = glob.glob("{}/lib/clang/*/include".format(spec["llvm-amdgpu"].prefix))[0]
192+
entries.append(cmake_cache_path("HIP_CLANG_INCLUDE_PATH", hip_inc))
192193
archs = self.spec.variants["amdgpu_target"].value
193194
if archs != "none":
194195
arch_str = ",".join(archs)

0 commit comments

Comments
 (0)