summaryrefslogtreecommitdiff
path: root/src/abstract_hardware_model.cc
diff options
context:
space:
mode:
authorTim Rogers <[email protected]>2025-02-18 10:29:07 -0500
committerGitHub <[email protected]>2025-02-18 15:29:07 +0000
commit287fe0aa17ec1ac5bdd595ca6e89aa97464bcac7 (patch)
treecf52817b95b99f61cf494af5536e32bf6d2889e3 /src/abstract_hardware_model.cc
parent7934dfea8a6f44f592866414189970ef9ff994d6 (diff)
A bunch of maintenance fixes, the largest of which is getting the PTX simulation to work with CUDA 12. (#95)
* Fixing the formatter to always use a consistent format and running it on the codebase * Update linux-so-version.txt * Update Makefile * A couple of unnecessary files that are lingering around * Support CUDA 12 * Getting the PTX simulations to work with CUDA 12. The issue is that ptxas added more information (number of barriers and compile time). We have to parse these or lexx/yacc fail. * Update ptxinfo.l debug MACRO was ineffective * Update gpgpusim_check.cmake Update to make the CUDA version print a warning, not an error and updating the print to be more reflective of what the actual problem is.
Diffstat (limited to 'src/abstract_hardware_model.cc')
-rw-r--r--src/abstract_hardware_model.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/abstract_hardware_model.cc b/src/abstract_hardware_model.cc
index e8ddf95..8743cc7 100644
--- a/src/abstract_hardware_model.cc
+++ b/src/abstract_hardware_model.cc
@@ -216,20 +216,20 @@ new_addr_type line_size_based_tag_func(new_addr_type address,
return address & ~(line_size - 1);
}
-const char *mem_access_type_str(enum mem_access_type access_type) {
+const char *mem_access_type_str(enum mem_access_type access_type){
#define MA_TUP_BEGIN(X) static const char *access_type_str[] = {
#define MA_TUP(X) #X
#define MA_TUP_END(X) \
} \
;
- MEM_ACCESS_TYPE_TUP_DEF
+ MEM_ACCESS_TYPE_TUP_DEF
#undef MA_TUP_BEGIN
#undef MA_TUP
#undef MA_TUP_END
- assert(access_type < NUM_MEM_ACCESS_TYPE);
+ assert(access_type < NUM_MEM_ACCESS_TYPE);
- return access_type_str[access_type];
+return access_type_str[access_type];
}
void warp_inst_t::clear_active(const active_mask_t &inactive) {