summaryrefslogtreecommitdiff
path: root/src/gpgpusim_entrypoint.cc
diff options
context:
space:
mode:
authorMahmoud <[email protected]>2020-05-27 18:52:01 -0400
committerMahmoud <[email protected]>2020-05-27 18:52:01 -0400
commitede0540e798bac59f65111c8d48661f042412aa8 (patch)
treeb3a096b17ba60881f92831de6038bf66b161589e /src/gpgpusim_entrypoint.cc
parent7ebe47ac5d1f0255527a27a9bb7cd3c29fa9f6e3 (diff)
splitting trace-driven from gpgpu-sim - part 2
Diffstat (limited to 'src/gpgpusim_entrypoint.cc')
-rw-r--r--src/gpgpusim_entrypoint.cc37
1 files changed, 1 insertions, 36 deletions
diff --git a/src/gpgpusim_entrypoint.cc b/src/gpgpusim_entrypoint.cc
index 6ec3867..f4287d8 100644
--- a/src/gpgpusim_entrypoint.cc
+++ b/src/gpgpusim_entrypoint.cc
@@ -219,7 +219,7 @@ gpgpu_sim *gpgpu_context::gpgpu_ptx_sim_init_perf() {
the_gpgpusim->g_the_gpu_config->init();
the_gpgpusim->g_the_gpu =
- new gpgpu_sim(*(the_gpgpusim->g_the_gpu_config), this);
+ new exec_gpgpu_sim(*(the_gpgpusim->g_the_gpu_config), this);
the_gpgpusim->g_stream_manager = new stream_manager(
(the_gpgpusim->g_the_gpu), func_sim->g_cuda_launch_blocking);
@@ -232,41 +232,6 @@ gpgpu_sim *gpgpu_context::gpgpu_ptx_sim_init_perf() {
return the_gpgpusim->g_the_gpu;
}
-gpgpu_sim *gpgpu_context::gpgpu_trace_sim_init_perf(int argc,
- const char *argv[]) {
- srand(1);
- print_splash();
- func_sim->read_sim_environment_variables();
- ptx_parser->read_parser_environment_variables();
- option_parser_t opp = option_parser_create();
-
- ptx_reg_options(opp);
- func_sim->ptx_opcocde_latency_options(opp);
-
- icnt_reg_options(opp);
- the_gpgpusim->g_the_gpu_config = new gpgpu_sim_config(this);
- the_gpgpusim->g_the_gpu_config->reg_options(
- opp); // register GPU microrachitecture options
-
- option_parser_cmdline(opp, argc, argv); // parse configuration options
- fprintf(stdout, "GPGPU-Sim: Configuration options:\n\n");
- option_parser_print(opp, stdout);
- // Set the Numeric locale to a standard locale where a decimal point is a
- // "dot" not a "comma" so it does the parsing correctly independent of the
- // system environment variables
- assert(setlocale(LC_NUMERIC, "C"));
- the_gpgpusim->g_the_gpu_config->init();
-
- the_gpgpusim->g_the_gpu =
- new gpgpu_sim(*(the_gpgpusim->g_the_gpu_config), this);
- the_gpgpusim->g_stream_manager = new stream_manager(
- (the_gpgpusim->g_the_gpu), func_sim->g_cuda_launch_blocking);
-
- the_gpgpusim->g_simulation_starttime = time((time_t *)NULL);
-
- return the_gpgpusim->g_the_gpu;
-}
-
void gpgpu_context::start_sim_thread(int api) {
if (the_gpgpusim->g_sim_done) {
the_gpgpusim->g_sim_done = false;