summaryrefslogtreecommitdiff
path: root/src/gpu-compute/compute_unit.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu-compute/compute_unit.hh')
-rw-r--r--src/gpu-compute/compute_unit.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu-compute/compute_unit.hh b/src/gpu-compute/compute_unit.hh
index 2187bec38..4a1c09c27 100644
--- a/src/gpu-compute/compute_unit.hh
+++ b/src/gpu-compute/compute_unit.hh
@@ -390,6 +390,8 @@ class ComputeUnit : public MemObject
int32_t
getRefCounter(const uint32_t dispatchId, const uint32_t wgId) const;
+ int cacheLineSize() const { return _cacheLineSize; }
+
bool
sendToLds(GPUDynInstPtr gpuDynInst) __attribute__((warn_unused_result));
@@ -767,6 +769,7 @@ class ComputeUnit : public MemObject
uint64_t getAndIncSeqNum() { return globalSeqNum++; }
private:
+ const int _cacheLineSize;
uint64_t globalSeqNum;
int wavefrontSize;
GPUStaticInst *kernelLaunchInst;