summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmed El-Shafiey <[email protected]>2013-01-16 00:44:51 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:49:24 -0700
commit22d2775c82c610c5a6cfb9b9a96aeb6ad58fc144 (patch)
tree26b5345c3cfa89d458b14f47ffce7e505b349413
parent981297ca132a5a16962ee1c81406b9483bac1201 (diff)
fixing bug 34 external
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15055]
-rw-r--r--CHANGES3
-rw-r--r--src/gpgpusim_entrypoint.cc3
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index b7b532f..6ce8dfc 100644
--- a/CHANGES
+++ b/CHANGES
@@ -3,6 +3,9 @@ Version 3.2.1 versus 3.2.0
- Bug Fixes:
- Applied patch from Kito Cheng to update libopencl for checking NULL error
code pointer.
+ - Set the numeric locale before the parsing to a standard locale with the decimal point
+ represented as "dot" not a "comma", so parsing is done correctly independent of the
+ system locale.
Version 3.2.0 versus 3.1.2
- Added GPUWattch GPGPU power model based on McPAT 0.8beta.
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);