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-76 - Implement additional tests for Malloc/Free API #49

Closed

Conversation

nives-vukovic
Copy link
Contributor

  • Implement positive and negative tests for hipMallocMipmappedArray based on existing hipMalloc3DArray tests
  • Implement positive and negative tests for hipFreeMipmappedArray based on existing hipFreeArray tests
  • Memory leak fix in Unit_hipMalloc3D_Basic

gargrahul and others added 10 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 positive and negative tests for hipMallocMipmappedArray based on existing hipMalloc3DArray tests
- Implement positive and negative tests for hipFreeMipmappedArray based on existing hipFreeArray tests
- Memory leak fix in Unit_hipMalloc3D_Basic
@nives-vukovic nives-vukovic marked this pull request as ready for review December 9, 2022 15:23
*/

TEMPLATE_TEST_CASE("Unit_hipFreeMipmappedArrayImplicitSyncArray", "", char, float) {
#ifdef _WIN32
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mangupta @chrispaquot This has been added in line with all other tests that use API that is only functional on Windows OS. This is the case for Mipmapped Array API.

Copy link
Contributor

Choose a reason for hiding this comment

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

same as other comment: use json file instead.

Copy link
Contributor Author

@nives-vukovic nives-vukovic Mar 15, 2023

Choose a reason for hiding this comment

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

@chrispaquot @mangupta On out system, Mipmapped array APIs only build on Windows, for that reason the tests have been disabled using _WIN32

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand, the APIs are OS agnostic so should be fine on either ones.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@chrispaquot Same as with texture management containing Mipmapped APIs, I can remove the win32 defines, and wait for the CL report to check if everything works properly on Linux on your setup. Would that be a good solution from your side?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mangupta win32 defines have been removed, please run the CI to check if everything is working correctly regarding linux/windows test build and execution, and report if there are any bugs because we could not run these tests on our systems.

@rakesroy
Copy link
Contributor

PR has been merged into develop branch via commit 10594ec.

@rakesroy rakesroy closed this Feb 20, 2024
rocm-ci pushed a commit that referenced this pull request Feb 26, 2024
Change-Id: I9e2fd348e8c1d2bf63f82b90898863006ba90b62
rocm-ci pushed a commit that referenced this pull request Feb 26, 2024
- #154
- #438
- #425
- #424
- #423
- #365
- #356
- #279
- #274
- #190
- #189
- #188
- #156
- #49
- #439
- #437
- #436
- #435
- #193

Change-Id: I2529d0baf0f8d47d6215863321720cde2b1a846c
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.

6 participants