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

Add PRIME offloading section to NVIDIA tutorial #1155

Open
lebensterben opened this issue May 4, 2020 · 0 comments
Open

Add PRIME offloading section to NVIDIA tutorial #1155

lebensterben opened this issue May 4, 2020 · 0 comments
Labels
help wanted 🙋 Soliciting community contribution. P3 Low Priority

Comments

@lebensterben
Copy link
Contributor

Description

Currently, laptops with NVIDIA Optimus needs disabling the integrated GPU, or otherwise NVIDIA proprietary driver may not work.

Since NVIDIA driver v435.17, Prime offload is supported, such that iGPU is used for display but optionally some intensive jobs could be done on NVIDIA driver, if the user explicitly choose to.

Main benefits

Adding instructions on how to set this up is mainly beneficial to laptop users who cannot disable iGPU in the BIOS. But it also serves the following use cases:

  • A few applications can use NVIDIA GPU(s) for (parallel) GPU computations. But as introduced in MATLAB's documentation:

    In general you can achieve the best performance when your GPU is dedicated to computing. It is usually not practical to use the same GPU device for both computations and graphics, because of the amount of memory taken up for problems of reasonable size and the constant use of the device by the system for graphics. If possible, obtain a separate device for graphics.

    Therefore, it's common for data practitioners to connect display to iGPU. With offloading support, they could fully utilise gpu performance for computations, and meanwhile allow other applications to be rendered by NVIDIA GPU as well.

  • iGPU in general consumes less battery, only offloading selected tasks to NVIDIA GPU prolongs battery life.

Additional notes

  • NVIDIA's documentation says this functionality requires several patches not made into Xorg-server's release as time of writing. But I found they are included in xorg-server-1.20.6. So the documentation should notify the user to use a recent version of Clear Linux and NVIDIA driver.
  • An example as for setting up PRIME offloading with GDM could be found in Manjaro's forum.
  • The documentation could optionally refer users to NVIDIA's documentation for using environment variables to run a program with NVIDIA gpu. Alternatively, download the nvidia-prime script from Arch Linux's nvidia-prime package, and install it somewhere in the PATH ( but not in /usr/bin ).
@lebensterben lebensterben added the P2 Medium Priority label May 4, 2020
@mvincerx mvincerx added help wanted 🙋 Soliciting community contribution. P3 Low Priority and removed help wanted 🙋 Soliciting community contribution. P2 Medium Priority labels May 5, 2020
@mvincerx mvincerx added the help wanted 🙋 Soliciting community contribution. label May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted 🙋 Soliciting community contribution. P3 Low Priority
Projects
None yet
Development

No branches or pull requests

2 participants