From 22d2775c82c610c5a6cfb9b9a96aeb6ad58fc144 Mon Sep 17 00:00:00 2001 From: Ahmed El-Shafiey Date: Wed, 16 Jan 2013 00:44:51 -0800 Subject: fixing bug 34 external [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15055] --- src/gpgpusim_entrypoint.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/gpgpusim_entrypoint.cc b/src/gpgpusim_entrypoint.cc index e29535e..f19537b 100644 --- a/src/gpgpusim_entrypoint.cc +++ b/src/gpgpusim_entrypoint.cc @@ -188,6 +188,9 @@ gpgpu_sim *gpgpu_ptx_sim_init_perf() 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" + // so it does the parsing correctly independent of the system environment variables + assert(setlocale(LC_NUMERIC,"C")); g_the_gpu_config.init(); g_the_gpu = new gpgpu_sim(g_the_gpu_config); -- cgit v1.3