Skip to content

Commit

Permalink
cleanup debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
JRPan committed Aug 9, 2024
1 parent 68765f4 commit a3da652
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/gpgpu-sim/gpu-sim.cc
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,6 @@ void increment_x_then_y_then_z(dim3 &i, const dim3 &bound) {
void gpgpu_sim::launch(kernel_info_t *kinfo) {
unsigned kernelID = kinfo->get_uid();
unsigned long long streamID = kinfo->get_streamID();
printf("gpgpu_sim::launch: kernelID = %u, streamID = %llu\n", kernelID, streamID);

kernel_time_t kernel_time = {GLOBAL_TIMER, 0};
if (gpu_kernel_time.find(streamID) == gpu_kernel_time.end()) {
Expand All @@ -802,7 +801,6 @@ void gpgpu_sim::launch(kernel_info_t *kinfo) {
gpu_kernel_time.at(streamID).insert(std::pair<unsigned, kernel_time_t>(kernelID, kernel_time));
////////// assume same kernel ID do not appear more than once
}
printf("gpgpu_sim::launch start_cycle=%llu, end_cycle=%llu\n", gpu_kernel_time.at(streamID).at(kernelID).start_cycle, gpu_kernel_time.at(streamID).at(kernelID).end_cycle);

unsigned cta_size = kinfo->threads_per_cta();
if (cta_size > m_shader_config->n_thread_per_shader) {
Expand Down Expand Up @@ -924,7 +922,6 @@ void gpgpu_sim::set_kernel_done(kernel_info_t *kernel) {
unsigned long long streamID = kernel->get_streamID();
last_streamID = streamID;
gpu_kernel_time.at(streamID).at(uid).end_cycle = GLOBAL_TIMER;
printf("gpgpu_sim::set_kernel_done start_cycle=%llu, end_cycle=%llu\n", gpu_kernel_time.at(streamID).at(uid).start_cycle, gpu_kernel_time.at(streamID).at(uid).end_cycle);
m_finished_kernel.push_back(uid);
std::vector<kernel_info_t *>::iterator k;
for (k = m_running_kernels.begin(); k != m_running_kernels.end(); k++) {
Expand Down Expand Up @@ -1190,9 +1187,6 @@ void gpgpu_sim::update_stats() {
gpu_tot_sim_cycle_parition_util += gpu_sim_cycle_parition_util;
gpu_tot_occupancy += gpu_occupancy;

// fprintf(stdout, "GLOBAL_TIMER=%llu, gpu_tot_sim_cycle=%llu, gpu_sim_cycle=%llu\n", GLOBAL_TIMER, gpu_tot_sim_cycle, gpu_sim_cycle);
// fprintf(stdout, "gpgpu_sim::update_stats() last_streamID=%llu, last_uid=%llu, start_cycle=%llu, end_cycle=%llu, sim cycle for this kernel is %llu\n", last_streamID, last_uid, gpu_kernel_time.at(last_streamID).at(last_uid).start_cycle, gpu_kernel_time.at(last_streamID).at(last_uid).end_cycle, gpu_kernel_time.at(last_streamID).at(last_uid).end_cycle - gpu_kernel_time.at(last_streamID).at(last_uid).start_cycle + 1);

gpu_sim_cycle = 0;
partiton_reqs_in_parallel = 0;
partiton_replys_in_parallel = 0;
Expand Down Expand Up @@ -2038,7 +2032,6 @@ void gpgpu_sim::cycle() {
}
gpu_sim_cycle++;
GLOBAL_TIMER++;
//fprintf(stdout, "gpu_sim_cycle %d\n", gpu_sim_cycle);

if (g_interactive_debugger_enabled) gpgpu_debug();

Expand Down

0 comments on commit a3da652

Please sign in to comment.