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 OpenCL support #21995

Merged
merged 8 commits into from Jan 20, 2017
Merged

Fix OpenCL support #21995

merged 8 commits into from Jan 20, 2017

Conversation

abbradar
Copy link
Member

Motivation for this change

This makes OpenCL work properly on NixOS. ocl-icd now searches for .icd vendor files in /run/opengl-drivers{,32}/etc/OpenCL/vendors. This means that you can add OpenCL drivers to hardware.opengl.extraPackages{,32} and have them available.

Also moved Nvidia .icd file to the right place.

This was tested with Beignet and opencl-info (both architectures); seem to work fine.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

cc @kierdavis

@abbradar abbradar merged commit d75a3cf into NixOS:master Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant