Skip to content

Comments

ProbProg: Comrade integrate#2367

Draft
sbrantq wants to merge 5 commits intomainfrom
probprog-comrade
Draft

ProbProg: Comrade integrate#2367
sbrantq wants to merge 5 commits intomainfrom
probprog-comrade

Conversation

@sbrantq
Copy link
Member

@sbrantq sbrantq commented Feb 6, 2026

No description provided.

@sbrantq sbrantq force-pushed the probprog-comrade branch 2 times, most recently from c2a6d90 to 1e8ab94 Compare February 7, 2026 02:23
Comment on lines +17 to +19
PackageSpec(;
url="https://github.com/ptiede/NFFT.jl", rev="ptiede-reactant"
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
PackageSpec(;
url="https://github.com/ptiede/NFFT.jl", rev="ptiede-reactant"
)
PackageSpec(; url="https://github.com/ptiede/NFFT.jl", rev="ptiede-reactant"),


# const dataurl = "https://de.cyverse.org/anon-files/iplant/home/shared/commons_repo/curated/EHTC_M87pol2017_Nov2023/hops_data/April06/SR2_M87_2017_096_lo_hops_ALMArot.uvfits"
# const dataf = Base.download(dataurl)
const dataf = joinpath(@__DIR__, "../../../../deps/SR1_M87_2017_096_lo_hops_netcal_StokesI.uvfits")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
const dataf = joinpath(@__DIR__, "../../../../deps/SR1_M87_2017_096_lo_hops_netcal_StokesI.uvfits")
const dataf = joinpath(
@__DIR__, "../../../../deps/SR1_M87_2017_096_lo_hops_netcal_StokesI.uvfits"
)

Reactant.@profile gl(tpostr, xr)
glr = @compile sync = true gl(tpostr, xr)


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change

## If you want to profile the Claude NUFFT you can do this
plr = postr.skymodel.grid.plan_forward.plan
xr = Reactant.to_rarray(rand(ComplexF64, size(grd)))
nf(pl, x) = sum(abs2, pl*x)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
nf(pl, x) = sum(abs2, pl*x)
nf(pl, x) = sum(abs2, pl * x)


nfr(plr, x) = nf(plr[], x)
dnf(pl, xr) = last(Enzyme.gradient(Reverse, nfr, Ref(pl), xr))
dnfr = @compile sync=true dnf(plr, xr)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
dnfr = @compile sync=true dnf(plr, xr)
dnfr = @compile sync = true dnf(plr, xr)

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

Successfully merging this pull request may close these issues.

1 participant