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
d3d5d22c
Commit
d3d5d22c
authored
4 years ago
by
Sarod Yatawatta
Browse files
Options
Downloads
Patches
Plain Diff
COB-153
: use pol instead of ri
parent
ae3523e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!249
COB 153 - Doppler correction in correlator pipeline
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
RTCP/Cobalt/GPUProc/share/gpu/kernels/FIR_Filter.cu
+4
-3
4 additions, 3 deletions
RTCP/Cobalt/GPUProc/share/gpu/kernels/FIR_Filter.cu
with
4 additions
and
3 deletions
RTCP/Cobalt/GPUProc/share/gpu/kernels/FIR_Filter.cu
+
4
−
3
View file @
d3d5d22c
...
@@ -117,7 +117,7 @@ inline __device__ float sincos_f2f_select(float phi, int pol)
...
@@ -117,7 +117,7 @@ inline __device__ float sincos_f2f_select(float phi, int pol)
typedef
const
double
(
*
DelaysType
)[
1
][
NR_STABS
][
NR_POLARIZATIONS
];
// 2 Polarizations; in seconds
typedef
const
double
(
*
DelaysType
)[
1
][
NR_STABS
][
NR_POLARIZATIONS
];
// 2 Polarizations; in seconds
typedef
const
double
(
*
Phase0sType
)[
NR_STABS
][
NR_POLARIZATIONS
];
// 2 Polarizations; in radians
typedef
const
double
(
*
Phase0sType
)[
NR_STABS
][
NR_POLARIZATIONS
];
// 2 Polarizations; in radians
inline
__device__
float
correction_factor
(
double
phiGradient
,
int
ri
,
unsigned
channel
)
inline
__device__
float
correction_factor
(
double
phiGradient
,
int
pol
,
unsigned
channel
)
{
{
// Offset of this sample between begin and end. = t/T fraction, within one FFT block of NR_CHANNELS
// Offset of this sample between begin and end. = t/T fraction, within one FFT block of NR_CHANNELS
const
double
blockOffset
=
double
(
channel
)
/
NR_CHANNELS
;
const
double
blockOffset
=
double
(
channel
)
/
NR_CHANNELS
;
...
@@ -128,9 +128,10 @@ inline __device__ float correction_factor(double phiGradient, int ri, unsigned c
...
@@ -128,9 +128,10 @@ inline __device__ float correction_factor(double phiGradient, int ri, unsigned c
// We can afford to if we keep this kernel memory bound.
// We can afford to if we keep this kernel memory bound.
const
float
phi
=
phiGradient
*
blockOffset
;
const
float
phi
=
phiGradient
*
blockOffset
;
// Note: both X and Y polarizations will have same correction
// Note: both X and Y polarizations will have same correction
return
sincos_f2f_select
(
phi
,
ri
);
// But pol used here because input is ordered accordingly
return
sincos_f2f_select
(
phi
,
pol
);
}
}
#define FACTOR correction_factor(phiGradient,
ri
, channel)
#define FACTOR correction_factor(phiGradient,
pol
, channel)
#endif
/* DOPPLER_CORRECTION */
#endif
/* DOPPLER_CORRECTION */
/*!
/*!
...
...
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