Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
nrm
Commits
a9afb86e
Commit
a9afb86e
authored
Jun 26, 2019
by
Valentin Reis
Browse files
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
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