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

Add DeviceSide #1561

Merged
merged 7 commits into from
Dec 11, 2023
Merged

Add DeviceSide #1561

merged 7 commits into from
Dec 11, 2023

Conversation

Sbozzolo
Copy link
Member

@Sbozzolo Sbozzolo commented Nov 28, 2023

This PR implements a new Device that is used to identify structs that live on the GPU.

DeviceSideDevice (and the associated DeviceSideContext) are singleton that are passed through Adapt.adapt_structure to those structs that are on the GPU.

With this change, I also added support for mapreduce_cuda for point spaces.

@Sbozzolo
Copy link
Member Author

@simonbyrne do you have any initial thoughts on this?

src/devices.jl Outdated Show resolved Hide resolved
@Sbozzolo Sbozzolo force-pushed the gb/cuda_device branch 4 times, most recently from abe0a59 to c37fa07 Compare November 28, 2023 21:10
@Sbozzolo Sbozzolo force-pushed the gb/cuda_device branch 2 times, most recently from fdd5daf to b6b84b7 Compare December 5, 2023 21:54
@Sbozzolo
Copy link
Member Author

Sbozzolo commented Dec 5, 2023

@simonbyrne I added a commit to implement mapreduce_cuda for DataF (which is needed because the reductions for PointSpaces now use methods for GPUs when they are defined on the GPU). Please, have a look at it when you have a chance.

@Sbozzolo Sbozzolo force-pushed the gb/cuda_device branch 2 times, most recently from 8285212 to f749c97 Compare December 6, 2023 16:11
test/runtests.jl Outdated Show resolved Hide resolved
@simonbyrne simonbyrne merged commit 732e530 into main Dec 11, 2023
13 of 14 checks passed
@simonbyrne simonbyrne deleted the gb/cuda_device branch December 11, 2023 18:07
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.

3 participants