From: Martin Quinson Date: Wed, 4 May 2016 20:48:16 +0000 (+0200) Subject: Kill host simcalls (deprecated, unused) X-Git-Tag: v3_14~1275 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5811ded710c22d5cdc908db44b8282519e4f543e?hp=4e3c3980b7a4ec124a3ddc3ee8d7822f4048fdeb Kill host simcalls (deprecated, unused) --- diff --git a/include/simgrid/simix.h b/include/simgrid/simix.h index aa4ba626f7..ce3e6c5ee9 100644 --- a/include/simgrid/simix.h +++ b/include/simgrid/simix.h @@ -272,13 +272,8 @@ XBT_PUBLIC(void) SIMIX_comm_finish(smx_synchro_t synchro); XBT_PUBLIC(void) simcall_call(smx_process_t process); /******************************* Host simcalls ********************************/ -/* TODO use handlers and keep sg_host_t hidden from higher levels */ -XBT_PUBLIC(xbt_swag_t) simcall_host_get_process_list(sg_host_t host); XBT_PUBLIC(void) simcall_host_set_data(sg_host_t host, void *data); -XBT_PUBLIC(double) simcall_host_get_current_power_peak(sg_host_t host); -XBT_PUBLIC(double) simcall_host_get_power_peak_at(sg_host_t host, int pstate_index); - XBT_PUBLIC(smx_synchro_t) simcall_execution_start(const char *name, double flops_amount, double priority, double bound, unsigned long affinity_mask); @@ -298,11 +293,6 @@ XBT_PUBLIC(void) simcall_execution_set_bound(smx_synchro_t execution, double bou XBT_PUBLIC(void) simcall_execution_set_affinity(smx_synchro_t execution, sg_host_t host, unsigned long mask); XBT_PUBLIC(e_smx_state_t) simcall_execution_wait(smx_synchro_t execution); -XBT_PUBLIC(xbt_dict_t) simcall_host_get_mounted_storage_list(sg_host_t host); -XBT_PUBLIC(xbt_dynar_t) simcall_host_get_attached_storage_list(sg_host_t host); -XBT_PUBLIC(void) simcall_host_get_params(sg_host_t vm, vm_params_t param); -XBT_PUBLIC(void) simcall_host_set_params(sg_host_t vm, vm_params_t param); - /******************************* VM simcalls ********************************/ // Create the vm_workstation at the SURF level XBT_PUBLIC(void*) simcall_vm_create(const char *name, sg_host_t host); diff --git a/src/simix/libsmx.cpp b/src/simix/libsmx.cpp index 4d12952d8c..7924a4f5f8 100644 --- a/src/simix/libsmx.cpp +++ b/src/simix/libsmx.cpp @@ -40,57 +40,7 @@ void simcall_call(smx_process_t process) } } -// ***** Host simcalls -// Those functions are replaced by methods on the Host object. - -/** \ingroup simix_host_management - * \deprecated */ -xbt_swag_t simcall_host_get_process_list(sg_host_t host) -{ - return host->processes(); -} - -/** \ingroup simix_host_management - * \deprecated */ -double simcall_host_get_current_power_peak(sg_host_t host) -{ - return host->currentPowerPeak(); -} - -/** \ingroup simix_host_management - * \deprecated */ -double simcall_host_get_power_peak_at(sg_host_t host, int pstate_index) -{ - return host->powerPeakAt(pstate_index); -} - -/** \deprecated */ -void simcall_host_get_params(sg_host_t vm, vm_params_t params) -{ - vm->parameters(params); -} - -/** \deprecated */ -void simcall_host_set_params(sg_host_t vm, vm_params_t params) -{ - vm->setParameters(params); -} - -/** \ingroup simix_storage_management - * \deprecated */ -xbt_dict_t simcall_host_get_mounted_storage_list(sg_host_t host) -{ - return host->mountedStoragesAsDict(); -} - -/** \ingroup simix_storage_management - * \deprecated */ -xbt_dynar_t simcall_host_get_attached_storage_list(sg_host_t host) -{ - return host->attachedStorages(); -} - -// ***** Other simcalls +// ***** AS simcalls /** * \ingroup simix_host_management diff --git a/src/smpi/smpi_comm.cpp b/src/smpi/smpi_comm.cpp index 3513ba66ff..eef72d0038 100644 --- a/src/smpi/smpi_comm.cpp +++ b/src/smpi/smpi_comm.cpp @@ -382,7 +382,7 @@ void smpi_comm_init_smp(MPI_Comm comm){ } //identify neighbours in comm //get the indexes of all processes sharing the same simix host - xbt_swag_t process_list = simcall_host_get_process_list(SIMIX_host_self()); + xbt_swag_t process_list = SIMIX_host_self()->processes(); int intra_comm_size = 0; //only one process/node, disable SMP support and return // if(intra_comm_size==1){ diff --git a/src/smpi/smpi_dvfs.cpp b/src/smpi/smpi_dvfs.cpp index c5d9142d9a..1ab64e03a2 100644 --- a/src/smpi/smpi_dvfs.cpp +++ b/src/smpi/smpi_dvfs.cpp @@ -20,7 +20,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_dvfs, smpi, "Logging specific to SMPI (expe */ double smpi_get_host_power_peak_at(int pstate_index) { - return simcall_host_get_power_peak_at(SIMIX_host_self(), pstate_index); + return SIMIX_host_self()->powerPeakAt(pstate_index); } /** @@ -30,7 +30,7 @@ double smpi_get_host_power_peak_at(int pstate_index) */ double smpi_get_host_current_power_peak(void) { - return simcall_host_get_current_power_peak(SIMIX_host_self()); + return SIMIX_host_self()->currentPowerPeak(); } /**