Fix kokkos package.py to filter spack wrappers in launch compiler and cmake configs (#35494)
Kokkos when compiled by spack without +wrapper could potentially capture the spack compiler wrappers, resulting in cmake configs and kokkos_launch_compiler trying to run the spack compiler wrapper after installation.
This commit is contained in:
parent
c769582709
commit
9d9ea07424
1 changed files with 7 additions and 0 deletions
|
@ -226,6 +226,13 @@ class Kokkos(CMakePackage, CudaPackage, ROCmPackage):
|
|||
|
||||
variant("shared", default=True, description="Build shared libraries")
|
||||
|
||||
# Filter spack-generated files that may include links to the
|
||||
# spack compiler wrappers
|
||||
filter_compiler_wrappers("kokkos_launch_compiler", relative_root="bin")
|
||||
filter_compiler_wrappers(
|
||||
"KokkosConfigCommon.cmake", relative_root=os.path.join("lib64", "cmake", "Kokkos")
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def get_microarch(cls, target):
|
||||
"""Get the Kokkos microarch name for a Spack target (spec.target)."""
|
||||
|
|
Loading…
Reference in a new issue