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); cudaGetDevice(&device);
#endif #endif
#ifdef GRID_HIP #ifdef GRID_HIP
hipGetDevice(&device); auto discard=hipGetDevice(&device);
#endif #endif
Iterator warpSize = gpu_props[device].warpSize; Iterator warpSize = gpu_props[device].warpSize;