Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK-m
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
VTK
VTK-m
Commits
ca86402f
Commit
ca86402f
authored
4 years ago
by
Oliver Ruebel
Browse files
Options
Downloads
Patches
Plain Diff
Provide additional debug info in case contour tree hangs
parent
48d91b99
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!2615
Draft: DONTMERGE ME: TEST FOR 1.7.0-rc1 is our 9th official release of VTK-m.
,
!2420
Add/ct iter check
Checking pipeline status
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vtkm/worklet/contourtree_distributed/ComputeDistributedContourTreeFunctor.h
+40
-13
40 additions, 13 deletions
...urtree_distributed/ComputeDistributedContourTreeFunctor.h
with
40 additions
and
13 deletions
vtkm/worklet/contourtree_distributed/ComputeDistributedContourTreeFunctor.h
+
40
−
13
View file @
ca86402f
...
...
@@ -95,12 +95,14 @@ public:
{
}
/// Operator used by DIY to compute a step in the fan in
/// @param[in] block The local data block to be processed in this step. Instance of DistributedContourTreeBlockData.
/// @param[in] rp DIY communication proxy
/// @param[in] unused partners of the current block (unused)
void
operator
()(
vtkm
::
worklet
::
contourtree_distributed
::
DistributedContourTreeBlockData
<
FieldType
>*
block
,
// local Block.
const
vtkmdiy
::
ReduceProxy
&
rp
,
// communication proxy
const
vtkmdiy
::
RegularSwapPartners
&
// partners of the current block (unused)
)
const
vtkm
::
worklet
::
contourtree_distributed
::
DistributedContourTreeBlockData
<
FieldType
>*
block
,
const
vtkmdiy
::
ReduceProxy
&
rp
,
const
vtkmdiy
::
RegularSwapPartners
&
)
const
{
// Track timing of main steps
vtkm
::
cont
::
Timer
totalTimer
;
// Total time for each call
...
...
@@ -218,14 +220,39 @@ public:
currBlockOrigin
[
2
]
+
currBlockSize
[
2
]
-
1
};
auto
meshBoundaryExecObj
=
block
->
ContourTreeMeshes
.
back
().
GetMeshBoundaryExecutionObject
(
this
->
GlobalSize
,
currBlockOrigin
,
maxIdx
);
worklet
.
Run
(
block
->
ContourTreeMeshes
.
back
()
.
SortedValues
,
// Unused param. Provide something to keep the API happy
block
->
ContourTreeMeshes
.
back
(),
block
->
ContourTrees
.
back
(),
currSortOrder
,
currNumIterations
,
1
,
// Fully augmented
meshBoundaryExecObj
);
try
{
worklet
.
Run
(
block
->
ContourTreeMeshes
.
back
()
.
SortedValues
,
// Unused param. Provide something to keep the API happy
block
->
ContourTreeMeshes
.
back
(),
block
->
ContourTrees
.
back
(),
currSortOrder
,
currNumIterations
,
1
,
// Fully augmented
meshBoundaryExecObj
);
}
// In case the contour tree got stuck, expand the debug information from
// the message to check whether we combined bad blocks
catch
(
const
std
::
domain_error
&
ex
)
{
std
::
stringstream
ex_message
;
ex_message
<<
ex
.
what
();
ex_message
<<
" Self/In DIY Id=("
<<
selfid
<<
", "
<<
ingid
<<
")"
;
ex_message
<<
" Rank="
<<
rank
<<
" Round="
<<
rp
.
round
();
ex_message
<<
" Origin Self=("
<<
block
->
BlockOrigin
[
0
]
<<
", "
<<
block
->
BlockOrigin
[
1
]
<<
", "
<<
block
->
BlockOrigin
[
2
]
<<
")"
;
ex_message
<<
" Origin In=("
<<
otherBlockOrigin
[
0
]
<<
", "
<<
otherBlockOrigin
[
1
]
<<
", "
<<
otherBlockOrigin
[
2
]
<<
")"
;
ex_message
<<
" Origin Comb=("
<<
currBlockOrigin
[
0
]
<<
", "
<<
currBlockOrigin
[
1
]
<<
", "
<<
currBlockOrigin
[
2
]
<<
")"
;
ex_message
<<
" Size Self=("
<<
block
->
BlockSize
[
0
]
<<
", "
<<
block
->
BlockSize
[
1
]
<<
", "
<<
block
->
BlockSize
[
2
]
<<
")"
;
ex_message
<<
" Size In=("
<<
otherBlockSize
[
0
]
<<
", "
<<
otherBlockSize
[
1
]
<<
", "
<<
otherBlockSize
[
2
]
<<
")"
;
ex_message
<<
" Size Comb=("
<<
currBlockSize
[
0
]
<<
", "
<<
currBlockSize
[
1
]
<<
", "
<<
currBlockSize
[
2
]
<<
")"
;
std
::
throw_with_nested
(
std
::
domain_error
(
ex_message
.
str
()));
}
// Update block extents
block
->
BlockOrigin
=
currBlockOrigin
;
...
...
This diff is collapsed.
Click to expand it.
Gunther Weber
@ghweber
mentioned in commit
fa0ce37b
·
3 years ago
mentioned in commit
fa0ce37b
mentioned in commit fa0ce37b96a71e9592d465603aad6b851b76ee18
Toggle commit list
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