Avoid compiler error

This commit is contained in:
Peter Boyle committed 2023-10-24 10:36:09 -04:00
1 parent b3925df9c3
commit 1e79cc9cbe
1 file changed
+1 -1
+1 -1
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;