Skip to content

Source code of "Efficient Radio Interferometric Imaging on the GPU", accepted by eScience'22 - By Honghao Liu, Qiong Luo, and Feng Wang

License

Notifications You must be signed in to change notification settings

RapidsAtHKUST/cuGridder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CuGridder - Efficent Radio Interferometric Imaging on GPU

Introduction

CuGridder is a CUDA-based package for radio interferometric imaging. The package refers to the function definitions of Nifty Gridder in order to make the code portability in RASCIL as easy as possible. We have implemented two main functions of Nifty Gridder such as ms2dirty and dirty2ms. Compared with the CPU parallel version, cuGridder significantly improves the processing performance and can effectively improve the performance of non-uniform FFT in radio astronomical interferometer data processing.

In the current version, we use ES kernel functions in NUFFT and improved W-stacking in imaging.

-- HKUST & GZHU Joint Group,2021

Installation

Requirement

  • CUDA Toolkit
  • GCC

Procedure

  1. Get the code in this repository
git clone https://github.com/HLSUD/cuGridder.git
  1. Revise cuda toolkit path and GPU compute architecture in Makefile
    • add /your_path/cuda at line 22
    • set the correct compute architecture at line 8 (sm_70 for V100, sm_80 for A100)
  2. Compiling and library creating: make (If you are python user, jump to python interface.)
  3. Running and testing
    All the executable files are in the bin folder. (If you are a python user, directly skip to Python interface.)
    For TESTING,
    4.1 NUFFT: convolution, nufft and dft can be tested by typing make checkconv and make checkfft respectively.
    4.2 Radio astronomical imaging: w stacking testing and explicit testing are provided. (make checkwst and make explicit_gridder_test).

Python interface

Currently, we bind cuda and python simply by ctype. After generating the library by compiling, packages like pycuda, six and numpy are required. You can install those packages and our package (curig) by pip install ..

The APIs:

dirty = ms2dirty(uvw, freq, ms, wgt, dirty, fov, epsilon, sigma)
ms = dirty2ms(uvw, freq, ms, wgt, dirty, fov, epsilon, sigma)

uvw - 2d plain array storing coordinates of visbility, freq - real number, freqency, ms - visibility (complex array), wgt - 1d array stroing weight, dirty - dirty image, fov - field of veiw, epsilon - the tolerance and sigma - upsampling factor.

After the previous setting, you could test by running test_w.py.

Demo result

Here shows a dirty image generated by real data. demo

Reference

About

Source code of "Efficient Radio Interferometric Imaging on the GPU", accepted by eScience'22 - By Honghao Liu, Qiong Luo, and Feng Wang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published