diff options
| author | Tim Rogers <[email protected]> | 2025-02-18 10:29:07 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-02-18 15:29:07 +0000 |
| commit | 287fe0aa17ec1ac5bdd595ca6e89aa97464bcac7 (patch) | |
| tree | cf52817b95b99f61cf494af5536e32bf6d2889e3 /src/gpgpu-sim | |
| parent | 7934dfea8a6f44f592866414189970ef9ff994d6 (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/gpgpu-sim')
| -rw-r--r-- | src/gpgpu-sim/dram.cc | 8 | ||||
| -rw-r--r-- | src/gpgpu-sim/gpu-sim.h | 4 | ||||
| -rw-r--r-- | src/gpgpu-sim/l2cache.h | 4 | ||||
| -rw-r--r-- | src/gpgpu-sim/shader.h | 6 | ||||
| -rw-r--r-- | src/gpgpu-sim/visualizer.cc | 2 |
5 files changed, 8 insertions, 16 deletions
diff --git a/src/gpgpu-sim/dram.cc b/src/gpgpu-sim/dram.cc index 80e20d7..1e1ad3d 100644 --- a/src/gpgpu-sim/dram.cc +++ b/src/gpgpu-sim/dram.cc @@ -684,13 +684,9 @@ bool dram_t::issue_row_command(int j) { } // if mrq is being serviced by dram, gets popped after CL latency fulfilled -class mem_fetch *dram_t::return_queue_pop() { - return returnq->pop(); -} +class mem_fetch *dram_t::return_queue_pop() { return returnq->pop(); } -class mem_fetch *dram_t::return_queue_top() { - return returnq->top(); -} +class mem_fetch *dram_t::return_queue_top() { return returnq->top(); } void dram_t::print(FILE *simFile) const { unsigned i; diff --git a/src/gpgpu-sim/gpu-sim.h b/src/gpgpu-sim/gpu-sim.h index c1f5096..68bdca7 100644 --- a/src/gpgpu-sim/gpu-sim.h +++ b/src/gpgpu-sim/gpu-sim.h @@ -32,11 +32,11 @@ #ifndef GPU_SIM_H #define GPU_SIM_H +#include <stdint.h> #include <stdio.h> #include <fstream> #include <iostream> #include <list> -#include <stdint.h> #include "../abstract_hardware_model.h" #include "../option_parser.h" #include "../trace.h" @@ -879,7 +879,7 @@ class sst_gpgpu_sim : public gpgpu_sim { * @param dst_start_addr * @param count */ - void perf_memcpy_to_gpu(size_t dst_start_addr, size_t count){}; + void perf_memcpy_to_gpu(size_t dst_start_addr, size_t count) {}; /** * @brief Check if the SST config matches up with the diff --git a/src/gpgpu-sim/l2cache.h b/src/gpgpu-sim/l2cache.h index 65c9c38..9d164d7 100644 --- a/src/gpgpu-sim/l2cache.h +++ b/src/gpgpu-sim/l2cache.h @@ -106,9 +106,7 @@ class memory_partition_unit { unsigned get_mpid() const { return m_id; } - class gpgpu_sim *get_mgpu() const { - return m_gpu; - } + class gpgpu_sim *get_mgpu() const { return m_gpu; } private: unsigned m_id; diff --git a/src/gpgpu-sim/shader.h b/src/gpgpu-sim/shader.h index ee10af6..0840d3f 100644 --- a/src/gpgpu-sim/shader.h +++ b/src/gpgpu-sim/shader.h @@ -46,7 +46,7 @@ #include <utility> #include <vector> -//#include "../cuda-sim/ptx.tab.h" +// #include "../cuda-sim/ptx.tab.h" #include "../abstract_hardware_model.h" #include "delayqueue.h" @@ -273,9 +273,7 @@ class shd_warp_t { unsigned get_dynamic_warp_id() const { return m_dynamic_warp_id; } unsigned get_warp_id() const { return m_warp_id; } - class shader_core_ctx *get_shader() { - return m_shader; - } + class shader_core_ctx *get_shader() { return m_shader; } private: static const unsigned IBUFFER_SIZE = 2; diff --git a/src/gpgpu-sim/visualizer.cc b/src/gpgpu-sim/visualizer.cc index a832d61..0222019 100644 --- a/src/gpgpu-sim/visualizer.cc +++ b/src/gpgpu-sim/visualizer.cc @@ -34,7 +34,7 @@ #include "mem_latency_stat.h" #include "power_stat.h" #include "shader.h" -//#include "../../../mcpat/processor.h" +// #include "../../../mcpat/processor.h" #include "gpu-cache.h" #include "stat-tool.h" |
