Open balay opened 8 months ago
setting mpicc etc [similar to trilinos] gets this build going
diff --git a/var/spack/repos/builtin/packages/datatransferkit/package.py b/var/spack/repos/builtin/packages/datatransferkit/package.py
index 7f29a80ddf..137aa3f440 100644
--- a/var/spack/repos/builtin/packages/datatransferkit/package.py
+++ b/var/spack/repos/builtin/packages/datatransferkit/package.py
@@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+import pathlib
from spack.package import *
@@ -35,6 +36,7 @@ class Datatransferkit(CMakePackage):
variant("serial", default=True, description="enable Serial backend (default)")
variant("shared", default=True, description="enable the build of shared lib")
+ depends_on("mpi")
depends_on("arborx@1.0:", when="+external-arborx")
depends_on("boost")
depends_on("cmake", type="build")
@@ -56,6 +58,10 @@ def cmake_args(self):
"-DDataTransferKit_ENABLE_EXAMPLES=OFF",
"-DCMAKE_CXX_EXTENSIONS=OFF",
"-DCMAKE_CXX_STANDARD=14",
+ "-DCMAKE_C_COMPILER="+spec["mpi"].mpicc,
+ "-DCMAKE_CXX_COMPILER="+spec["mpi"].mpicxx,
+ "-DCMAKE_Fortran_COMPILER="+spec["mpi"].mpifc,
+ "-DMPI_BASE_DIR="+str(pathlib.PurePosixPath(spec["mpi"].prefix)),
]
if "+openmp" in spec:
Is MPI optional or mandatory for DTK?
Is MPI optional or mandatory for DTK?
It's required, also see https://github.com/ORNL-CEES/DataTransferKit/blob/master/cmake/Dependencies.cmake.
I'm my attempt to migrate xsdk CI from UTK - I'm seeing that the build just hangs
Trying mpich instead of openmpi:
Note: this build is supposed to use:
spack-build-out.txt
So its picking up the wrong MPI/compilers from /usr/bin