gpu-compute,misc: Remove unused private variable
authorBobby R. Bruce <bbruce@ucdavis.edu>
Tue, 2 Feb 2021 19:53:30 +0000 (11:53 -0800)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Wed, 3 Feb 2021 19:08:02 +0000 (19:08 +0000)
Clang 9 fails to compile GCN3 due to the unused private variable,
`_nxtFreeIdx`, in `src/gpu-compute/dyn_pool_manager.hh`. This variable
has therefore been removed.

Change-Id: I33f2e9634bbf8d5cea7a42ae2ac9f3ea8298d406
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/40397
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
Maintainer: Matt Sinclair <mattdsinclair@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/gpu-compute/dyn_pool_manager.hh

index dc8ffec8836096ceab592c5be1fb11d1b4f1c33b..151a33feb504cd203b9ab8c17865e2d9f072a6a7 100644 (file)
@@ -46,7 +46,7 @@ class DynPoolManager : public PoolManager
 {
   public:
     DynPoolManager(const PoolManagerParams &p)
-        : PoolManager(p), _regionSize(0), _nxtFreeIdx(0)
+        : PoolManager(p), _regionSize(0)
     {
         _totRegSpaceAvailable = p.pool_size;
     }
@@ -63,8 +63,6 @@ class DynPoolManager : public PoolManager
     // actual size of a region (normalized to the minimum size that can
     // be reserved)
     uint32_t _regionSize;
-    // next index to allocate a region
-    int _nxtFreeIdx;
     // total registers available - across chunks
     uint32_t _totRegSpaceAvailable;
     // regIndex and freeSpace record