summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-sim.cc
diff options
context:
space:
mode:
authorJin Wang <[email protected]>2016-07-01 05:29:58 -0400
committerJin Wang <[email protected]>2016-07-05 09:16:53 -0400
commit3656376ccd83d5c514389c4c3818f1969bc30e0c (patch)
treeada5faf5474ad7b9de173854f74f848b2e3b5867 /src/gpgpu-sim/gpu-sim.cc
parent38f811ab4d094e56b2065e1c8cb39327ad9f157b (diff)
MOD: schedule one child kernel each cycle
Diffstat (limited to 'src/gpgpu-sim/gpu-sim.cc')
-rw-r--r--src/gpgpu-sim/gpu-sim.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc
index 47dbc89..126e007 100644
--- a/src/gpgpu-sim/gpu-sim.cc
+++ b/src/gpgpu-sim/gpu-sim.cc
@@ -61,6 +61,7 @@
#include "power_stat.h"
#include "visualizer.h"
#include "stats.h"
+#include "../cuda-sim/cuda_device_runtime.h"
#ifdef GPGPUSIM_POWER_MODEL
#include "power_interface.h"
@@ -1370,6 +1371,9 @@ void gpgpu_sim::cycle()
}
try_snap_shot(gpu_sim_cycle);
spill_log_to_file (stdout, 0, gpu_sim_cycle);
+
+ //launch device kernel
+ launch_one_device_kernel();
}
}