Skip to content

Commit

Permalink
Fix GPU resource avaialble check. #135
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoffland committed Apr 14, 2023
1 parent 67cce28 commit 1c632ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Folding@home Client Changelog
=============================

## v8.1.17
- Fix GPU resource avaialble check. #135
- Don't show ``1B of 1B`` for completed up/download size. #130
- Only reset retry count if WU has run for more than 5 minutes. #134

Expand Down
2 changes: 1 addition & 1 deletion src/fah/client/Units.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ void Units::update() {
bool runable = minCPUs <= remainingCPUs || minCPUs < 2;

std::set<string> gpusWithWU = remainingGPUs;
for (auto id: unitGPUs) runable |= gpusWithWU.erase(id);
for (auto id: unitGPUs) runable &= gpusWithWU.erase(id);

if (runable) {
remainingGPUs = gpusWithWU;
Expand Down

0 comments on commit 1c632ee

Please sign in to comment.