Skip to content

fix(hipDNN): add required ComputeType template arg to CpuReferencePointwiseImpl - #596

Merged
zichguan-amd merged 1 commit into
amd-stagingfrom
fix/hipdnn-fused-conv-pointwise-template
Nov 24, 2026
Merged

zichguan-amd merged 1 commit into
amd-stagingfrom
fix/hipdnn-fused-conv-pointwise-template

Conversation

@zichguan-amd

Copy link
Copy Markdown
Collaborator

Motivation

Libraries/hipDNN/fused_conv_fprop_activ/main.cpp and fused_conv_fprop_bias_activ/main.cpp
fail to compile against the current ROCm nightly (10.3.0a20261123+) on all gfx1100
configurations:

main.cpp:142:68: error: wrong number of template arguments (1, should be at least 2)

Upstream rocm-libraries PR #15139
("fix(hipdnn): Fix reference semantics and failure reporting in the CPU pointwise reference",
commit a04404e51e4, merged 2026-11-18) changed
hipdnn_test_sdk::utilities::CpuReferencePointwiseImpl from
<OutputType, InputTypes...> to <OutputType, ComputeType, InputTypes...>. That PR's own
description says:

External consumers of the installed hipdnn_test_sdk must insert the compute type as the
second template argument; use double to keep the previous behaviour.

It updated upstream's own sibling copies of these same samples
(rocm-libraries/projects/hipdnn/samples/convolution/FusedConvFpropActiv.cpp and
FusedConvFpropBiasActiv.cpp) but not the copies vendored here, which this PR brings in sync.

Technical Details

Add double as the ComputeType template argument at the 3 affected call sites, matching
upstream's own fix verbatim:

  • fused_conv_fprop_activ/main.cpp:142
  • fused_conv_fprop_bias_activ/main.cpp:167, 174
-    hipdnn_test_sdk::utilities::CpuReferencePointwiseImpl<InputType>::
+    hipdnn_test_sdk::utilities::CpuReferencePointwiseImpl<InputType, double>::
         pointwiseCompute(

Test Plan

  • Built both targets locally against the pinned nightly ROCm tarball
    (therock-dist-linux-gfx110X-all-tests-10.3.0a20261123.tar.gz, exact version match to the
    failing CI run) — compiles clean, previously failed with the error above.
  • Ran both tests on real gfx1100 hardware via ctest --output-on-failure:
    hipdnn_fused_conv_fprop_activ and hipdnn_fused_conv_fprop_bias_activ — both passed.

@zichguan-amd
zichguan-amd requested a review from a team as a code owner November 24, 2026 16:23
@github-actions

Copy link
Copy Markdown
Security scan found no critical or high findings on lines changed by this pull request

View the security scan run for complete reports.

“New” means the finding is located in a changed file on an added or modified line; it is not a base-versus-head findings delta.

@zichguan-amd
zichguan-amd merged commit c68ff87 into amd-staging Nov 24, 2026
24 of 25 checks passed
@zichguan-amd
zichguan-amd deleted the fix/hipdnn-fused-conv-pointwise-template branch November 24, 2026 22:09
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