Skip to content

gpu support for pois_rand#54

Merged
ChrisRackauckas merged 12 commits intoSciML:masterfrom
sivasathyaseeelan:pois_rand-gpu
Aug 6, 2025
Merged

gpu support for pois_rand#54
ChrisRackauckas merged 12 commits intoSciML:masterfrom
sivasathyaseeelan:pois_rand-gpu

Conversation

@sivasathyaseeelan
Copy link
Contributor

@sivasathyaseeelan sivasathyaseeelan commented Aug 5, 2025

This PR tries to solve #51

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

@sivasathyaseeelan sivasathyaseeelan changed the title added gpu version for pois_rand gpu support for pois_rand Aug 5, 2025
Co-authored-by: Christopher Rackauckas <accounts@chrisrackauckas.com>
@ChrisRackauckas
Copy link
Member

The prod version works with GPU? If so then this looks good to me.

@ChrisRackauckas ChrisRackauckas merged commit 3efc70b into SciML:master Aug 6, 2025
13 checks passed
@oscardssmith
Copy link
Member

note that this code still could use significant removal of Float64 hard coding.

@ChrisRackauckas
Copy link
Member

Yes, for another time.

randexp(rng::PassthroughRNG) = Random.randexp()
randn(rng::PassthroughRNG) = Random.randn()

rand(rng::AbstractRNG) = Random.rand(rng)
Copy link
Member

Choose a reason for hiding this comment

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

@ChrisRackauckas aren't these three here pirating from base?

Copy link
Member

Choose a reason for hiding this comment

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

No they are shadowing.

Copy link
Member

Choose a reason for hiding this comment

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

oh wait there is a direct using. ehhh

Copy link
Member

Choose a reason for hiding this comment

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

we should probably delete the last of these.

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.

4 participants