Skip to content

Conversation

@bska
Copy link
Member

@bska bska commented Feb 25, 2025

This commit introduces a new hidden runtime parameter,

ZoltanPhgEdgeSizeThreshold (--zoltan-phg-edge-size-threshold, double, default value = 0.35)

which maps to Zoltan's low-level control parameter

PHG_EDGE_SIZE_THRESHOLD

that controls which hypergraph edges to omit/discard. We add a new parameter to setupZoltanParameters() and thread the command line parameter through as an argument to this function.

This is to enable runtime experimentation with this aspect of the partitioning algorithm, but end-users should typically not alter the default value without good reason.

@bska
Copy link
Member Author

bska commented Feb 25, 2025

As a secondary benefit, this PR will obviate the PHG_EDGE_SIZE_THRESHOLD part of OPM/opm-grid#813.

@bska
Copy link
Member Author

bska commented Feb 25, 2025

jenkins build this please

@bska bska force-pushed the expose-zoltan-phg-edge-size-param branch from 48457fe to 93ead52 Compare February 26, 2025 11:08
@bska
Copy link
Member Author

bska commented Feb 26, 2025

jenkins build this please

@bska bska force-pushed the expose-zoltan-phg-edge-size-param branch 2 times, most recently from 9908c4c to 8915efc Compare February 26, 2025 17:23
@bska
Copy link
Member Author

bska commented Feb 26, 2025

jenkins build this please

@bska bska force-pushed the expose-zoltan-phg-edge-size-param branch from 8915efc to a34d2ef Compare February 27, 2025 13:01
@bska
Copy link
Member Author

bska commented Feb 27, 2025

jenkins build this please

@bska bska force-pushed the expose-zoltan-phg-edge-size-param branch from a34d2ef to fd151f0 Compare March 3, 2025 16:35
@bska
Copy link
Member Author

bska commented Mar 3, 2025

jenkins build this please

@bska bska force-pushed the expose-zoltan-phg-edge-size-param branch from fd151f0 to c9911fa Compare March 4, 2025 18:03
@bska
Copy link
Member Author

bska commented Mar 4, 2025

jenkins build this please

@bska bska force-pushed the expose-zoltan-phg-edge-size-param branch 8 times, most recently from b786fd3 to b5f2b52 Compare March 6, 2025 16:37
@bska
Copy link
Member Author

bska commented Mar 6, 2025

jenkins build this please

@bska bska force-pushed the expose-zoltan-phg-edge-size-param branch from b5f2b52 to 6464449 Compare March 7, 2025 08:11
@bska
Copy link
Member Author

bska commented Mar 7, 2025

jenkins build this please

@bska bska force-pushed the expose-zoltan-phg-edge-size-param branch 2 times, most recently from 14ae400 to 1f034f7 Compare March 7, 2025 13:11
@bska
Copy link
Member Author

bska commented Mar 7, 2025

jenkins build this please

@bska bska force-pushed the expose-zoltan-phg-edge-size-param branch from 1f034f7 to 3258ef9 Compare March 7, 2025 15:04
@bska
Copy link
Member Author

bska commented Mar 7, 2025

jenkins build this please

@bska bska force-pushed the expose-zoltan-phg-edge-size-param branch from 3258ef9 to c847570 Compare March 10, 2025 16:20
Slight rewording and splitting long lines for the most part.
@bska bska force-pushed the expose-zoltan-phg-edge-size-param branch from c847570 to 8675685 Compare March 11, 2025 08:33
@bska
Copy link
Member Author

bska commented Mar 11, 2025

jenkins build this please

this->zoltanPhgEdgeSizeThreshold()));
}

if ((partitionMethod == Dune::PartitionMethod::metis) &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be else if

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be else if

Good point. I've pushed an update to that effect.

This commit introduces a new hidden runtime parameter,

    ZoltanPhgEdgeSizeThreshold (--zoltan-phg-edge-size-threshold,
    double, default value = 0.35)

which maps to Zoltan's low-level control parameter

    PHG_EDGE_SIZE_THRESHOLD

that controls which hypergraph edges to omit/discard.  We add a new
parameter to 'setupZoltanParameters()' and thread the command line
parameter through as an argument to this function.

This is to enable runtime experimentation with this aspect of the
partitioning algorithm, but end-users should typically not alter the
default value without good reason.
@bska bska force-pushed the expose-zoltan-phg-edge-size-param branch from 8675685 to fed4a3b Compare March 11, 2025 08:56
@bska
Copy link
Member Author

bska commented Mar 11, 2025

jenkins build this please

@bska
Copy link
Member Author

bska commented Mar 11, 2025

PR approved and build check is green. I'll merge into master.

@bska bska merged commit e5fce07 into OPM:master Mar 11, 2025
1 check passed
@bska bska deleted the expose-zoltan-phg-edge-size-param branch March 11, 2025 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants