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

Define to_device and to_cpu #2163

Merged
merged 1 commit into from
Jan 27, 2025
Merged

Define to_device and to_cpu #2163

merged 1 commit into from
Jan 27, 2025

Conversation

charleskawczynski
Copy link
Member

This PR adds to_device, which allow users to move data between the CPU and GPU, and to_cpu, which allow users to move data to the CPU.

Copy link
Member

@Sbozzolo Sbozzolo left a comment

Choose a reason for hiding this comment

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

Could you also add a page to the documentation describing this feature?

In the future, this might be mentioned in the page for Fields and Spaces. For now, we could just start a "Frequently Asked Questions" page and describe this feature

src/to_device.jl Outdated Show resolved Hide resolved
src/to_device.jl Show resolved Hide resolved
Update src/to_device.jl

Co-authored-by: Gabriele Bozzola <gbozzola@caltech.edu>

More docs
Copy link
Member

@Sbozzolo Sbozzolo left a comment

Choose a reason for hiding this comment

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

Awesome, thank you!

@charleskawczynski charleskawczynski merged commit 2f87a7e into main Jan 27, 2025
35 checks passed
@charleskawczynski charleskawczynski deleted the ck/to_device branch January 27, 2025 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature GPU
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants