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

fix(gpu): prevent app crash if gpu detect fails #555

Merged
merged 4 commits into from
Sep 23, 2024

Conversation

MCozhusheck
Copy link
Collaborator

Description

On my integrated intel gpu the gpu miner would fail to detect the gpu causing crash of the entire application. This PR only makes it log error and continue working as gpu mining will be disabled.

Motivation and Context

Stop crashing app with unsupported GPUs.

How Has This Been Tested?

Tested manually on my machine (Ubuntu with integrated intel gpu)

What process can a PR reviewer use to test or verify this change?

same as above

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

@MCozhusheck MCozhusheck marked this pull request as ready for review September 20, 2024 13:35
@@ -358,7 +358,15 @@ async fn setup_inner(
.ensure_latest(Binaries::GpuMiner, progress.clone())
.await;

state.gpu_miner.write().await.detect().await?;
drop(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you move it outside if statement so its called every time app starts ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@stringhandler stringhandler merged commit 967f0a6 into tari-project:main Sep 23, 2024
9 checks passed
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.

4 participants