Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qpme-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Descartes Research
qpme-core
Commits
bc9cd230
Commit
bc9cd230
authored
10 years ago
by
Jürgen Walter
Browse files
Options
Downloads
Patches
Plain Diff
Merging question hasAdequateSize is now based on number of queues
parent
416387d7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sources/qpme.simqpn.kernel/src/de/tud/cs/simqpn/kernel/executor/parallel/decomposition/LPMerger.java
+27
-7
27 additions, 7 deletions
...mqpn/kernel/executor/parallel/decomposition/LPMerger.java
with
27 additions
and
7 deletions
sources/qpme.simqpn.kernel/src/de/tud/cs/simqpn/kernel/executor/parallel/decomposition/LPMerger.java
+
27
−
7
View file @
bc9cd230
...
...
@@ -80,17 +80,37 @@ public class LPMerger {
for
(
int
j
=
0
;
lps
.
size
()
>
cores
&&
j
<
50
;
j
++)
{
reachable
.
addAll
(
current
.
getSuccessors
());
while
(!
reachable
.
isEmpty
())
{
LP
suc
=
reachable
.
remove
(
0
);
if
(
current
.
getPlaces
().
length
<
net
.
getNumPlaces
()
/
cores
||
lps
.
size
()
<=
cores
+
1
)
{
current
=
LPSetModifier
.
merge
(
lps
,
current
,
suc
,
LP
suc
cessor
=
reachable
.
remove
(
0
);
if
(
successor
.
getQueues
().
length
==
0
||
lps
.
size
()
<=
cores
+
1
){
log
.
info
(
"Merged LP ["
+
successor
.
getPlacesString
()+
"] which has no queue into predecessor"
);
current
=
LPSetModifier
.
merge
(
lps
,
current
,
suc
cessor
,
verbosityLevel
);
// break;
}
else
{
current
=
suc
;
}
else
{
if
(!
hasAdequateSize
(
current
))
{
current
=
LPSetModifier
.
merge
(
lps
,
current
,
successor
,
verbosityLevel
);
// break;
}
else
{
current
=
successor
;
log
.
info
(
"-----------------------------"
);
log
.
info
(
"Started new LP "
+
current
.
getPlacesString
());
}
}
}
}
while
(!
reachable
.
isEmpty
())
{
LP
suc
=
reachable
.
remove
(
0
);
current
=
LPSetModifier
.
merge
(
lps
,
current
,
suc
,
verbosityLevel
);
if
(
reachable
.
isEmpty
()){
reachable
.
addAll
(
current
.
getSuccessors
());
}
}
}
public
boolean
hasAdequateSize
(
LP
current
)
{
return
current
.
getQueues
().
length
>=
net
.
getQueues
().
length
/
cores
;
//return current.getPlaces().length < net.getNumPlaces() / cores; //trivial places
}
public
void
mergeWorkloadGenerators
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment