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
aa726542
Commit
aa726542
authored
18 years ago
by
zwart
Browse files
Options
Downloads
Patches
Plain Diff
BugID: 692
Several changes
parent
3978fddd
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
Appl/CEP/CS1/CS1_InputSection/src/AH_InputSection.cc
+56
-12
56 additions, 12 deletions
Appl/CEP/CS1/CS1_InputSection/src/AH_InputSection.cc
with
56 additions
and
12 deletions
Appl/CEP/CS1/CS1_InputSection/src/AH_InputSection.cc
+
56
−
12
View file @
aa726542
...
...
@@ -26,6 +26,7 @@
//# Includes
#include
<Common/LofarLogger.h>
#include
<CS1_InputSection/AH_InputSection.h>
#include
<CS1_Interface/RSPTimeStamp.h>
//# Workholders
#include
<CS1_InputSection/WH_RSPInput.h>
...
...
@@ -33,6 +34,7 @@
#include
<Transport/TransportHolder.h>
#include
<Transport/TH_MPI.h>
#include
<Transport/TH_Socket.h>
#define IS_MULTIPLE(number, bignumber) (floor(bignumber / number) == (1.0 * bignumber / number))
...
...
@@ -70,6 +72,8 @@ namespace LOFAR {
int
lowestFreeNode
=
0
;
#endif
TimeStamp
::
setMaxBlockId
(
itsParamSet
.
getDouble
(
"Observation.SampleRate"
));
int
psetsPerCell
=
itsParamSet
.
getInt32
(
"BGLProc.PsetsPerCell"
);
int
nCells
=
itsParamSet
.
getInt32
(
"Observation.NSubbands"
)
/
(
itsParamSet
.
getInt32
(
"General.SubbandsPerPset"
)
*
psetsPerCell
);
// number of SubBand filters in the application
int
nNodesPerCell
=
itsParamSet
.
getInt32
(
"BGLProc.NodesPerPset"
)
*
psetsPerCell
;
...
...
@@ -112,7 +116,7 @@ namespace LOFAR {
comp
.
addBlock
(
RSPSteps
.
back
());
// Connect the Delay Controller
itsInputStub
->
connect
(
ic
*
nStations
+
station
,
(
RSPSteps
.
back
())
->
getInDataManager
(
0
),
0
);
//
itsInputStub->connect(ic * nStations + station, (RSPSteps.back())->getInDataManager(0), 0);
}
LOG_TRACE_FLOW_STR
(
"Create the Subband merger workholders"
);
...
...
@@ -129,23 +133,64 @@ namespace LOFAR {
comp
.
addBlock
(
collectSteps
.
back
());
// Connect splitters to mergers (transpose)
#ifndef HAVE_MPI
for
(
int
station
=
0
;
station
<
nStations
;
station
++
)
{
itsConnector
.
connectSteps
(
RSPSteps
[
station
],
cell
,
collectSteps
.
back
(),
station
);
}
#else
#if MPICH_WORKING_ON_INFINI_BAND
for
(
int
station
=
0
;
station
<
nStations
;
station
++
)
{
itsConnector
.
connectSteps
(
RSPSteps
[
station
],
cell
,
collectSteps
.
back
(),
station
);
}
#else
vector
<
string
>
transposeHosts
=
itsParamSet
.
getStringVector
(
"TransposeHosts"
);
vector
<
string
>
transposePorts
=
itsParamSet
.
getStringVector
(
"TransposePorts"
);
for
(
int
station
=
0
;
station
<
nStations
;
station
++
)
{
// We need to find out if we are on the client or the server
// because TH_Socket doesn't find it out itself.
if
(
collectSteps
.
back
()
->
getNode
()
==
TH_MPI
::
getCurrentRank
())
{
// create server socket
collectSteps
.
back
()
->
connect
(
station
,
RSPSteps
[
station
],
cell
,
1
,
new
TH_Socket
(
transposePorts
[
station
],
true
,
Socket
::
TCP
,
5
,
false
),
false
);
}
else
{
// create client socket
collectSteps
.
back
()
->
connect
(
station
,
RSPSteps
[
station
],
cell
,
1
,
new
TH_Socket
(
transposeHosts
[
cell
],
transposePorts
[
station
],
true
,
Socket
::
TCP
,
false
),
false
);
}
}
#endif
#endif
// connect outputs to Subband stub
vector
<
int
>
channels
;
for
(
int
core
=
0
;
core
<
nNodesPerCell
;
core
++
)
{
collectSteps
.
back
()
->
getOutDataManager
(
0
).
setOutBuffer
(
core
,
false
,
10
);
#if 1
itsOutputStub
->
connect
(
cell
+
ic
*
nCells
/
inputCells
,
core
,
(
collectSteps
.
back
())
->
getOutDataManager
(
0
),
core
);
#endif
channels
.
push_back
(
core
);
bool
makeConnections
=
itsParamSet
.
getBool
(
"Connect"
);
if
(
makeConnections
)
{
for
(
int
core
=
0
;
core
<
nNodesPerCell
;
core
++
)
{
collectSteps
.
back
()
->
getOutDataManager
(
0
).
setOutBuffer
(
core
,
false
,
3
);
itsOutputStub
->
connect
(
cell
+
ic
*
nCells
/
inputCells
,
core
,
(
collectSteps
.
back
())
->
getOutDataManager
(
0
),
core
);
channels
.
push_back
(
core
);
}
collectSteps
.
back
()
->
getOutDataManager
(
0
).
setOutRoundRobinPolicy
(
channels
,
itsParamSet
.
getInt32
(
"BGLProc.MaxConcurrentCommunications"
));
}
collectSteps
.
back
()
->
getOutDataManager
(
0
).
setOutRoundRobinPolicy
(
channels
,
itsParamSet
.
getInt32
(
"BGLProc.MaxConcurrentCommunications"
));
}
}
LOG_TRACE_FLOW_STR
(
"Finished define()"
);
...
...
@@ -163,7 +208,6 @@ namespace LOFAR {
LOG_TRACE_FLOW_STR
(
"Start AH_InputSection::run() "
);
for
(
int
i
=
0
;
i
<
steps
;
i
++
)
{
LOG_TRACE_LOOP_STR
(
"processing run "
<<
i
);
cout
<<
"run "
<<
i
+
1
<<
" of "
<<
steps
<<
endl
;
getComposite
().
process
();
}
LOG_TRACE_FLOW_STR
(
"Finished AH_InputSection::run() "
);
...
...
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