Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Expetator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sepia-pub
Expetator
Commits
80eb0f88
Commit
80eb0f88
authored
4 years ago
by
Georges Da Costa
Browse files
Options
Downloads
Patches
Plain Diff
Adds some documentation
parent
cc122d3c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
leverages/README.md
+38
-0
38 additions, 0 deletions
leverages/README.md
leverages/dvfs_pct.sh
+8
-0
8 additions, 0 deletions
leverages/dvfs_pct.sh
with
46 additions
and
0 deletions
leverages/README.md
0 → 100644
+
38
−
0
View file @
80eb0f88
# Documentation for leverages
Classical skeleton
class Leverage:
'Skeleton for leverages'
def __init__(self, leverage_argument):
'Mainly used to store arguments'
pass
def build(self, executor):
'Used to build the binary or obtain information on the plateform'
pass
def available_states(self):
'Returns the list of avaiable states'
return [None]
def start(self, state):
'Use the leverage with the state in argument'
pass
def stop(self,output_file=None):
'Stops the leverage and, if needed, write info in an output file'
pass
def get_state(self):
'Retuns the current state in internal format'
return None
def state_to_str(self):
'Returns the current state in string format'
return 'None'
def get_labels(self):
'Retuns the string associated with the states'
return 'Leverage'
This diff is collapsed.
Click to expand it.
leverages/dvfs_pct.sh
+
8
−
0
View file @
80eb0f88
...
@@ -48,6 +48,9 @@ set_pct () {
...
@@ -48,6 +48,9 @@ set_pct () {
# echo $PCT | ${SUDO} tee /sys/devices/system/cpu/intel_pstate/max_perf_pct
# echo $PCT | ${SUDO} tee /sys/devices/system/cpu/intel_pstate/max_perf_pct
}
}
set_noboost
()
{
echo
$NOBOOST
|
tee
/sys/devices/system/cpu/intel_pstate/no_turbo
}
if
[
$1
==
'init'
]
if
[
$1
==
'init'
]
then
then
...
@@ -67,3 +70,8 @@ then
...
@@ -67,3 +70,8 @@ then
PCT
=
$2
PCT
=
$2
set_pct
set_pct
fi
fi
if
[
$1
==
'noboost'
]
then
NOBOOST
=
$2
set_noboost
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment