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

[Bindless][Exp] Add support for device to device copies between CuArrays #1265

Merged
merged 4 commits into from
Apr 24, 2024

Conversation

cppchedy
Copy link
Contributor

@cppchedy cppchedy commented Jan 19, 2024

This PR:

  • Introduce support for device to device copy in 1D, 2D and 3D.
  • target only Cuarrays

corresponding PR in intel/llvm#12449

@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 12.43%. Comparing base (78ef1ca) to head (5d9b46b).
Report is 194 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1265      +/-   ##
==========================================
- Coverage   14.82%   12.43%   -2.40%     
==========================================
  Files         250      241       -9     
  Lines       36220    36242      +22     
  Branches     4094     4111      +17     
==========================================
- Hits         5369     4506     -863     
- Misses      30800    31732     +932     
+ Partials       51        4      -47     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cppchedy cppchedy force-pushed the chedy/device-to-device-copy branch 2 times, most recently from 7748492 to a4a78a0 Compare February 7, 2024 14:14
@aarongreig aarongreig added the ready to merge Added to PR's which are ready to merge label Feb 7, 2024
@cppchedy cppchedy force-pushed the chedy/device-to-device-copy branch 5 times, most recently from ba3ab17 to 2ae14b1 Compare February 14, 2024 15:27
@kbenzie kbenzie changed the title [Bindless][Ext] Add image_mem_handle to image_mem_handle devices copies. [Bindless][Exp] Add image_mem_handle to image_mem_handle devices copies. Feb 15, 2024
@cppchedy cppchedy removed the ready to merge Added to PR's which are ready to merge label Feb 22, 2024
@cppchedy cppchedy force-pushed the chedy/device-to-device-copy branch from a46b6c0 to 4a93adc Compare March 11, 2024 23:06
source/adapters/cuda/image.cpp Show resolved Hide resolved
source/adapters/cuda/image.cpp Show resolved Hide resolved
source/adapters/cuda/image.cpp Outdated Show resolved Hide resolved
@cppchedy cppchedy force-pushed the chedy/device-to-device-copy branch 2 times, most recently from a282c4c to 72ab43d Compare March 20, 2024 12:29
Copy link
Contributor

@isaacault isaacault left a comment

Choose a reason for hiding this comment

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

Sorry for just noticing this now, but can the title and description of this PR be updated to remove mention of the mem handle?

This PR doesn't touch any mem handles, and any comments about it don't belong in this project but rather in intel/llvm. This PR is strictly about implementing D2D copies.

@cppchedy cppchedy changed the title [Bindless][Exp] Add image_mem_handle to image_mem_handle devices copies. [Bindless][Exp] Add support for device to device copies between CuArrays Mar 21, 2024
@cppchedy cppchedy force-pushed the chedy/device-to-device-copy branch from 72ab43d to 5d9b46b Compare March 22, 2024 11:43
source/adapters/cuda/image.cpp Outdated Show resolved Hide resolved
@kbenzie kbenzie added the cuda CUDA adapter specific issues label Apr 10, 2024
@cppchedy cppchedy force-pushed the chedy/device-to-device-copy branch from bea263c to f894c7f Compare April 11, 2024 15:05
@cppchedy cppchedy requested a review from DBDuncan April 11, 2024 15:13
@github-actions github-actions bot added the images UR images label Apr 11, 2024
source/adapters/cuda/image.cpp Show resolved Hide resolved
source/adapters/cuda/image.cpp Outdated Show resolved Hide resolved
source/adapters/cuda/image.cpp Show resolved Hide resolved
@cppchedy cppchedy added the ready to merge Added to PR's which are ready to merge label Apr 15, 2024
* support device to device copies between CUarrays

* fix random failure by sync on stream when dispatching
  copies

* add support for image arrays and cubemaps copies
@cppchedy cppchedy force-pushed the chedy/device-to-device-copy branch from cc3b814 to f9fb116 Compare April 19, 2024 10:50
@kbenzie kbenzie merged commit 7fcfe3a into oneapi-src:main Apr 24, 2024
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuda CUDA adapter specific issues images UR images ready to merge Added to PR's which are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants