From b76ff58037f6ad04361c7fcfaafe66d86b4e3235 Mon Sep 17 00:00:00 2001 From: kferjaoui Date: Tue, 13 Oct 2026 18:23:09 +0200 Subject: [PATCH] docs/dev: add branch state to the PixelHistogramCUDA guide Record that the branch is based on feature/cuda_clusterfinder, point step 6 at the CMake and test setup it inherits, and drop stale loose ends. Co-Authored-By: Claude Opus 5.5 --- docs/dev/pixelhistogram_cuda_guide.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/dev/pixelhistogram_cuda_guide.html b/docs/dev/pixelhistogram_cuda_guide.html index 6ae012f3..84412817 100644 --- a/docs/dev/pixelhistogram_cuda_guide.html +++ b/docs/dev/pixelhistogram_cuda_guide.html @@ -542,7 +542,8 @@ footer { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--rule);
  • Files: include/aare/hist/PixelHistogramCUDA.hpp (class), include/aare/hist/pixelhistogram_kernel.cuh (kernels, namespace aare::cuda::detail), include/aare/RAII_device.hpp (wrappers), include/aare/utils/cuda_check.cuh (CUDA_CHECK). Nothing is committed yet.
  • Current step: 6, CMake wiring and the first end-to-end tests against PixelHistogramImpl. All code is written; the pipeline and fill kernel have never run end to end yet.
  • Settled decisions are listed under Decisions. Don't reopen them without a measurement.
  • -
  • Working agreement: the author writes the code; the assistant reviews, explains and gives hints rather than full solutions unless asked.
  • +
  • Branch: feature/cuda_pixelhistogram is based on feature/cuda_clusterfinder and pushed. The cluster finder merges into main first. cuda_check.cuh, the base of RAII_device.hpp and the AARE_CUDA CMake setup come from that branch; this branch only adds HostRegistration, AsyncDeviceBuffer and Event to RAII_device.hpp. Pick up cluster-finder updates by rebasing (then --force-with-lease) or merging; in both cases keep this branch's RAII_device.hpp on conflict.
  • +
  • Working agreement: the author writes the code; the assistant reviews, explains and gives hints rather than full solutions unless asked. Answers are direct, honest (including when something is wrong) and compact.
  • @@ -895,7 +896,7 @@ footer { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--rule);
  • Tests and overlap Next

      -
    • CMake wiring under AARE_CUDA, as on the cluster finder branch. The kernel launch means only nvcc can compile files that include the header, so a .cu test implementation is called from the Catch2 .test.cpp.
    • +
    • CMake wiring: reuse the AARE_CUDA option and the test pattern already in this branch's base (see ClusterFinderCUDA_testimpl.cu / ClusterFinderCUDA.test.cpp). The kernel launch means only nvcc can compile files that include the header, so a .cu test implementation is called from the Catch2 .test.cpp.
    • The tests listed under Testing and measuring.
    • nsys shows H2D i+1 overlapping kernel i.
    @@ -918,8 +919,7 @@ footer { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--rule);
  • hpp L202
    tidyThe "TODO: Needs transpose" above values(out) is done.
  • hpp L240
    tidyA bare // TODO under the Option B comment, with nothing to do.
  • hpp L173
    tidyThe "let's not use shmem at first" comment inside the launch can go: the decision is final.
  • -
  • values_pixel
    tidyC-style cast (ssize_t)m_nbins in the loop; the repo's warnings flag it. Use static_cast.
  • -
  • cuda_check.cuh
    tidyNo newline at the end of the file, so compilers warn "backslash-newline at end of file".
  • +
  • cuda_check.cuh
    tidyNo newline at the end of the file, so compilers warn "backslash-newline at end of file". The file comes from the cluster-finder branch: fix it there.