From 783be9b3502d76ab4953cd6c637ab62c2ab1d87b Mon Sep 17 00:00:00 2001 From: Howard Pritchard Date: Mon, 29 May 2023 02:56:03 -0600 Subject: dealii - add platform-introspection variant (#37833) This option is needed for DFT FE - or more accurately the check needs to be checked off for a number of platforms or else the code doesn't work. Signed-off-by: Howard Pritchard --- var/spack/repos/builtin/packages/dealii/package.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/var/spack/repos/builtin/packages/dealii/package.py b/var/spack/repos/builtin/packages/dealii/package.py index 89902f0646..93723cd29f 100644 --- a/var/spack/repos/builtin/packages/dealii/package.py +++ b/var/spack/repos/builtin/packages/dealii/package.py @@ -105,6 +105,7 @@ class Dealii(CMakePackage, CudaPackage): # (NB: only if tbb is removed in 9.3, as planned!!!) variant("threads", default=True, description="Compile with multi-threading via TBB") variant("trilinos", default=True, description="Compile with Trilinos (only with MPI)") + variant("platform-introspection", default=True, description="Enable platform introspection") # Required dependencies: Light version depends_on("blas") @@ -635,6 +636,12 @@ class Dealii(CMakePackage, CudaPackage): # See https://github.com/dealii/dealii/issues/9164 options.append(self.define("DEAL_II_CXX_FLAGS", os.environ["SPACK_TARGET_ARGS"])) + # platform introspection - needs to be disabled in some environments + if "+platform-introspection" in spec: + options.append(self.define("DEAL_II_ALLOW_PLATFORM_INTROSPECTION", True)) + else: + options.append(self.define("DEAL_II_ALLOW_PLATFORM_INTROSPECTION", False)) + return options def setup_run_environment(self, env): -- cgit v1.2.3-70-g09d2