Respect CMAKE_DISABLE_FIND_PACKAGE_ZOLTAN in REQUIRE_ZOLTAN check#1014
Respect CMAKE_DISABLE_FIND_PACKAGE_ZOLTAN in REQUIRE_ZOLTAN check#1014hakonhagland wants to merge 1 commit intoOPM:masterfrom
Conversation
When a user passes -DCMAKE_DISABLE_FIND_PACKAGE_ZOLTAN=ON to explicitly disable Zoltan, the REQUIRE_ZOLTAN check should not fire. Previously, passing CMAKE_DISABLE_FIND_PACKAGE_ZOLTAN=ON would prevent find_package(ZOLTAN) from finding Zoltan, but the REQUIRE_ZOLTAN check would still fail because ZOLTAN_FOUND is false and REQUIRE_ZOLTAN defaults to ON.
|
jenkins build this please |
|
Are you then using METIS or no load balancer at all? We never envisioned using a parallel cpgrid without any loadbalancer. It is not really a production use case and I would try to not add any maintenance effort for doing this. |
@blattms I tested this with the simple partitioner (
Someone following the same path (trying MPICH, disabling Zoltan temporarily) would hit these same failures. The fix smooths that path and having the simple partitioner work correctly may be useful for comparison and debugging purposes, even if it's not production quality. |
Related: #1013 and OPM/opm-simulators#6956.
REQUIRE_ZOLTANerror whenCMAKE_DISABLE_FIND_PACKAGE_ZOLTANis set, since the user has explicitly opted out of Zoltan — the configuration should not fail for a deliberately disabled packageMotivation
When building with an MPI implementation that doesn't have a matching Zoltan package (e.g. MPICH instead of OpenMPI), users need to disable Zoltan via
-DCMAKE_DISABLE_FIND_PACKAGE_ZOLTAN=ON. Currently this still fails becauseREQUIRE_ZOLTANdefaults toONand fires aSEND_ERRORwhenZOLTAN_FOUNDis false, requiring the additional flag-DREQUIRE_ZOLTAN=OFFas a workaround. After this change,-DCMAKE_DISABLE_FIND_PACKAGE_ZOLTAN=ONalone is sufficient.