Browse Source

Rather use S4U's sg_host_self than MSG_host_self

Samuel Thibault 5 years ago
parent
commit
0bd3e2cead
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/core/simgrid.c
  2. 1 1
      src/drivers/opencl/driver_opencl.c

+ 1 - 1
src/core/simgrid.c

@@ -592,7 +592,7 @@ void _starpu_simgrid_submit_job(int workerid, struct _starpu_job *j, struct star
 
 	simgrid_task = MSG_task_create(_starpu_job_get_task_name(j),
 #if defined(HAVE_SG_HOST_SPEED) || defined(sg_host_speed)
-			length/1000000.0*sg_host_speed(MSG_host_self()),
+			length/1000000.0*sg_host_speed(sg_host_self()),
 #elif defined HAVE_MSG_HOST_GET_SPEED || defined(MSG_host_get_speed)
 			length/1000000.0*MSG_host_get_speed(MSG_host_self()),
 #else

+ 1 - 1
src/drivers/opencl/driver_opencl.c

@@ -966,7 +966,7 @@ static int _starpu_opencl_start_job(struct _starpu_job *j, struct _starpu_worker
 			struct starpu_profiling_task_info *profiling_info = task->profiling_info;
 			STARPU_ASSERT_MSG(profiling_info->used_cycles, "Application kernel must call starpu_opencl_collect_stats to collect simulated time");
 #if defined(HAVE_SG_HOST_SPEED) || defined(sg_host_speed)
-			length = ((double) profiling_info->used_cycles)/sg_host_speed(MSG_host_self());
+			length = ((double) profiling_info->used_cycles)/sg_host_speed(sg_host_self());
 #elif defined HAVE_MSG_HOST_GET_SPEED || defined(MSG_host_get_speed)
 			length = ((double) profiling_info->used_cycles)/MSG_host_get_speed(MSG_host_self());
 #else