public void main(String[] args) throws MsgException {
int i = 1;
while(!Main.isEndOfTest()) {
- // TODO the binding is not yet available
try {
currentTask.execute();
} catch (HostFailureException e) {
struct event* socket_event_ = nullptr;
struct event* signal_event_ = nullptr;
/** String pool for host names */
- // TODO, use std::set with heterogeneous comparison lookup (C++14)?
std::set<std::string> hostnames_;
// This is the parent snapshot of the current state:
PageStore page_store_{500};
*ierr= MPI_File_write(reinterpret_cast<MPI_File>(*fh), buf, *count, simgrid::smpi::Datatype::f2c(*datatype), status);
}
+void smpi_execute_flops_(double* flops){
+ smpi_execute_flops(*flops);
+}
+
+void smpi_execute_(double* duration){
+ smpi_execute(*duration);
+}
+
+void smpi_execute_benched_(double* duration){
+ smpi_execute_benched(*duration);
+}
+
} // extern "C"
void mpi_file_read_(int* fh, void* buf, int* count, int* datatype, MPI_Status* status, int* ierr);
void mpi_file_write_(int* fh, void* buf, int* count, int* datatype, MPI_Status* status, int* ierr);
void smpi_init_fortran_types();
+void smpi_execute_flops_(double* flops);
+void smpi_execute_(double* duration);
+void smpi_execute_benched_(double* duration);
} // extern "C"
XBT_PRIVATE int smpi_temp_shm_get();
static void sg_platf_new_link(const simgrid::kernel::routing::LinkCreationArgs* link, const std::string& link_name)
{
+ static double last_warned_latency = sg_surf_precision;
+ if (link->latency != 0.0 && link->latency < last_warned_latency) {
+ XBT_WARN("Latency for link %s is smaller than surf/precision (%g < %g)."
+ " For more accuracy, consider setting \"--cfg=surf/precision:%g\".",
+ link_name.c_str(), link->latency, sg_surf_precision, link->latency);
+ last_warned_latency = link->latency;
+ }
simgrid::kernel::resource::LinkImpl* l =
surf_network_model->create_link(link_name, link->bandwidths, link->latency, link->policy);