From bb1cd430c0d6f8bebfb655c65244a25bcc325d8d Mon Sep 17 00:00:00 2001 From: Chris White Date: Wed, 9 Nov 2022 13:22:43 -0800 Subject: always use the cxx compiler as a host compiler (#33771) --- lib/spack/spack/build_systems/cached_cmake.py | 8 +------- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3-70-g09d2