Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gpu #341

Merged
merged 3 commits into from
Nov 28, 2019
Merged

Gpu #341

merged 3 commits into from
Nov 28, 2019

Conversation

Ugo
Copy link

@Ugo Ugo commented Nov 28, 2019

No description provided.

@Ugo Ugo requested review from zguesmi and jeremyjams November 28, 2019 11:09
@@ -177,7 +177,11 @@ public boolean canAcceptMoreWorks(String walletAddress) {

public int getAliveAvailableCpu() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think of making this a mongo query directly?

totalCpus+= worker.getCpuNb();
}
return totalCpus;
}

// We suppose for now that 1 Gpu enabled worker has only one GPU
public int getAliveTotalGpu() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this.

return totalGpus;
}

private int aliveAvailableGpu () {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this.

@Ugo Ugo merged commit d2d64a7 into master Nov 28, 2019
@Ugo Ugo deleted the gpu branch November 28, 2019 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants