diff options
| author | Mengchi Zhang <[email protected]> | 2019-06-22 15:20:44 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-06-23 12:26:23 -0400 |
| commit | 3ced1e68b56c8dfae3bd98e0ede6241e31cefaa2 (patch) | |
| tree | 9c38ee95910b92a7687bda8a6d4cc9b848ec29ef /src/gpgpusim_entrypoint.cc | |
| parent | 2f749f6969cd0582b7ac2bfe33309034185cc77c (diff) | |
Fix argv content since it is unchanged for GPGPU-Sim
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/gpgpusim_entrypoint.cc')
| -rw-r--r-- | src/gpgpusim_entrypoint.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpgpusim_entrypoint.cc b/src/gpgpusim_entrypoint.cc index de937b0..b09674a 100644 --- a/src/gpgpusim_entrypoint.cc +++ b/src/gpgpusim_entrypoint.cc @@ -38,6 +38,9 @@ #define MAX(a,b) (((a)>(b))?(a):(b)) +static int sg_argc = 3; +static const char *sg_argv[] = {"", "-config","gpgpusim.config"}; + struct GPGPUsim_ctx* the_gpgpusim = NULL; @@ -220,7 +223,7 @@ gpgpu_sim *gpgpu_ptx_sim_init_perf() GPGPUsim_ctx_ptr()->g_the_gpu_config = new gpgpu_sim_config(); GPGPUsim_ctx_ptr()->g_the_gpu_config->reg_options(opp); // register GPU microrachitecture options - option_parser_cmdline(opp, GPGPUsim_ctx_ptr()->sg_argc, GPGPUsim_ctx_ptr()->sg_argv); // parse configuration options + option_parser_cmdline(opp, sg_argc, sg_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" |
