From 9f89a7e9f7ce279e4b47ec06a9ffb90a453b2f7a Mon Sep 17 00:00:00 2001 From: adityakavalur <33232772+adityakavalur@users.noreply.github.com> Date: Tue, 27 Oct 2020 14:24:09 -0400 Subject: [PATCH] Update package.py (#19513) On Cori(Cray-XC40), I need to pass the entire path for the compilers, this is what is saved in c_compiler, cpp_compiler, f_compiler. Therefore, when for the MPI wrappers only the binary name is provided I run into the same issue. There is no drawback of passing the entire path, this is set by the user through the compiler path anyways. --- var/spack/repos/builtin/packages/conduit/package.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/var/spack/repos/builtin/packages/conduit/package.py b/var/spack/repos/builtin/packages/conduit/package.py index a830def9e3..7b6edf21f9 100644 --- a/var/spack/repos/builtin/packages/conduit/package.py +++ b/var/spack/repos/builtin/packages/conduit/package.py @@ -480,9 +480,9 @@ def create_host_config(self, spec, prefix, py_site_pkgs_dir=None): # etc make return the spack compiler wrappers # which can trip up mpi detection in CMake 3.14 if spec['mpi'].mpicc == spack_cc: - mpicc_path = "cc" - mpicxx_path = "CC" - mpifc_path = "ftn" + mpicc_path = c_compiler + mpicxx_path = cpp_compiler + mpifc_path = f_compiler cfg.write(cmake_cache_entry("ENABLE_MPI", "ON")) cfg.write(cmake_cache_entry("MPI_C_COMPILER", mpicc_path)) cfg.write(cmake_cache_entry("MPI_CXX_COMPILER", mpicxx_path))