return SIMIX_host_get_name(host);
}
-xbt_dict_t SIMIX_host_get_properties(sg_host_t host){
- return sg_host_get_properties(host);
-}
-
-
-xbt_swag_t SIMIX_host_get_process_list(sg_host_t host){
- smx_host_priv_t host_priv = sg_host_simix(host);
-
- return host_priv->process_list;
-}
-
-
double SIMIX_host_get_current_power_peak(sg_host_t host) {
return surf_host_get_current_power_peak(host);
}
return surf_host_get_power_peak_at(host, pstate_index);
}
-void SIMIX_host_set_pstate(sg_host_t host, int pstate_index) {
- surf_host_set_pstate(host, pstate_index);
-}
-double SIMIX_host_get_wattmin_at(sg_host_t host,int pstate) {
- return surf_host_get_wattmin_at(host,pstate);
-}
-double SIMIX_host_get_wattmax_at(sg_host_t host,int pstate) {
- return surf_host_get_wattmax_at(host,pstate);
-}
-
void _SIMIX_host_free_process_arg(void *data)
{
smx_process_arg_t arg = *(smx_process_arg_t*)data;
/* set surf's action */
if (!MC_is_active() && !MC_record_replay_is_active()) {
- synchro->execution.surf_exec = surf_host_execute(issuer->host, flops_amount);
+ synchro->execution.surf_exec = issuer->host->pimpl_cpu->execute(flops_amount);
synchro->execution.surf_exec->setData(synchro);
synchro->execution.surf_exec->setPriority(priority);
/* just a double check to confirm that this host is the host where this task is running. */
xbt_assert(synchro->execution.host == issuer->host);
static_cast<simgrid::surf::CpuAction*>(synchro->execution.surf_exec)
- ->setAffinity(issuer->host->p_cpu, affinity_mask);
+ ->setAffinity(issuer->host->pimpl_cpu, affinity_mask);
}
}
/* just a double check to confirm that this host is the host where this task is running. */
xbt_assert(synchro->execution.host == host);
static_cast<simgrid::surf::CpuAction*>(synchro->execution.surf_exec)
- ->setAffinity(host->p_cpu, mask);
+ ->setAffinity(host->pimpl_cpu, mask);
}
}