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

EXSWHTEC-97 - Implement tests for hipMemcpy2D APIs #53

Closed

Conversation

mirza-halilcevic
Copy link
Contributor

  • Implement basic behavior checks in all copy directions
  • Implement synchronization behavior checks for expected behavior based on cuda docs
  • Implement positive tests for zero sized width and/or height copies, where no copy is expected to happen
  • Implement negative parameter tests
  • Implement all of the above for hipMemcpy2D and hipMemcpy2DAsync.

gargrahul and others added 9 commits October 26, 2022 03:59
Change-Id: I66f0c09e9c7405ec7430b1883e0e89542fdb87a0
Change-Id: I212b82b1b3a78a368b85ea64e338371a34b405f9
Change-Id: Ib455f72b5be77e1a81137d15c07ea41161b16a3e
Change-Id: Ief96e274f4143e80ceb3e40f04d38ae217777583
Change-Id: I9c03cde09b42c8e3726153c2a177359efc8d6d29
… arrays

- Add resource guards for 2D and 3D allocations
- Add resource guards for arrays
- Add utils for hadling pitched memory
- Add hip_array_common.hh to gather type, size and format mapping
- Implement basic behavior checks in all copy directions
- Implement synchronization behavior checks for expected behavior based on cuda docs
- Implement positive tests for zero sized width and/or height copies, where no copy is expected to happen
- Implement negative parameter tests
- Implement all of the above for hipMemcpy2D and hipMemcpy2DAsync.
@jaydeeppatel1111
Copy link
Contributor

Memcpy2DHtoHSyncBehavior with malloc case is fixed and will be available in upcoming release. however We should use async version of API to get async behavior for DD. i.e. Memcpy2DDtoDSyncBehavior can be fixed through test case change. Currently tests use sync version of API for DD that can be changed to Async version. True, Which is perhaps not matching to cuda however we have decided to keep it as is. Please update test cases and let us know if there is any issue. Thanks
@chrispaquot @mangupta

@mirza-halilcevic
Copy link
Contributor Author

Memcpy2DHtoHSyncBehavior with malloc case is fixed and will be available in upcoming release. however We should use async version of API to get async behavior for DD. i.e. Memcpy2DDtoDSyncBehavior can be fixed through test case change. Currently tests use sync version of API for DD that can be changed to Async version. True, Which is perhaps not matching to cuda however we have decided to keep it as is. Please update test cases and let us know if there is any issue. Thanks @chrispaquot @mangupta

The test case is now updated.

@rorake
Copy link
Contributor

rorake commented Jun 21, 2023

@mirza-halilcevic
Will you please resolve the merge conflicts for this PR?

rocm-ci pushed a commit that referenced this pull request Feb 26, 2024
Change-Id: I674741e641b1ebd6adb5c60c05c2d8ade27510c6
rocm-ci pushed a commit that referenced this pull request Feb 26, 2024
- #119
- #151
- #57
- #58
- #59
- #60
- #99
- #139
- #152
- #48
- #54
- #53
- #24
- #23
- #22
- #21
- #20
- #14
- #8

Change-Id: I1eea54cd1436f3ddbfd5c1b3b2f672eb81d03cd4
@rakesroy
Copy link
Contributor

PR has been merged into develop branch via commit c9e664b.

@rakesroy rakesroy closed this Feb 26, 2024
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.

7 participants