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
nixos/manual: add a section about enabling OpenCL for AMD GPUs #93290
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Is it worth mentioning how to use rocm-runtime-ext
without installing it system-wide? Especially since the documentation describes how to use the OpenCL driver without installing it system-wide, we may as well say how to enable image support that way, too.
7d9a2e9
to
a2515de
Compare
Great idea. It's also nice for testing. I patched |
Nice read. Does it make sense to add a command that checks image support (sth like |
That would be a nice addition, I'll add that after work. |
- Begin a new chapter "GPU Acceleration", this should also cover VA-API, OpenGL, Vulkan, etc. - Add a general blurb about OpenCL and how to check whether OpenCL devices are found. - Add a section about enabling OpenCL for AMD GPUs specifically.
a2515de
to
45edd3b
Compare
Added! |
It is also possible to use the OpenCL Image extension without a | ||
system-wide installation of the <package>rocm-runtime-ext</package> | ||
package by setting the <varname>ROCR_EXT_DIR</varname> environment | ||
variable to the directory that contains the extension: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this handled by the setup-hook.sh
for rocm-runtime-ext
? If you enter a nix-shell
with it as a dependency, the environment variable should be set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nix-shell
should probably not be recommended for such purposes, since it 'pollutes' the environment with other things (e.g. propagated build inputs). It probably makes most sense to just remove the hook. Such hooks are intended to be used at build time by packages that depend on a package, which is not the case here.
Motivation for this change
VA-API, OpenGL, Vulkan, etc.
devices are found.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)