From: Gabriel Corona Date: Mon, 11 Jan 2016 12:15:17 +0000 (+0100) Subject: Add missing energy.h X-Git-Tag: v3_13~1285 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d890aee8041549057832d64359beab700aa9f98c Add missing energy.h --- diff --git a/include/simgrid/plugins/energy.h b/include/simgrid/plugins/energy.h new file mode 100644 index 0000000000..5c15b78fc5 --- /dev/null +++ b/include/simgrid/plugins/energy.h @@ -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 +#include + +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 diff --git a/tools/cmake/DefinePackages.cmake b/tools/cmake/DefinePackages.cmake index 53f54d0e4f..6035d65915 100644 --- a/tools/cmake/DefinePackages.cmake +++ b/tools/cmake/DefinePackages.cmake @@ -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