Skip to content

Commit

Permalink
Use threads for RV fitting. Should become a flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
sefffal committed Feb 12, 2024
1 parent b350459 commit de0dfb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OctofitterRadialVelocity/src/OctofitterRadialVelocity.jl
Expand Up @@ -136,7 +136,7 @@ function Octofitter.ln_like(
orbit = elements[planet_i]
# Need to structarrays orbit if we want this to SIMD
planet_mass = θ_system.planets[planet_i].mass
for epoch_i in eachindex(epochs)
Threads.@threads for epoch_i in eachindex(epochs)
rv_star_buf[epoch_i] -= radvel(orbit, epochs[epoch_i], planet_mass*Octofitter.mjup2msol)
end
# Zygote version:
Expand Down Expand Up @@ -253,6 +253,7 @@ include("harps_rvbank.jl")
include("harps_dr1.jl")
include("hires.jl")
include("lick.jl")
include("ces.jl")
include("radvel.jl")


Expand Down

2 comments on commit de0dfb6

@sefffal
Copy link
Owner Author

@sefffal sefffal commented on de0dfb6 Mar 6, 2024

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/102359

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v2.3.1 -m "<description of version>" de0dfb6c8202d6635660f687a3cbd95772993994
git push origin v2.3.1

Please sign in to comment.