1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-19 16:55:37 +01:00

Avoid compiler error

This commit is contained in:
Peter Boyle 2023-10-24 10:36:09 -04:00
parent b3925df9c3
commit 1e79cc9cbe

View File

@ -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;