Skip to content

Commit

Permalink
Merge pull request #66 from CIRA-Pulsars-and-Transients-Group/dev/chris
Browse files Browse the repository at this point in the history
Tidied up cu_invert_pfb inputs
  • Loading branch information
bwmeyers authored Dec 6, 2024
2 parents 6fcc7e4 + 7dc14b3 commit 726fd8e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
3 changes: 1 addition & 2 deletions app/make_mwa_tied_array_beam.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,7 @@ int main(int argc, char **argv)

// Run the iPFB kernel
cu_invert_pfb( data_buffer_fine, timestep_idx, vm->npointing,
nsamples, nchans, npols, vm->vf->sizeof_buffer,
&gi, data_buffer_vdif );
nsamples, nchans, npols, &gi, data_buffer_vdif );

logger_stop_stopwatch( vm->log, "ipfb" );
}
Expand Down
4 changes: 2 additions & 2 deletions include/vcsbeam.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -968,8 +968,8 @@ extern "C" {
#endif

void cu_invert_pfb( gpuDoubleComplex *data_buffer_fine, int file_no,
int npointing, int nsamples, int nchan, int npol, int sizeof_buffer,
struct gpu_ipfb_arrays *g, float *data_buffer_uvdif );
int npointing, int nsamples, int nchan, int npol,
struct gpu_ipfb_arrays *g, float *data_buffer_vdif );

void cu_load_ipfb_filter( pfb_filter *filter, struct gpu_ipfb_arrays *g );

Expand Down
10 changes: 9 additions & 1 deletion src/pfb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,15 @@ __global__ void ipfb_kernel(
/**
* Invert the PFB by applying a resynthesis filter, using GPU acceleration.
*
* @param[in] data_buffer_fine The fine-channelised voltages
* @param file_no An index corresponding to the second of the data
* @param npointing The number of pointings
* @param nsamples The number of time samples per second of input data
* @param nchan The number of fine channels
* @param npol The number of instrumental polarisations
* @param g The ipfb filter struct
* @param[out] data_buffer_vdif The reconstructed coarse-channelised voltages
*
* This function expects `data_buffer_fine` to be a 1D array of complex
* voltages with indices following the ordering:
*
Expand Down Expand Up @@ -939,7 +948,6 @@ __global__ void ipfb_kernel(
*/
void cu_invert_pfb( gpuDoubleComplex *data_buffer_fine, int file_no,
int npointing, int nsamples, int nchan, int npol,
int sizeof_buffer,
struct gpu_ipfb_arrays *g, float *data_buffer_vdif )
{
// Setup input values:
Expand Down

0 comments on commit 726fd8e

Please sign in to comment.