Skip to content

Commit

Permalink
outline needed functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-a-cox committed Aug 9, 2024
1 parent f0e5142 commit 43a645b
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions fftvis/gpu.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import numpy as np
import cupy as cp
import cufinufft
from pyuvdata import UVBeam

def simulate_gpu(
ants: dict,
freqs: np.ndarray,
fluxes: np.ndarray,
beam,
crd_eq: np.ndarray,
eq2tops: np.ndarray,
baselines: list[tuple[int, int]] | None = None,
precision: int = 2,
polarized: bool = False,
eps: float | None = None,
beam_spline_opts: dict = None,
max_progress_reports: int = 100,
live_progress: bool = True,
flat_array_tol: float = 0.0,
):
"""
GPU accelerated version of simulate_vis
"""
pass

def do_beam_interpolation(
beam: UVBeam,
az: np.ndarray,
za: np.ndarray,
freq: float,
polarized: bool,
spline_opts: dict = None,
):
"""
Perform beam interpolation, choosing between CPU and GPU implementations
"""
pass

def _evaluate_beam_gpu(
A_s: np.ndarray,
beam: UVBeam,
az: np.ndarray,
za: np.ndarray,
polarized: bool,
freq: float,
check: bool = False,
spline_opts: dict = None,
):
pass

0 comments on commit 43a645b

Please sign in to comment.