Skip to content

[smoke-limbo] mix_hipmemset_omp: verify through a host copy - #2406

Merged
ronlieb merged 1 commit into
aomp-devfrom
amd/dev/haqadeer/mix_hipmemset_omp_fix
Aug 6, 2026
Merged

[smoke-limbo] mix_hipmemset_omp: verify through a host copy#2406
ronlieb merged 1 commit into
aomp-devfrom
amd/dev/haqadeer/mix_hipmemset_omp_fix

Conversation

@abidh

@abidh abidh commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

The test read the omp_target_alloc'd buffer directly from host code, but that pointer refers to device memory. Whether such a read works depends on the PCIe Resizable BAR setting, so the test passed on machines where the CPU can map all of GPU memory and segfaulted where only the legacy 256MB window is visible. Two gfx1030 machines differing only in that setting disagreed, which is what surfaced it.

Copy the buffer back with omp_target_memcpy before checking it. The HIP side of the test is unchanged.

The test read the omp_target_alloc'd buffer directly from host code, but
that pointer refers to device memory. Whether such a read works depends on
the PCIe Resizable BAR setting, so the test passed on machines where the
CPU can map all of GPU memory and segfaulted where only the legacy 256MB
window is visible. Two gfx1030 machines differing only in that setting
disagreed, which is what surfaced it.

Copy the buffer back with omp_target_memcpy before checking it. The HIP side of the test is unchanged.
@ronlieb
ronlieb merged commit ac0c5b0 into aomp-dev Aug 6, 2026
1 check passed
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.

2 participants