Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add missing energy.h
authorGabriel Corona <gabriel.corona@loria.fr>
Mon, 11 Jan 2016 12:15:17 +0000 (13:15 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Mon, 11 Jan 2016 12:15:17 +0000 (13:15 +0100)
include/simgrid/plugins/energy.h [new file with mode: 0644]
tools/cmake/DefinePackages.cmake

diff --git a/include/simgrid/plugins/energy.h b/include/simgrid/plugins/energy.h
new file mode 100644 (file)
index 0000000..5c15b78
--- /dev/null
@@ -0,0 +1,22 @@
+/* Copyright (c) 2016. 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. */
+
+#ifndef SIMGRID_PLUGINS_ENERGY_H_
+#define SIMGRID_PLUGINS_ENERGY_H_
+
+#include <xbt/base.h>
+#include <simgrid/forward.h>
+
+SG_BEGIN_DECL()
+
+XBT_PUBLIC(void) sg_energy_plugin_init(void);
+XBT_PUBLIC(double) sg_host_get_consumed_energy(sg_host_t host);
+XBT_PUBLIC(double) sg_host_get_wattmin_at(sg_host_t host, int pstate);
+XBT_PUBLIC(double) sg_host_get_wattmax_at(sg_host_t host, int pstate);
+
+SG_END_DECL()
+
+#endif
index 53f54d0..6035d65 100644 (file)
@@ -683,6 +683,7 @@ set(headers_to_install
   include/simgrid/s4u/mailbox.hpp  
   include/simgrid/s4u/storage.hpp  
   include/simgrid/s4u.h
+  include/simgrid/plugins/energy.h
   include/simgrid/Host.hpp
   include/smpi/mpi.h
   include/smpi/smpi.h