NVIDIA/SKA-gpu-degrid

Name: SKA-gpu-degrid

Owner: NVIDIA Corporation

Description: Degridding for the square kilometer array using GPUs

Created: 2016-08-08 19:49:30.0

Updated: 2017-07-06 04:15:48.0

Pushed: 2016-09-19 22:32:18.0

Homepage: null

Size: 35

Language: Cuda

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

GPUDegrid

Radio astronomy degridding on the GPU. Not optimized.

Invoke “make” to make and “degrid” to run.

===Make options in brief===

===Make option details=== Specify PRECISION on the make line to switch between double and single precision, i.e. %> make PRECISION=float

To use unified virtual memory, add MANAGED=1 to the build line

%> make PRECISION=float MANAGED=1

To check results against a CPU computation, add CPU_CHECK=1 to your make line

%> make PRECISION=float MANAGED=1 CPU_CHECK=1

You can any either of 3 methods to compute. By default, each visibility is computed by a set of 32 consecutive threads. This method currently gives the best performance. A second method assigns each thread to a single point on the image and pushes data to each visibility. There is cooperation between threads in a threadblock. Multiple threadblocks contribute to the same visibilty via an atomic addition. To enable this alternate method, call make with SCATTER=1. For example,

%> make PRECISION=float MANAGED=1 CPU_CHECK=1 SCATTER=1

The third method is quite similar to the gather except that each thread camps on a few image points on a grid of the same dimension as the GCF. As the visibilities move in the image plane, threads leap to the next point on their grid as they fall out of the window around the visibility. This implementation is inspired by John Romein's gridding code and is quite similar. To use this method, added MOVING_WINDOW=1 to the build command:

%> make PRECISION=float MANAGED=1 CPU_CHECK=1 MOVING_WINDOW=1

If you specify COMPUTE_GCF=1, the GCF will not be loaded from memory. Instead, the first value of gcf[] will be read as (T,w) with T and w used to compute gcf(x,y) via

gcf(x,y) = exp(2pijw(1-Tsqrt(x2+y*2)))

where x,y is the distance from the image point to the visibility. This is for exploration purposes only. The values do not match the results in crocodile or the randomly generated gcf in degrid.cu.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.