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

fix: preserve object when device is same #1133

Merged
merged 2 commits into from
Dec 14, 2024
Merged

Conversation

avik-pal
Copy link
Member

This pull request includes several updates to the MLDataDevices package, focusing on improving the device transfer functionality for various device types. The changes involve modifying the Adapt.adapt_storage method to ensure that the device type is checked before performing a transfer.

Updates to device transfer functionality:

Additionally, the package version has been incremented to 1.6.4 in the Project.toml file.

fixes #1129

@avik-pal avik-pal requested a review from Copilot December 14, 2024 03:35

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 6 changed files in this pull request and generated no comments.

Files not reviewed (5)
  • lib/MLDataDevices/ext/MLDataDevicesAMDGPUExt.jl: Language not supported
  • lib/MLDataDevices/ext/MLDataDevicesCUDAExt.jl: Language not supported
  • lib/MLDataDevices/ext/MLDataDevicesMetalExt.jl: Language not supported
  • lib/MLDataDevices/ext/MLDataDevicesoneAPIExt.jl: Language not supported
  • lib/MLDataDevices/src/public.jl: Language not supported
Copy link
Contributor

github-actions bot commented Dec 14, 2024

Benchmark Results (ASV)

main 309dce0... main/309dce033cc35e...
basics/overhead 0.124 ± 0.0012 μs 0.131 ± 0.0052 μs 0.947
time_to_load 0.929 ± 0.0063 s 0.945 ± 0.0078 s 0.982

Benchmark Plots

A plot of the benchmark results have been uploaded as an artifact to the workflow run for this PR.
Go to "Actions"->"Benchmark a pull request"->[the most recent run]->"Artifacts" (at the bottom).

@avik-pal avik-pal merged commit fdb0170 into main Dec 14, 2024
50 of 64 checks passed
@avik-pal avik-pal deleted the ap/preserve_same_object branch December 14, 2024 04:51
avik-pal added a commit that referenced this pull request Dec 20, 2024
* fix: preserve object when device is same

* test: object not copied
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.

[MLDataDevices] devices don't preserve identity
1 participant