summaryrefslogtreecommitdiff
path: root/src/abstract_hardware_model.h
diff options
context:
space:
mode:
authorMahmoud <[email protected]>2020-05-23 22:45:28 -0400
committerMahmoud <[email protected]>2020-05-23 22:45:28 -0400
commit47e1a8a3a45203c34a93672a1b1bd742dc193183 (patch)
tree4db7185ba2d4af2bd03e1388cd15a33b95ea8562 /src/abstract_hardware_model.h
parent90a36a59f5619790b7f6d80375f69d05a75c0a82 (diff)
code refomratting
Diffstat (limited to 'src/abstract_hardware_model.h')
-rw-r--r--src/abstract_hardware_model.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h
index a640ba3..ef457a7 100644
--- a/src/abstract_hardware_model.h
+++ b/src/abstract_hardware_model.h
@@ -65,11 +65,7 @@ enum FuncCache {
FuncCachePreferL1 = 2
};
-enum AdaptiveCache
-{
- FIXED = 0,
- ADAPTIVE_VOLTA = 1
-};
+enum AdaptiveCache { FIXED = 0, ADAPTIVE_VOLTA = 1 };
#ifdef __cplusplus
@@ -101,8 +97,8 @@ enum uarch_op_t {
BARRIER_OP,
MEMORY_BARRIER_OP,
CALL_OPS,
- RET_OPS,
- EXIT_OPS
+ RET_OPS,
+ EXIT_OPS
};
typedef enum uarch_op_t op_type;
@@ -328,11 +324,12 @@ class kernel_info_t {
unsigned long long launch_cycle;
unsigned long long start_cycle;
unsigned long long end_cycle;
- unsigned m_launch_latency;
+ unsigned m_launch_latency;
mutable bool cache_config_set;
- unsigned m_kernel_TB_latency; //this used for any CPU-GPU kernel latency and counted in the gpu_cycle
+ unsigned m_kernel_TB_latency; // this used for any CPU-GPU kernel latency and
+ // counted in the gpu_cycle
};
class core_config {