Skip to content
Snippets Groups Projects
Commit 65a0ded2 authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #10118: Do not zero all CorrelatedData objects as there is no time, and...

Task #10118: Do not zero all CorrelatedData objects as there is no time, and they will be initialised with zeroes by both GPUProc and OutputProc upon first use
parent c6c19df0
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,8 @@ namespace LOFAR ...@@ -75,7 +75,8 @@ namespace LOFAR
[NR_POLARIZATIONS], [NR_POLARIZATIONS],
itsAlignment, itsAlignment,
allocator, allocator,
true), true,
false),
itsNrBytesPerNrValidSamples(nrBytesPerNrValidSamples(maxNrValidSamples)) itsNrBytesPerNrValidSamples(nrBytesPerNrValidSamples(maxNrValidSamples))
{ {
init(nrChannels, allocator); init(nrChannels, allocator);
...@@ -130,26 +131,19 @@ namespace LOFAR ...@@ -130,26 +131,19 @@ namespace LOFAR
case 4: case 4:
itsNrValidSamples4.resize( itsNrValidSamples4.resize(
boost::extents[itsNrBaselines][nrChannels], boost::extents[itsNrBaselines][nrChannels],
itsAlignment, allocator, true); itsAlignment, allocator, true, false);
break; break;
case 2: case 2:
itsNrValidSamples2.resize( itsNrValidSamples2.resize(
boost::extents[itsNrBaselines][nrChannels], boost::extents[itsNrBaselines][nrChannels],
itsAlignment, allocator, true); itsAlignment, allocator, true, false);
break; break;
case 1: case 1:
itsNrValidSamples1.resize( itsNrValidSamples1.resize(
boost::extents[itsNrBaselines][nrChannels], boost::extents[itsNrBaselines][nrChannels],
itsAlignment, allocator, true); itsAlignment, allocator, true, false);
break; break;
} }
// zero weights
for (size_t bl = 0; bl < itsNrBaselines; ++bl) {
for (size_t ch = 0; ch < nrChannels; ++ch) {
setNrValidSamples(bl, ch, 0);
}
}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment