Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Do the Right Thing for the host_(get/set)_pstate
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 10 Jan 2016 09:42:16 +0000 (10:42 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 10 Jan 2016 09:42:16 +0000 (10:42 +0100)
commitbe27c3513d2b7d273749db733659600b10dc0a54
tree38d8872a50b724d1b19d754958e1ff00ae7fcdd8
parent7c6dbbace82c3bc6f359a03dde46b677fa1efaaf
Do the Right Thing for the host_(get/set)_pstate

- The prefered public interface is in simgrid::Host
  - the getter directly calls pimpl_cpu->getPState()
  - the setter simcalls to the pimpl, without diverting to simix
  - (this will be automatically forwarded to Java with SWIG one day)
- The C public interface is sg_host_(get/set)_pstate
  - MSG_host_(get/set)_pstate is #defined to this for compatibility
  - SMPI adapts the interface in smpi_host_(get/set)_pstate to make
      the receiver host implicit.
    I don't see the point but don't want to mess with SMPI yet.

One day, the whole of SimGrid will be organized this way. One day.
include/simgrid/Host.hpp
include/simgrid/host.h
include/simgrid/msg.h
include/simgrid/simix.h
src/msg/msg_host.cpp
src/simgrid/host.cpp
src/simix/libsmx.cpp
src/smpi/smpi_dvfs.c