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

Prepare for GPU sampling support #17

Merged
merged 3 commits into from
Oct 25, 2023
Merged

Prepare for GPU sampling support #17

merged 3 commits into from
Oct 25, 2023

Conversation

aseyboldt
Copy link
Member

Collect all array operations into a trait, with array type as an associated trait. This should allow implementations of this trait that use the GPU, so that all sampling can happen on the gpu. (for instance using a rust wrapper of the iree runtime or using the pytensor api).

See the cpu implementation here for details of the required operations: src/cpu_math.rs

cc @ferrine

@ferrine
Copy link
Member

ferrine commented Oct 25, 2023

that is amazing

@aseyboldt aseyboldt merged commit 70cf379 into main Oct 25, 2023
12 checks passed
@aseyboldt aseyboldt deleted the math-trait branch October 25, 2023 20:39
@aseyboldt aseyboldt mentioned this pull request Nov 1, 2023
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.

2 participants