1 /* Copyright (c) 2016-2022. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
10 #include "smpi_f2c.hpp"
11 #include "smpi_comm.hpp"
17 // Methods used to parse and store the values for timing injections in smpi
18 struct s_smpi_factor_t {
20 std::vector<double> values;
27 XBT_PUBLIC std::vector<s_smpi_factor_t> parse_factor(const std::string& smpi_coef_string);
28 XBT_PUBLIC void add_benched_time(double time);
29 XBT_PUBLIC void account_malloc_size(size_t size, const std::string& file, int line, void* ptr);
30 XBT_PUBLIC void account_shared_size(size_t size);
31 XBT_PUBLIC void print_time_analysis(double time);
32 XBT_PUBLIC void print_buffer_info();
33 XBT_PUBLIC void print_memory_analysis();
34 XBT_PUBLIC void print_current_handle();
35 XBT_PUBLIC void set_current_handle(F2C* handle);
36 XBT_PUBLIC void set_current_buffer(int i, const char* name, const void* handle);
37 XBT_PUBLIC size_t get_buffer_size(const void* ptr);
38 XBT_PUBLIC void account_free(const void* ptr);
39 XBT_PUBLIC int check_collectives_ordering(MPI_Comm comm, std::string call);
43 } // namespace simgrid