diff options
author | John Kalamatianos <john.kalamatianos@amd.com> | 2016-02-18 10:42:03 -0500 |
---|---|---|
committer | John Kalamatianos <john.kalamatianos@amd.com> | 2016-02-18 10:42:03 -0500 |
commit | a28a234069a0c38bb75ba051ef82e7b4400f133a (patch) | |
tree | fc4db3c35cf44a798357e444f757a7661be2ae9d /src/gpu-compute/code_enums.hh | |
parent | 9a0f1be21fe5fc36d379387134498a76aaf88031 (diff) | |
download | gem5-a28a234069a0c38bb75ba051ef82e7b4400f133a.tar.xz |
gpu: fix bugs with MemFence, Flat Instrs and Resource utilization
Both Memory Fence is now flagged as Global Memory only to avoid resource
oversubscribing.
Flat instructions now check for Shared Memory resource busy to avoid
oversubscribing resources.
All WaitClass resources now use cycles (not ticks) to register the number
of pipe stages between Scoreboard and Execute to be consistent with
instruction scheduling logic which always used clock cycles.
Diffstat (limited to 'src/gpu-compute/code_enums.hh')
-rw-r--r-- | src/gpu-compute/code_enums.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu-compute/code_enums.hh b/src/gpu-compute/code_enums.hh index 126cf6c50..6cd9bfe26 100644 --- a/src/gpu-compute/code_enums.hh +++ b/src/gpu-compute/code_enums.hh @@ -84,6 +84,7 @@ ||(a)==Enums::OT_PRIVATE_ATOMIC \ ||(a)==Enums::OT_SPILL_ATOMIC \ ||(a)==Enums::OT_READONLY_ATOMIC \ + ||(a)==Enums::OT_BOTH_MEMFENCE \ ||(a)==Enums::OT_FLAT_ATOMIC) #define IS_OT_ATOMIC_GM(a) ((a)==Enums::OT_GLOBAL_ATOMIC \ @@ -93,8 +94,7 @@ ||(a)==Enums::OT_BOTH_MEMFENCE) #define IS_OT_ATOMIC_LM(a) ((a)==Enums::OT_SHARED_ATOMIC \ - ||(a)==Enums::OT_SHARED_MEMFENCE \ - ||(a)==Enums::OT_BOTH_MEMFENCE) + ||(a)==Enums::OT_SHARED_MEMFENCE) #define IS_OT_ATOMIC_PM(a) ((a)==Enums::OT_PRIVATE_ATOMIC) |