NHA-EX-003 | Technical investigation

HIP occupancy recommendation limits

AMD ROCm | Runtime diagnostic evidence

Evidence status

Native Windows diagnostic confirmation; open investigation

Native Windows queries reproduced occupancy recommendations above the applicable kernel or caller limit. Comparison of both API paths and deliberately non-wavefront-aligned limits supplies additional diagnostic evidence for maintainers. This example demonstrates a standalone diagnostic engagement with actionable engineering evidence.

Illustrative project price

£2,100

Illustrative project estimate; VAT excluded where applicable.

Compare example prices

Illustrative engagement scope

StageExample fee
Investigation£900
Corrective engineeringNot included
Qualification£900
Technical handover£300
Illustrative total£2,100

Diagnostic report, public observations, a runnable CSV classification utility, input template, worked examples, output and acceptance checklist. The package supports diagnostic analysis; corrective engineering can be commissioned separately.

Actual engineering deliverables

Investigation-only example

Diagnostic report, public observations, a runnable CSV classification utility, input template, worked examples, output and acceptance checklist. The package supports diagnostic analysis; corrective engineering can be commissioned separately.

Included in the ZIP

  • Runnable Python CSV analyser for offline analysis of observed occupancy query results.
  • Four illustrative rows transcribed from two publicly reported examples (both API paths); input schema, result JSON and synthetic classification self-test.
  • Published evidence, diagnostic methodology and next-step acceptance checklist.

Diagnostic rule (pseudocode)

Diagnostic rule: a recommendation must stay within both applicable limits.

a = suggested_block_size > kernel_max
b = caller_limit > 0 and suggested_block_size > caller_limit

Package verification

CSV classifier: 6/6 synthetic category checks PASS. Worked data: four public example rows, two kernel-limit violations and two caller-limit violations. The utility classifies supplied observations using the four public example rows; the original native investigation comprised 80 queries.

Installation, acceptance and rollback

The diagnostic utility classifies supplied results. Collection of comparable native observations and qualification of a future repair can be scoped as follow-up engineering.

Detailed instructions are included in the implementation folder. Download the delivery ZIP.

Technical investigation

Tested environment

Windows x64, Radeon 8060S gfx1151 (wave32), isolated app-local ROCm 7.2 SDK runtime; reported runtime/header version 70260201 and HIPRTC API 9.0.

  • Use bounded and unbounded kernels to query both static-kernel and module occupancy APIs.
  • Compare the returned block recommendation with the kernel attribute maximum and any positive caller blockSizeLimit.
  • Include non-wavefront-aligned caller limits such as 95 and 33. The controlled method uses native query-only evidence.

Corrective engineering or recommendation

  • The standalone investigation identifies the contract boundary and defines requirements for a subsequent repair.
  • The handover proposes matching checks against both applicable upper limits, including non-wavefront multiples, and cross-platform qualification of the proposed upstream correction only under a separately agreed scope.

Published qualification evidence

Published hardware and engineering results are shown below, alongside the separate portable package qualification above.

Evidence or conditionPublished resultScope / qualification
Both API paths / query status80/80 hipSuccessA successful API status did not guarantee a valid recommendation
Static/module agreement40/40 corresponding pairsBoth APIs agreed on the tested values
Exceeded at least one applicable limit62/80 suggestions62 includes both categories of violation
Per-API distribution9 valid; 11 kernel only; 14 caller only; 6 both40 queries per API
Kernel max 128, caller limit 0Suggested 1024Both APIs; above kernel maximum
Kernel max 96, caller limit 95Suggested 96Both APIs; above caller limit

Qualification scope

The native query qualification covers the tested Windows SDK runtime. Comparable MI355X/Linux measurements and qualification of proposed PR #16465 form distinct follow-up engineering scopes.

Engineering handover

Example reproduction and acceptance checklist for a scoped customer engagement.

  • Record actual GPU, runtime/header identity, HIPRTC version and API path.
  • Query bounded kernels at 128, 100 and 96 threads and an unbounded control; vary positive and zero caller limits.
  • For each result check the kernel maximum and any positive caller limit; compare static and module output under matched inputs.
  • Report unexpected suggestions separately from query errors; do not launch an invalid suggestion. Test a future repair only after separately agreeing scope.

Public sources

Download the sample package

Diagnostic report, public observations, a runnable CSV classification utility, input template, worked examples, output and acceptance checklist. The package supports diagnostic analysis; corrective engineering can be commissioned separately. The ZIP also contains the PDF report, technical findings, evidence CSV, acceptance checklist, source references, example scope and SHA-256 manifest.

View original achievement · Confidentiality and NDAs · Discuss comparable work