X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7dbf5c66d75338dce60fd2242be656eaa7e4d2da..26c50cfea1e8e3349786ca38764e4db37d4864bc:/src/smpi/smpi_bench.c diff --git a/src/smpi/smpi_bench.c b/src/smpi/smpi_bench.c index 9dfcdb367e..82a4190d74 100644 --- a/src/smpi/smpi_bench.c +++ b/src/smpi/smpi_bench.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2007, 2009-2014. The SimGrid Team. +/* Copyright (c) 2007, 2009-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -153,12 +153,10 @@ void smpi_execute_(double *duration) void smpi_execute_flops(double flops) { smx_synchro_t action; - sg_host_t host; - host = SIMIX_host_self(); XBT_DEBUG("Handle real computation time: %f flops", flops); - action = simcall_host_execute("computation", host, flops, 1, 0, 0); + action = simcall_process_execute("computation", flops, 1, 0, 0); simcall_set_category (action, TRACE_internal_smpi_get_category()); - simcall_host_execution_wait(action); + simcall_process_execution_wait(action); smpi_switch_data_segment(smpi_process_index()); }