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
[SGpp] make SURF_CPU_LEVEL private
[simgrid.git]
/
teshsuite
/
surf
/
surf_usage
/
surf_usage2.c
diff --git
a/teshsuite/surf/surf_usage/surf_usage2.c
b/teshsuite/surf/surf_usage/surf_usage2.c
index
dbb1c6a
..
585415b
100644
(file)
--- a/
teshsuite/surf/surf_usage/surf_usage2.c
+++ b/
teshsuite/surf/surf_usage/surf_usage2.c
@@
-42,8
+42,8
@@
const char *string_action(e_surf_action_state_t state)
void test(char *platform);
void test(char *platform)
{
void test(char *platform);
void test(char *platform)
{
-
void *
hostA = NULL;
-
void *
hostB = NULL;
+
sg_host_t
hostA = NULL;
+
sg_host_t
hostB = NULL;
double now = -1.0;
int running;
double now = -1.0;
int running;
@@
-52,12
+52,12
@@
void test(char *platform)
parse_platform_file(platform);
/*********************** HOST ***********************************/
parse_platform_file(platform);
/*********************** HOST ***********************************/
- hostA = s
urf_host_resource
_by_name("Cpu A");
- hostB = s
urf_host_resource
_by_name("Cpu B");
+ hostA = s
g_host
_by_name("Cpu A");
+ hostB = s
g_host
_by_name("Cpu B");
/* Let's check that those two processors exist */
/* Let's check that those two processors exist */
- XBT_DEBUG("%s : %p", s
urf_resource
_name(hostA), hostA);
- XBT_DEBUG("%s : %p", s
urf_resource
_name(hostB), hostB);
+ XBT_DEBUG("%s : %p", s
g_host_get
_name(hostA), hostA);
+ XBT_DEBUG("%s : %p", s
g_host_get
_name(hostB), hostB);
/* Let's do something on it */
surf_host_execute(hostA, 1000.0);
/* Let's do something on it */
surf_host_execute(hostA, 1000.0);