A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kill an unused layer of code
[simgrid.git]
/
src
/
smpi
/
smpi_bench.cpp
diff --git
a/src/smpi/smpi_bench.cpp
b/src/smpi/smpi_bench.cpp
index
00ded92
..
21abd61
100644
(file)
--- a/
src/smpi/smpi_bench.cpp
+++ b/
src/smpi/smpi_bench.cpp
@@
-261,7
+261,7
@@
void smpi_bench_end(void)
xbt_die("Aborting.");
}
// Simulate the benchmarked computation unless disabled via command-line argument
xbt_die("Aborting.");
}
// Simulate the benchmarked computation unless disabled via command-line argument
- if (
sg
_cfg_get_boolean("smpi/simulate_computation")) {
+ if (
xbt
_cfg_get_boolean("smpi/simulate_computation")) {
smpi_execute(xbt_os_timer_elapsed(timer));
}
smpi_execute(xbt_os_timer_elapsed(timer));
}
@@
-481,7
+481,7
@@
void smpi_sample_3(int global, const char *file, int line)
void *smpi_shared_malloc(size_t size, const char *file, int line)
{
void* mem;
void *smpi_shared_malloc(size_t size, const char *file, int line)
{
void* mem;
- if (
sg
_cfg_get_boolean("smpi/use_shared_malloc")){
+ if (
xbt
_cfg_get_boolean("smpi/use_shared_malloc")){
int fd;
smpi_source_location loc(file, line);
auto res = allocs.insert(std::make_pair(loc, shared_data_t()));
int fd;
smpi_source_location loc(file, line);
auto res = allocs.insert(std::make_pair(loc, shared_data_t()));
@@
-524,7
+524,7
@@
void smpi_shared_free(void *ptr)
{
char loc[PTR_STRLEN];
{
char loc[PTR_STRLEN];
- if (
sg
_cfg_get_boolean("smpi/use_shared_malloc")){
+ if (
xbt
_cfg_get_boolean("smpi/use_shared_malloc")){
snprintf(loc, PTR_STRLEN, "%p", ptr);
auto meta = allocs_metadata.find(ptr);
if (meta == allocs_metadata.end()) {
snprintf(loc, PTR_STRLEN, "%p", ptr);
auto meta = allocs_metadata.find(ptr);
if (meta == allocs_metadata.end()) {