Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
einsteinathome
boinc
Commits
4cb34a12
Commit
4cb34a12
authored
Jul 05, 2013
by
David Anderson
Browse files
client: don't apply CPU throttling to apps that use < .5 CPUs (like GPU, NCI)
parent
417b26c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
client/app_control.cpp
View file @
4cb34a12
...
...
@@ -1059,9 +1059,10 @@ void ACTIVE_TASK_SET::suspend_all(int reason) {
if
(
reason
==
SUSPEND_REASON_CPU_THROTTLE
)
{
if
(
atp
->
result
->
dont_throttle
())
continue
;
// if we're doing CPU throttling,
// don't suspend
CPU
apps that use <
1
CPU
// don't suspend apps that use <
.5
CPU
(like GPU and NCI apps)
//
if
(
!
atp
->
result
->
uses_coprocs
()
&&
atp
->
app_version
->
avg_ncpus
<
1
)
continue
;
if
(
atp
->
app_version
->
avg_ncpus
<
.5
)
continue
;
atp
->
preempt
(
REMOVE_NEVER
);
continue
;;
}
...
...
Write
Preview
Supports
Markdown
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