diff options
author | Chris White <white238@llnl.gov> | 2022-11-09 13:22:43 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-09 13:22:43 -0800 |
commit | bb1cd430c0d6f8bebfb655c65244a25bcc325d8d (patch) | |
tree | d0c0fa84316d6561d88769aa535c5b6fb8ebf222 | |
parent | 36877abd02f673d0a2bc6f395c509f374c711e96 (diff) | |
download | spack-bb1cd430c0d6f8bebfb655c65244a25bcc325d8d.tar.gz spack-bb1cd430c0d6f8bebfb655c65244a25bcc325d8d.tar.bz2 spack-bb1cd430c0d6f8bebfb655c65244a25bcc325d8d.tar.xz spack-bb1cd430c0d6f8bebfb655c65244a25bcc325d8d.zip |
always use the cxx compiler as a host compiler (#33771)
-rw-r--r-- | lib/spack/spack/build_systems/cached_cmake.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/spack/spack/build_systems/cached_cmake.py b/lib/spack/spack/build_systems/cached_cmake.py index 84f402299a..787def703e 100644 --- a/lib/spack/spack/build_systems/cached_cmake.py +++ b/lib/spack/spack/build_systems/cached_cmake.py @@ -205,13 +205,7 @@ class CachedCMakeBuilder(CMakeBuilder): entries.append(cmake_cache_path("CUDA_TOOLKIT_ROOT_DIR", cudatoolkitdir)) cudacompiler = "${CUDA_TOOLKIT_ROOT_DIR}/bin/nvcc" entries.append(cmake_cache_path("CMAKE_CUDA_COMPILER", cudacompiler)) - - if spec.satisfies("^mpi"): - entries.append(cmake_cache_path("CMAKE_CUDA_HOST_COMPILER", "${MPI_CXX_COMPILER}")) - else: - entries.append( - cmake_cache_path("CMAKE_CUDA_HOST_COMPILER", "${CMAKE_CXX_COMPILER}") - ) + entries.append(cmake_cache_path("CMAKE_CUDA_HOST_COMPILER", "${CMAKE_CXX_COMPILER}")) return entries |