Skip to content

Commit

Permalink
Merge pull request #12 from altor/release_0.4
Browse files Browse the repository at this point in the history
Release 0.4
  • Loading branch information
altor authored Jul 15, 2019
2 parents 7424db4 + 1b8642a commit d4fd236
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM powerapi/powerapi:0.4.0
FROM powerapi/powerapi:0.6.1

WORKDIR /opt/rapl_formula
USER powerapi
Expand Down
4 changes: 1 addition & 3 deletions rapl_formula/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,5 @@
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""
from rapl_formula.rapl_formula_actor import RAPLFormulaActor
from rapl_formula.rapl_handlers import RAPLHandler

__version__ = "0.3.0"
__version__ = "0.4.0"
10 changes: 0 additions & 10 deletions rapl_formula/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ class BadActorInitializationError(Exception):


def launch_powerapi(config, logger):
##########################################################################
# Actor Creation

# Pusher
pushers = generate_pushers(config)
Expand All @@ -75,9 +73,6 @@ def launch_powerapi(config, logger):
report_filter.filter(lambda msg: True, dispatcher)
pullers = generate_pullers(config, report_filter)

##########################################################################
# Actor start step

# Setup signal handler
def term_handler(_, __):
for _, puller in pullers.items():
Expand Down Expand Up @@ -110,14 +105,9 @@ def term_handler(_, __):
logger.error('Actor initialisation error, reason : ' + exn.message)
supervisor.kill_actors()

##########################################################################
# Actor run step

# wait
supervisor.join()

##########################################################################


def main(args=None):
"""
Expand Down
4 changes: 2 additions & 2 deletions rapl_formula/rapl_formula_actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from functools import reduce

from powerapi.actor import Actor, SocketInterface
from powerapi.formula import FormulaActor, FormulaState
from powerapi.formula import FormulaActor, FormulaState, FormulaPoisonPillMessageHandler
from powerapi.handler import PoisonPillMessageHandler
from powerapi.message import PoisonPillMessage
from powerapi.report import HWPCReport
Expand Down Expand Up @@ -81,5 +81,5 @@ def setup(self):
Setup the RAPL formula.
"""
FormulaActor.setup(self)
self.add_handler(PoisonPillMessage, PoisonPillMessageHandler(self.state))
self.add_handler(PoisonPillMessage, FormulaPoisonPillMessageHandler(self.state))
self.add_handler(HWPCReport, RAPLHandler(self.state))
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ license = BSD 3-Clause License
classifiers =
Programming Language :: Python :: 3.7
License :: OSI Approved :: BSD License
# Framework :: PowerAPI
[options]
zip_safe = False
Expand All @@ -23,7 +22,7 @@ test_suite = tests
setup_requires =
pytest-runner >=3.9.2
install_requires =
powerapi >= 0.4.0
powerapi >= 0.6.1
tests_require =
pytest >=3.9.2
mock >=2.0
Expand Down

0 comments on commit d4fd236

Please sign in to comment.