Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
e5cfb472
Commit
e5cfb472
authored
13 years ago
by
Ger van Diepen
Browse files
Options
Downloads
Patches
Plain Diff
bug 1684:
Fix bug if timing = 0
parent
bdc3189c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CEP/Imager/LofarFT/src/LofarConvolutionFunction.cc
+0
-1
0 additions, 1 deletion
CEP/Imager/LofarFT/src/LofarConvolutionFunction.cc
CEP/Imager/LofarFT/src/LofarFTMachine.cc
+5
-3
5 additions, 3 deletions
CEP/Imager/LofarFT/src/LofarFTMachine.cc
with
5 additions
and
4 deletions
CEP/Imager/LofarFT/src/LofarConvolutionFunction.cc
+
0
−
1
View file @
e5cfb472
...
@@ -918,7 +918,6 @@ namespace LOFAR
...
@@ -918,7 +918,6 @@ namespace LOFAR
double
duration
,
double
duration
,
double
timeCF
)
const
double
timeCF
)
const
{
{
os
<<
duration
<<
' '
<<
itsTimeW
<<
' '
<<
itsTimeA
<<
' '
<<
timeCF
<<
endl
;
os
<<
" Wterm calculation "
;
os
<<
" Wterm calculation "
;
showPerc1
(
os
,
itsTimeW
,
duration
);
showPerc1
(
os
,
itsTimeW
,
duration
);
os
<<
" fft-part "
;
os
<<
" fft-part "
;
...
...
This diff is collapsed.
Click to expand it.
CEP/Imager/LofarFT/src/LofarFTMachine.cc
+
5
−
3
View file @
e5cfb472
...
@@ -2019,9 +2019,11 @@ void LofarFTMachine::ComputeResiduals(VisBuffer&vb, Bool useCorrected)
...
@@ -2019,9 +2019,11 @@ void LofarFTMachine::ComputeResiduals(VisBuffer&vb, Bool useCorrected)
// The total time is the real elapsed time.
// The total time is the real elapsed time.
// The cf and (de)gridding time is the sum of all threads, so scale
// The cf and (de)gridding time is the sum of all threads, so scale
// them back to real time.
// them back to real time.
double
scale
=
itsTotalTimer
.
getReal
()
/
double
total
=
itsCFTime
+
itsGriddingTime
+
itsDegriddingTime
;
(
itsCFTime
+
itsGriddingTime
+
itsDegriddingTime
);
double
scale
=
1
;
cout
<<
itsTotalTimer
.
getReal
()
<<
' '
<<
itsCFTime
<<
' '
<<
scale
<<
endl
;
if
(
total
>
0
)
{
scale
=
itsTotalTimer
.
getReal
()
/
total
;
}
itsConvFunc
->
showTimings
(
os
,
duration
,
itsCFTime
*
scale
);
itsConvFunc
->
showTimings
(
os
,
duration
,
itsCFTime
*
scale
);
if
(
itsGriddingTime
>
0
)
{
if
(
itsGriddingTime
>
0
)
{
os
<<
" gridding "
;
os
<<
" gridding "
;
...
...
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