summaryrefslogtreecommitdiff
path: root/src/gpgpusim_entrypoint.cc
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-07-01 16:23:33 -0400
committerMengchi Zhang <[email protected]>2019-07-01 16:23:33 -0400
commitcb678c3670de4a435a3260ed80dc476da3860082 (patch)
tree99b062689fec2edc94c4af9e10efae9686b24c40 /src/gpgpusim_entrypoint.cc
parent3ced1e68b56c8dfae3bd98e0ede6241e31cefaa2 (diff)
Move g_debug_ir_generation and GPGPUSim_Init
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/gpgpusim_entrypoint.cc')
-rw-r--r--src/gpgpusim_entrypoint.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpgpusim_entrypoint.cc b/src/gpgpusim_entrypoint.cc
index b09674a..476a9d4 100644
--- a/src/gpgpusim_entrypoint.cc
+++ b/src/gpgpusim_entrypoint.cc
@@ -35,6 +35,7 @@
#include "gpgpu-sim/gpu-sim.h"
#include "gpgpu-sim/icnt_wrapper.h"
#include "stream_manager.h"
+#include "../libcuda/gpgpu_context.h"
#define MAX(a,b) (((a)>(b))?(a):(b))
@@ -208,12 +209,12 @@ void exit_simulation()
extern bool g_cuda_launch_blocking;
-gpgpu_sim *gpgpu_ptx_sim_init_perf()
+gpgpu_sim *gpgpu_context::gpgpu_ptx_sim_init_perf()
{
srand(1);
print_splash();
read_sim_environment_variables();
- read_parser_environment_variables();
+ ptx_parser->read_parser_environment_variables();
option_parser_t opp = option_parser_create();
ptx_reg_options(opp);