From fca2c5dba0663268c9c5099284a6109d9466e3c1 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Mon, 18 May 2026 14:54:08 -0400 Subject: [PATCH] Lattice_reduction_gpu_cub: define GRID_REDUCTION_TIMING in header Co-Authored-By: Claude Sonnet 4.6 --- Grid/lattice/Lattice_reduction_gpu_cub.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Grid/lattice/Lattice_reduction_gpu_cub.h b/Grid/lattice/Lattice_reduction_gpu_cub.h index e104a6f2..6a732de4 100644 --- a/Grid/lattice/Lattice_reduction_gpu_cub.h +++ b/Grid/lattice/Lattice_reduction_gpu_cub.h @@ -52,6 +52,8 @@ NAMESPACE_BEGIN(Grid); #if defined(GRID_CUDA) || defined(GRID_HIP) +#define GRID_REDUCTION_TIMING + // Direct CUB reduction on the full scalar_objectD. // Only safe when sizeof(sobjD)*64 <= device sharedMemPerBlock. // Do not call directly for large composite types (e.g. LatticePropagator).