File tree Expand file tree Collapse file tree
var/spack/repos/builtin/packages/umpire Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33#
44# SPDX-License-Identifier: (Apache-2.0 OR MIT)
55
6+ import glob
67import os
78import socket
89
910import llnl .util .tty as tty
1011
1112from spack .package import *
12- from spack .pkg .builtin .camp import hip_repair_options
1313
1414
1515class 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 )
You can’t perform that action at this time.
0 commit comments