[Test] Add kfd test - #47
Open
pranavprakash-amd wants to merge 6 commits into
Open
Conversation
pranavprakash-amd
requested review from
a team,
madkasul and
mparamas-amd
as code owners
July 16, 2026 13:29
Signed-off-by: Pranav Prakash <pranav.prakash@amd.com>
pranavprakash-amd
force-pushed
the
users/pranavprakash-amd/kfd
branch
from
July 23, 2026 04:40
071cb3e to
526fab8
Compare
mparamas-amd
requested changes
Jul 24, 2026
Signed-off-by: Pranav Prakash <pranav.prakash@amd.com>
Signed-off-by: Pranav Prakash <pranav.prakash@amd.com>
Signed-off-by: Pranav Prakash <pranav.prakash@amd.com>
Signed-off-by: Pranav Prakash <pranav.prakash@amd.com>
Author
|
====================================================== ROCm Test Suite Summary ====================================================== ============================================= 3 failed, 1 passed in 2403.73s (0:40:03) ============================================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Add end-to-end test coverage for KFD (Kernel Fusion Driver) — the AMD GPU kernel driver / thunk layer (libhsakmt) at the very base of the ROCm
stack. KFD sits below the HIP runtime, so validating it directly closes a gap at the lowest software layer of our e2e coverage. This ports the
legacy ROCmTest tests/KFD/kfd.py into the marker-compliant rocm-tests framework.
Technical Details
Ports ROCmTest's class-based KFD.execute(executeData) into tests/e2e/kfd/, driving the upstream kfdtest GTest suite from the libhsakmt project.
--hsa_test_gpus_num.
monorepo (not just tests/kfdtest, since its CMakeLists resolves thunk headers via ../../include) and CMake-builds it against the resolved
TheRock/ROCm install. Includes fail-fast guards: an actionable skip when libdrm/libnuma pkg-config deps are un-provisioned, and a clear error when
the sibling include/ tree is missing from a stale checkout.
paths), so a narrower checkout from an earlier run is widened rather than silently missing newly-needed files.
Host provisioning (OS build deps, GCC pinning) is intentionally not ported into test code — nodes are provisioned via --pre-install pkg=libdrm-dev
/ pkg=libnuma-dev. GPU selection/visibility is left to target_executor (which injects ROCR_VISIBLE_DEVICES) rather than the original's fragile
host-topology -n offset.
Test Plan
Test Result
Submission Checklist