Skip to content
GitLab
Explore
Sign in
Register
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
0ac74c5f
Commit
0ac74c5f
authored
16 years ago
by
John Romein
Browse files
Options
Downloads
Patches
Plain Diff
bug 225:
BG/P changes
parent
03277ebb
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
Appl/CEP/CS1/CS1_BGLProc/src/CS1_BGL_Processing_main.cc
+4
-4
4 additions, 4 deletions
Appl/CEP/CS1/CS1_BGLProc/src/CS1_BGL_Processing_main.cc
Appl/CEP/CS1/CS1_BGLProc/src/Makefile.am
+0
-1
0 additions, 1 deletion
Appl/CEP/CS1/CS1_BGLProc/src/Makefile.am
with
4 additions
and
5 deletions
Appl/CEP/CS1/CS1_BGLProc/src/CS1_BGL_Processing_main.cc
+
4
−
4
View file @
0ac74c5f
...
...
@@ -64,13 +64,16 @@ int main(int argc, char **argv)
TH_ZoidClient
th
;
#elif 0
TH_Null
th
;
#elif
0
#elif
1
usleep
(
10000
*
locationInfo
.
rankInPset
());
// do not connect all at the same time
std
::
clog
<<
"creating connection ..."
<<
std
::
endl
;
TH_Socket
th
(
"127.0.0.1"
,
boost
::
lexical_cast
<
string
>
(
5000
+
locationInfo
.
rankInPset
()));
std
::
clog
<<
"waiting for connection ..."
<<
std
::
endl
;
while
(
!
th
.
init
())
sleep
(
1
);
std
::
clog
<<
"connection successful"
<<
std
::
endl
;
#else
TH_File
th
(
string
(
"/tmp/sock."
)
+
boost
::
lexical_cast
<
string
>
(
locationInfo
.
rankInPset
()),
TH_File
::
Read
);
...
...
@@ -82,10 +85,8 @@ int main(int argc, char **argv)
BGL_Command
command
;
do
{
std
::
clog
<<
TH_MPI
::
getCurrentRank
()
<<
" read command"
<<
std
::
endl
;
command
.
read
(
&
th
);
std
::
clog
<<
TH_MPI
::
getCurrentRank
()
<<
" received command "
<<
(
unsigned
)
command
.
value
()
<<
std
::
endl
;
switch
(
command
.
value
())
{
case
BGL_Command
::
PREPROCESS
:
{
BGL_Configuration
configuration
;
...
...
@@ -103,7 +104,6 @@ std::clog << TH_MPI::getCurrentRank() << " received command " << (unsigned) comm
default
:
break
;
}
std
::
clog
<<
TH_MPI
::
getCurrentRank
()
<<
" command handled"
<<
std
::
endl
;
}
while
(
command
.
value
()
!=
BGL_Command
::
STOP
);
#if defined HAVE_MPI
...
...
This diff is collapsed.
Click to expand it.
Appl/CEP/CS1/CS1_BGLProc/src/Makefile.am
+
0
−
1
View file @
0ac74c5f
...
...
@@ -29,7 +29,6 @@ DOCHDRS = $(INSTHDRS) $(NOINSTHDRS)
bin_PROGRAMS
=
CS1_BGL_Processing
CCAS
=
$(
CC
)
CCASFLAGS
=
$(
patsubst
-q
%,,
$(
CPPFLAGS
))
$(
EXTRA_CPPFLAGS
)
CS1_BGL_Processing_SOURCES
=
$(
DOCHDRS
)
\
...
...
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