Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines for 2023.
[simgrid.git] / examples / smpi / comm_dynamic_costs / comm-dynamic-cost.cpp
index ee4f053..383eef3 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2006-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2006-2023. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -19,7 +19,7 @@ namespace sg4 = simgrid::s4u;
  * @param src Source host (set by simgrid)
  * @param dst Source host (set by simgrid)
  */
-static double smpi_cost_cb(SmpiOperation op, double size, sg4::Host* src, sg4::Host* dst)
+static double smpi_cost_cb(SmpiOperation op, size_t /*size*/, const sg4::Host* src, const sg4::Host* dst)
 {
   /* some dummy cost that depends on the operation and host */
   static std::unordered_map<std::string, double> read_cost  = {{"Tremblay", 1}, {"Jupiter", 2}};