Skip to content

Commit

Permalink
Merge pull request #305 from ClusterCockpit/dev
Browse files Browse the repository at this point in the history
Fix Perl Skript to generate subCluster Config
  • Loading branch information
moebiusband73 authored Nov 30, 2024
2 parents d1207ad + 93377f5 commit a42d8ec
Show file tree
Hide file tree
Showing 7 changed files with 233 additions and 138 deletions.
28 changes: 24 additions & 4 deletions configs/generate-subcluster.pl
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,12 @@

my $node;
my @sockets;
my @nodeCores;
foreach my $socket ( @{$DOMAINS{socket}} ) {
push @sockets, "[".join(",", @{$socket})."]";
$node .= join(",", @{$socket})
push @nodeCores, join(",", @{$socket});
}
$node = join(",", @nodeCores);
$INFO{sockets} = join(",\n", @sockets);

my @memDomains;
Expand Down Expand Up @@ -212,9 +214,27 @@ END
"socketsPerNode": $INFO{socketsPerNode},
"coresPerSocket": $INFO{coresPerSocket},
"threadsPerCore": $INFO{threadsPerCore},
"flopRateScalar": $flopsScalar,
"flopRateSimd": $flopsSimd,
"memoryBandwidth": $memBw,
"flopRateScalar": {
"unit": {
"base": "F/s",
"prefix": "G"
},
"value": $flopsScalar
},
"flopRateSimd": {
"unit": {
"base": "F/s",
"prefix": "G"
},
"value": $flopsSimd
},
"memoryBandwidth": {
"unit": {
"base": "B/s",
"prefix": "G"
},
"value": $memBw
},
"nodes": "<FILL IN NODE RANGES>",
"topology": {
"node": [$node],
Expand Down
Loading

0 comments on commit a42d8ec

Please sign in to comment.