Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nrm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
argo
nrm
Commits
a9afb86e
Commit
a9afb86e
authored
Jun 26, 2019
by
Valentin Reis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
type drafts
parent
130783fc
Pipeline
#7889
failed with stages
in 4 minutes and 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
nrm/coolr/clr_rapl.pyi
nrm/coolr/clr_rapl.pyi
+6
-0
nrm/nodemanager.py
nrm/nodemanager.py
+5
-7
No files found.
nrm/coolr/clr_rapl.pyi
View file @
a9afb86e
...
...
@@ -7,3 +7,9 @@ class rapl_reader:
def read_config(self) -> RAPLConfig:
...
def setpcaps(self, control: PcapControl) -> None:
...
def setfrequencies(self, control: FreqControl) -> None:
...
nrm/nodemanager.py
View file @
a9afb86e
...
...
@@ -26,7 +26,7 @@ import nrm.coolr.clr_misc
from
typing
import
Any
,
Dict
,
NamedTuple
from
nrm.types
import
MachineInfo
from
nrm.types
import
MachineInfo
,
FreqControl
,
PcapControl
class
NodeManager
:
...
...
@@ -47,16 +47,14 @@ class NodeManager:
return
MachineInfo
(
energySamples
=
self
.
_rapl
.
sample
(),
tempSamples
=
self
.
_coretemp
.
sample
(),
time
=
time
.
time
()
time
=
time
.
time
()
,
)
def
read_config
(
self
):
self
.
_rapl
.
read_config
()
def
do_control_pcap
(
self
,
PcapControl
)
->
None
:
self
.
_rapl
.
setpcaps
()
pass
def
do_control_pcap
(
self
,
control
:
PcapControl
)
->
None
:
self
.
_rapl
.
setpcaps
(
control
)
def
do_control_ddcm
(
self
,
control
:
FreqControl
)
->
None
:
self
.
_rapl
.
setfrequencies
()
pass
self
.
_rapl
.
setfrequencies
(
control
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment