Skip to content

Add canMapHostMemory and managedMemory skip guards to catch tests#11

Open
pvelesko wants to merge 1 commit intochipStarfrom
skip-canmaphostmem
Open

Add canMapHostMemory and managedMemory skip guards to catch tests#11
pvelesko wants to merge 1 commit intochipStarfrom
skip-canmaphostmem

Conversation

@pvelesko
Copy link
Collaborator

@pvelesko pvelesko commented Mar 7, 2026

Skip tests that require canMapHostMemory or managed memory support when the device doesn't advertise these capabilities, instead of failing or crashing.

Affected tests:

  • hipClassKernel, hipHostGetDevicePointer, hipHostMalloc (Default, NonCoherent, CoherentAccess)
  • hipMemcpy, hipMemcpyAsync (H2H-H2D-D2H-H2PinMem variants)
  • hipMemsetFunctional, memset (hostMem)
  • hipMemFaultStackAllocation, hipMemPrefetchAsync_NonPageSz, hipMallocManaged_Basic

Tests using hipHostMalloc, hipMallocManaged, or hipMemPrefetchAsync
now check device capabilities and skip with HIP_SKIP_THIS_TEST when
the device doesn't support host memory mapping or managed memory.
This avoids false failures on backends like clvk with BufferDevAddr.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant