Skip to content

Commit

Permalink
unsigned long long stream id
Browse files Browse the repository at this point in the history
  • Loading branch information
JRPan committed Sep 30, 2024
1 parent 1de0f48 commit d8b6a10
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ project(GPGPU-Sim
# Specify the C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
string(REPLACE "-DNDEBUG" "" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")

# GPGPU-Sim build option
option(GPGPUSIM_ENABLE_TRACE "Whether to enable GPGPU-Sim debug tracing" ON)
Expand Down
1 change: 0 additions & 1 deletion src/gpgpu-sim/gpu-sim.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,6 @@ void gpgpu_sim::gpu_print_stat(unsigned long long streamID) {
kernel_cycle +=
kernel.second.elapsed() + gpgpu_ctx->device_runtime->g_kernel_launch_latency;
}
assert(0 && "fix kernel_cycle");

std::string kernel_info_str = executed_kernel_info_string();
fprintf(statfout, "%s", kernel_info_str.c_str());
Expand Down
4 changes: 2 additions & 2 deletions src/gpgpu-sim/shader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1977,11 +1977,11 @@ void shader_core_ctx::warp_inst_complete(const warp_inst_t &inst) {

m_stats->m_num_sim_winsn[m_sid]++;
m_gpu->gpu_sim_insn += inst.active_count();
unsigned stream_id = inst.get_streamID();
unsigned long long stream_id = inst.get_streamID();
if (m_gpu->gpu_sim_insn_per_stream.find(stream_id) ==
m_gpu->gpu_sim_insn_per_stream.end()) {
m_gpu->gpu_sim_insn_per_stream.insert(
std::pair<unsigned, unsigned>(stream_id, 0));
std::pair<unsigned long long, unsigned>(stream_id, 0));
}
m_gpu->gpu_sim_insn_per_stream.at(stream_id) += inst.active_count();
shader_inst += inst.active_count();
Expand Down

0 comments on commit d8b6a10

Please sign in to comment.