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
Update documentation about java bindings.
[simgrid.git]
/
testsuite
/
xbt
/
parmap_bench.c
diff --git
a/testsuite/xbt/parmap_bench.c
b/testsuite/xbt/parmap_bench.c
index
112fbae
..
d63bfc3
100644
(file)
--- a/
testsuite/xbt/parmap_bench.c
+++ b/
testsuite/xbt/parmap_bench.c
@@
-3,7
+3,7
@@
#include <xbt/dynar.h>
#include <xbt/parmap.h>
#include <xbt/sysdep.h>
#include <xbt/dynar.h>
#include <xbt/parmap.h>
#include <xbt/sysdep.h>
-#include <
gras
_config.h> /* HAVE_FUTEX_H */
+#include <
internal
_config.h> /* HAVE_FUTEX_H */
#include "xbt/xbt_os_time.h"
#define MODES_DEFAULT 0x7
#include "xbt/xbt_os_time.h"
#define MODES_DEFAULT 0x7
@@
-30,7
+30,7
@@
static const char *parmap_mode_name(e_xbt_parmap_mode_t mode)
snprintf(name, sizeof name, "DEFAULT");
break;
default:
snprintf(name, sizeof name, "DEFAULT");
break;
default:
- snprintf(name, sizeof name, "UNKNOWN(%d)", mode);
+ snprintf(name, sizeof name, "UNKNOWN(%d)",
(int)
mode);
break;
}
return name;
break;
}
return name;
@@
-180,7
+180,7
@@
int main(int argc, char *argv[])
return EXIT_FAILURE;
}
if (argc == 3)
return EXIT_FAILURE;
}
if (argc == 3)
- modes =
atoi(argv[2]
);
+ modes =
strtol(argv[2], NULL, 0
);
printf("Parmap benchmark with %d workers (modes = %#x)...\n\n",
nthreads, modes);
printf("Parmap benchmark with %d workers (modes = %#x)...\n\n",
nthreads, modes);