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
cc8e2943
Commit
cc8e2943
authored
13 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Task #2680: Fixed for MPI platforms
parent
a3d5c4c4
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
RTCP/CNProc/test/tCN_Processing_alloc.cc
+16
-1
16 additions, 1 deletion
RTCP/CNProc/test/tCN_Processing_alloc.cc
with
16 additions
and
1 deletion
RTCP/CNProc/test/tCN_Processing_alloc.cc
+
16
−
1
View file @
cc8e2943
...
@@ -28,6 +28,11 @@
...
@@ -28,6 +28,11 @@
#include
<Stream/NullStream.h>
#include
<Stream/NullStream.h>
#include
<cstdlib>
#include
<cstdlib>
#if defined HAVE_MPI
#define MPICH_IGNORE_CXX_SEEK
#include
<mpi.h>
#endif
using
namespace
LOFAR
;
using
namespace
LOFAR
;
using
namespace
LOFAR
::
RTCP
;
using
namespace
LOFAR
::
RTCP
;
...
@@ -39,7 +44,13 @@ Stream *createIONstream(unsigned channel, const LocationInfo &locationInfo)
...
@@ -39,7 +44,13 @@ Stream *createIONstream(unsigned channel, const LocationInfo &locationInfo)
return
new
NullStream
();
return
new
NullStream
();
}
}
int
main
()
{
int
main
(
int
argc
,
char
**
argv
)
{
#if defined HAVE_MPI
MPI_Init
(
&
argc
,
&
argv
);
#else
argc
=
argc
;
argv
=
argv
;
// Keep compiler happy ;-)
#endif
setenv
(
"NR_PSETS"
,
"64"
,
1
);
setenv
(
"NR_PSETS"
,
"64"
,
1
);
setenv
(
"PSET_SIZE"
,
"64"
,
1
);
setenv
(
"PSET_SIZE"
,
"64"
,
1
);
...
@@ -66,6 +77,10 @@ int main() {
...
@@ -66,6 +77,10 @@ int main() {
// postprocess
// postprocess
delete
proc
;
delete
proc
;
#if defined HAVE_MPI
MPI_Finalize
();
#endif
return
0
;
return
0
;
}
}
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