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

Support for rand from Julia Base on device code #378

Closed
williamfgc opened this issue Feb 7, 2023 · 2 comments · Fixed by #380
Closed

Support for rand from Julia Base on device code #378

williamfgc opened this issue Feb 7, 2023 · 2 comments · Fixed by #380

Comments

@williamfgc
Copy link

CUDA.jl has support for using functionality like rand(Distributions.Uniform(-1, 1)) on kernel code, which AMDGPU.jl flags as invalid LLVM-IR.

What's the best way to add this kind of functionality? Happy to help.

@vchuravy
Copy link
Member

vchuravy commented Feb 7, 2023

Also needed by @utkarsh530 in SciML/DiffEqGPU.jl#227

@jpsamaroo
Copy link
Member

Probably in the short term we can copy-pasta most of CUDA.jl's implementation.

@jpsamaroo jpsamaroo linked a pull request Feb 8, 2023 that will close this issue
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 a pull request may close this issue.

3 participants