diff options
author | Patrick Bridges <patrickb@unm.edu> | 2023-02-20 02:23:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 01:23:37 -0800 |
commit | 9d9ea0742479f8da176dbeb58ef380e721b67669 (patch) | |
tree | 93660565d8abeeed1eb81e663ff5b3222020814a /var | |
parent | c769582709ebcf845118ffe76b9f5b3aeb6eb5a5 (diff) | |
download | spack-9d9ea0742479f8da176dbeb58ef380e721b67669.tar.gz spack-9d9ea0742479f8da176dbeb58ef380e721b67669.tar.bz2 spack-9d9ea0742479f8da176dbeb58ef380e721b67669.tar.xz spack-9d9ea0742479f8da176dbeb58ef380e721b67669.zip |
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.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/kokkos/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/kokkos/package.py b/var/spack/repos/builtin/packages/kokkos/package.py index f6f44304ff..b44dddb082 100644 --- a/var/spack/repos/builtin/packages/kokkos/package.py +++ b/var/spack/repos/builtin/packages/kokkos/package.py @@ -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).""" |