summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/hashing.h
diff options
context:
space:
mode:
authorMahmoud <[email protected]>2020-06-01 15:10:07 -0400
committerMahmoud <[email protected]>2020-06-01 15:10:07 -0400
commit04b5438cb61b6f040f69fa99fafc971cc43c60ed (patch)
tree6a04f8f796c1a0e3f8924429080480d9ae5ad20f /src/gpgpu-sim/hashing.h
parentee3c46354c5ce758bf71cfb7bd2e7da7718bcc8a (diff)
ooh forgot to add hashing files
Diffstat (limited to 'src/gpgpu-sim/hashing.h')
-rw-r--r--src/gpgpu-sim/hashing.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/gpgpu-sim/hashing.h b/src/gpgpu-sim/hashing.h
new file mode 100644
index 0000000..867c949
--- /dev/null
+++ b/src/gpgpu-sim/hashing.h
@@ -0,0 +1,24 @@
+// author: Mahmoud Khairy, (Purdue Univ)
+
+#include <assert.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include "../option_parser.h"
+
+#ifndef HASHING_H
+#define HASHING_H
+
+#include "../abstract_hardware_model.h"
+#include "gpu-cache.h"
+
+unsigned ipoly_hash_function(new_addr_type higher_bits, unsigned index,
+ unsigned bank_set_num);
+
+unsigned bitwise_hash_function(new_addr_type higher_bits, unsigned index,
+ unsigned bank_set_num);
+
+unsigned PAE_hash_function(new_addr_type higher_bits, unsigned index,
+ unsigned bank_set_num);
+
+#endif