Skip to content

Add tips about getting gpu-burn to compile #1279

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

Merged
merged 2 commits into from
Mar 7, 2025

Conversation

raxod502
Copy link
Contributor

@raxod502 raxod502 commented Mar 6, 2025

  • Creating files manually in the root filesystem should be avoided if it is not necessary. In the case of these instructions, setting the CUDAPATH variable when building gpu-burn suffices as a replacement; furthermore, the APT alternatives system automatically creates a symbolic link that avoids the need to hardcode a specific version number here.
  • Explain how to pass a different GCC compiler path to the Makefile for the gpu-burn project, to avoid compilation errors that occur with the version of GCC that is shipped with Pop!_OS 20.04 by default.

@jacobgkau jacobgkau requested review from a team March 6, 2025 19:14
@jacobgkau jacobgkau self-assigned this Mar 6, 2025
Copy link
Member

@jacobgkau jacobgkau left a comment

Choose a reason for hiding this comment

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

This is an excellent contribution. Providing the CUDA path as a Make argument is a simpler solution than creating a symlink in /usr/.

However, while testing this on the Pop!_OS 24.04 alpha, I found that the deprecated system76-cuda-latest package is not available there. Our recommended replacement, Ubuntu's nvidia-cuda-toolkit package, is available for 24.04, as well as 22.04 and 20.04. On all three of those platforms, installing only that package allows gpu-burn to compile successfully without needing to specify the CUDA path. Therefore, it will be simpler to just switch this article to use that package name instead.

Regarding the GCC version, I replicated the issue requiring installing and specifying a non-default version on 22.04 (which includes GCC 11.4 by default). On 20.04 and 24.04, which include GCC 9.3 and 13.3 by default, respectively, gpu-burn compiled by default without needing to switch the GCC version. With that in mind, I'm going to slightly restructure that information to be more pro-active but also to specify which OS version it applies to.

Copy link
Contributor

@thomas-zimmerman thomas-zimmerman left a comment

Choose a reason for hiding this comment

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

Looks good in live testing. A somewhat fresh 22.04 Pop!OS install didn't need the GCC (g++-10) version install for make to just work.

@thomas-zimmerman thomas-zimmerman merged commit a199179 into system76:master Mar 7, 2025
3 checks passed
@raxod502 raxod502 deleted the patch-1 branch March 7, 2025 23:36
@raxod502
Copy link
Contributor Author

raxod502 commented Mar 7, 2025

Beautiful, thank you so much! Really appreciate y'all's work, and the improvements to my text.

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.

None yet

3 participants