From 1e79cc9cbe6b45a84aa7a0e643ee025c585e482c Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Tue, 24 Oct 2023 10:36:09 -0400 Subject: [PATCH] Avoid compiler error --- Grid/lattice/Lattice_reduction_gpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Grid/lattice/Lattice_reduction_gpu.h b/Grid/lattice/Lattice_reduction_gpu.h index ecf90d19..b7819c36 100644 --- a/Grid/lattice/Lattice_reduction_gpu.h +++ b/Grid/lattice/Lattice_reduction_gpu.h @@ -30,7 +30,7 @@ int getNumBlocksAndThreads(const Iterator n, const size_t sizeofsobj, Iterator & cudaGetDevice(&device); #endif #ifdef GRID_HIP - hipGetDevice(&device); + auto discard=hipGetDevice(&device); #endif Iterator warpSize = gpu_props[device].warpSize;