From 18275a39544c6c0fb1ef6285772cc5270e13b2cd Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Sun, 23 Feb 2020 20:29:18 +0100 Subject: [PATCH] cosmetics --- examples/c/actor-yield/actor-yield.c | 2 +- examples/c/cloud-capping/cloud-capping.c | 2 +- examples/c/cloud-capping/cloud-capping.tesh | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/c/actor-yield/actor-yield.c b/examples/c/actor-yield/actor-yield.c index eac7d26a18..8171c61d0d 100644 --- a/examples/c/actor-yield/actor-yield.c +++ b/examples/c/actor-yield/actor-yield.c @@ -13,7 +13,7 @@ /* This example does not much: It just spans over-polite processes that yield a large amount * of time before ending. * - * This serves as an example for the MSG_process_yield() function, with which a process can request + * This serves as an example for the sg_process_yield() function, with which a process can request * to be rescheduled after the other processes that are ready at the current timestamp. * * It can also be used to benchmark our context-switching mechanism. diff --git a/examples/c/cloud-capping/cloud-capping.c b/examples/c/cloud-capping/cloud-capping.c index 55676e682c..8e37ece3d7 100644 --- a/examples/c/cloud-capping/cloud-capping.c +++ b/examples/c/cloud-capping/cloud-capping.c @@ -117,7 +117,7 @@ static void test_one_task(sg_host_t hostA) const double computation_amount = cpu_speed * 10; const char* hostA_name = sg_host_get_name(hostA); - XBT_INFO("### Test: with/without MSG_task_set_bound"); + XBT_INFO("### Test: with/without sg_exec_set_bound"); XBT_INFO("### Test: no bound for Task1@%s", hostA_name); launch_worker(hostA, "worker0", computation_amount, 0, 0); diff --git a/examples/c/cloud-capping/cloud-capping.tesh b/examples/c/cloud-capping/cloud-capping.tesh index bd2ffe48e6..4e4d526893 100644 --- a/examples/c/cloud-capping/cloud-capping.tesh +++ b/examples/c/cloud-capping/cloud-capping.tesh @@ -1,7 +1,7 @@ ! output sort $ ${bindir:=.}/cloud-capping-c ${platfdir}/small_platform.xml --log=no_loc "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" > [ 0.000000] (1:master_@Fafard) # 1. Put a single task on a PM. -> [ 0.000000] (1:master_@Fafard) ### Test: with/without MSG_task_set_bound +> [ 0.000000] (1:master_@Fafard) ### Test: with/without sg_exec_set_bound > [ 0.000000] (1:master_@Fafard) ### Test: no bound for Task1@Fafard > [ 10.000000] (2:worker0@Fafard) not bound => duration 10.000000 (76296000.000000 flops/s) > [1000.000000] (1:master_@Fafard) ### Test: 50% for Task1@Fafard @@ -40,7 +40,7 @@ $ ${bindir:=.}/cloud-capping-c ${platfdir}/small_platform.xml --log=no_loc "--lo > [11040.000000] (20:worker1@Fafard) bound to 19074000.000000 => duration 40.000000 (19074000.000000 flops/s) > [12000.000000] (1:master_@Fafard) > [12000.000000] (1:master_@Fafard) # 3. Put a single task on a VM. -> [12000.000000] (1:master_@Fafard) ### Test: with/without MSG_task_set_bound +> [12000.000000] (1:master_@Fafard) ### Test: with/without sg_exec_set_bound > [12000.000000] (1:master_@Fafard) ### Test: no bound for Task1@VM0 > [12010.000000] (21:worker0@VM0) not bound => duration 10.000000 (76296000.000000 flops/s) > [13000.000000] (1:master_@Fafard) ### Test: 50% for Task1@VM0 @@ -104,7 +104,7 @@ $ ${bindir:=.}/cloud-capping-c ${platfdir}/small_platform.xml --log=no_loc "--lo > [30040.000000] (53:worker1@VM0) bound to 19074000.000000 => duration 40.000000 (19074000.000000 flops/s) > [31000.000000] (1:master_@Fafard) > [31000.000000] (1:master_@Fafard) # 7. Put a single task on the VM capped by 10%. -> [31000.000000] (1:master_@Fafard) ### Test: with/without MSG_task_set_bound +> [31000.000000] (1:master_@Fafard) ### Test: with/without sg_exec_set_bound > [31000.000000] (1:master_@Fafard) ### Test: no bound for Task1@VM0 > [31100.000000] (54:worker0@VM0) not bound => duration 100.000000 (7629600.000000 flops/s) > [32000.000000] (1:master_@Fafard) ### Test: 50% for Task1@VM0 -- 2.20.1