Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not appear to check for impossible frequencies #30

Open
d3v-null opened this issue Apr 27, 2024 · 0 comments
Open

Does not appear to check for impossible frequencies #30

d3v-null opened this issue Apr 27, 2024 · 0 comments

Comments

@d3v-null
Copy link
Collaborator

d3v-null commented Apr 27, 2024

If you do something stupid like ask hyperdrive to evaluate the beam at -1GHz, it appears to cause a memory access error on HIP.

# salloc --nodes=1 --partition=gpu-highmem --account=pawsey0875-gpu -t 08:00:00 --gres=gpu:4
module load singularity/3.11.4-nohost
export obsid=1087251016
export outdir="${MYSCRATCH}/${obsid}"
mkdir -p $outdir
export metafits="${outdir}/${obsid}.metafits"
[ -f "$metafits" ] || wget -O "$metafits" $'http://ws.mwatelescope.org/metadata/fits?obs_id='${obsid}
export srclist=${outdir}/srclist_pumav3_EoR0LoBES_EoR1pietro_CenA-GP_2023-11-07.yaml
[[ $srclist =~ srclist_puma && ! -f "$srclist" ]] && wget -O $srclist "https://github.com/JLBLine/srclists/raw/master/${srclist##*/}"
export MWA_BEAM_FILE="$MYSOFTWARE/mwa_full_embedded_element_pattern.h5"
[ -f $MWA_BEAM_FILE ] || wget -O "$MWA_BEAM_FILE" $'http://ws.mwatelescope.org/static/mwa_full_embedded_element_pattern.h5'
export hyp_toml="${outdir}/hyp_conf.toml"

export nchans=1000
export ntimes=100
export nobeam="false"

cat >$hyp_toml <<EOF
[beam]
no_beam = $nobeam
unity_dipole_gains = false

[model]
no_precession = false
cpu = false

[sky-model]
source_list = "$srclist"
num_sources = 1

[vis-simulate]
metafits = "$metafits"
filter_points = false
filter_gaussians = false
filter_shapelets = false
num_timesteps = $ntimes
ignore_dut1 = false
num_fine_channels = $nchans
middle_freq = 200000000.0
freq_res =      1280000.0
EOF

module load singularity/3.11.4-nohost
export ROCM_VER=6.1
export TAG="v0.3.0-setonix-rocm${ROCM_VER}"
export hyperdrive="singularity exec docker://d3vnull0/hyperdrive:$TAG hyperdrive"
eval $hyperdrive vis-simulate -vvv -- "$hyp_toml"      2>&1 | tee "${outdir}/log/hyp_vis-sim.log"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant