Skip to content

shift left : hip sanity tests#3366

Open
jainprad wants to merge 20 commits intodevelopfrom
pradjain/ROCmTestCatch
Open

shift left : hip sanity tests#3366
jainprad wants to merge 20 commits intodevelopfrom
pradjain/ROCmTestCatch

Conversation

@jainprad
Copy link
Contributor

@jainprad jainprad commented Feb 19, 2026

Motivation

shift left : Moved hip sanity tests from ROCmTest to hip catch test

Technical Details

Sanity Tests belongs to Launches kernels that uses device-side malloc/new/free/delete, hipHostRegister APIs.

JIRA ID

https://amd-hub.atlassian.net/browse/AISQA-7710

Test Plan

hip sanity tests:-
Unit_AccessMallocAcrossKernels
Unit_hipHostRegister_RegisterUnregister
Unit_hipHostRegister_Nbuf_MultiFlag_RegisterUnregister

Run command :- ctest -R <test_name>

Test Result

PASSED

Submission Checklist

Copilot AI review requested due to automatic review settings February 19, 2026 10:55
@jainprad jainprad requested review from a team as code owners February 19, 2026 10:55
@jainprad jainprad changed the title sanitytests for HIP shift left : hip sanity tests Feb 19, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new HIP “sanityTests” Catch2 test target intended to exercise basic device-side allocation and host-memory registration paths.

Changes:

  • Introduces SanityTests CMake target in unit/sanityTests and adds two new test sources.
  • Adds stress/sanity coverage for hipHostRegister/hipHostUnregister with multiple sizes and flags.
  • Adds basic kernels/tests for device-side new/delete and malloc/free, including cross-kernel allocation usage.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 9 comments.

File Description
projects/hip-tests/catch/unit/sanityTests/CMakeLists.txt Defines new SanityTests executable target with the added sanity test sources.
projects/hip-tests/catch/unit/sanityTests/hipHostRegister.cc Adds host registration/register-unregister stress tests across sizes and flags.
projects/hip-tests/catch/unit/sanityTests/deviceSideMalloc.cc Adds device-side allocation kernels and corresponding Catch2 sanity test cases.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jainprad jainprad requested review from mohanmithur and phani544 March 4, 2026 17:14
Copy link

@phani544 phani544 left a comment

Choose a reason for hiding this comment

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

LGTM

@jainprad jainprad requested review from mangupta and removed request for mohanmithur March 12, 2026 08:58
@sourabhuday sourabhuday self-requested a review March 12, 2026 18:49
@jungx098 jungx098 self-requested a review March 19, 2026 16:42
Copy link
Contributor

@jungx098 jungx098 left a comment

Choose a reason for hiding this comment

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

nit: incorrect copyright year in CMakeList.txt

@jainprad jainprad requested a review from mangupta March 20, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants