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 intel-compute-runtime / Intel NEO driver stack #63705
Conversation
Marking for review as I think it's nearly ready and it would be good to have feedback. |
Now updated to latest release versions targeting LLVM 8. Tested on unstable (b5f5c97), but something seems to have changed with the openGL rpath handling; before, I thought I had How do we sort this out? Any OpenCL program which loads Neo will need to access the libraries from |
I would love to get some traction on this. |
@gloaming Yes we got rid of |
@gloaming Just to be clear, standard OpenCL programs that don't themselves depend on Intel libraries should be able to work with any OpenCL runtime including this one. If this is not the case, something is wrong and needs to be addressed. I'm not familiar with the details but I'll try to give it a test. |
@ambrop72 Thanks for explaining! Yes, the problem is that the intel runtime itself ( However, I think it would be better to add just the Intel libraries to |
Yes. We only have |
Yes, just add appropriate absolute |
|
This is a bit of an essay. Would it be better to create an issue and replace it with a short comment and a link? |
ping @Mic92 @Ericson2314 |
We need this for intel-compute-runtime, see NixOS#63705
Updated to latest versions, including unstable for |
I'm really excited to see this in nixpkgs! Is there anything stopping this from getting merged? |
@GrahamcOfBorg eval |
Thanks! |
Add intel-compute-runtime / Intel NEO driver stack (cherry picked from commit c0cba22)
…)" (cc-wrapper builds) This reverts commit c3d8c11.
…ixOS#63705)"" This reverts commit 0d83e70.
Not sure if this is the right place to ask but i'm struggling making opencl work: while this PR successfully finds a opencl platform with
however,
am i missing something trivial? |
@mhhf Sorry for the slow response - I'm not aware of anything obvious. Do you also see |
In case anyone is having the same issue, the problem was with |
Motivation for this change
Add
intel-compute-runtime
aka NEO, Intel's new open-source OpenCL GPGPU driver, which replaces Beignet for newer Intel processors.TO INSTALL
Note that this driver may be installed in parallel with
intel-ocl
. The latter provides an OpenCL device for the CPU, not the iGPU; relative performance may differ depending on workload.TODO:
Update to later versions as much as possibleFinalise changes tocc-wrapper.sh
and push them intobuild-support
onstaging
Find a way to automatically make gmmlib and IGC available to the driver instead of requiring the user to add them toopengl.extraPackages
Assess if there is a saner way to package opencl-clang and its patchesPrepare for opencl-clang_8 etc.NOTES
The SPIRV-LLVM-Translator and OpenCL Clang projects have seperate branches and releases depending on LLVM version; I targeted LLVM 7 as that's what we have in release now. On my system I am running these patches rebased ontorelease-19.03
and it appears to be working well.Built largely as per instructions here: https://github.com/JacekDanecki/compute-runtime/wiki/How-to-build-Neo-components-(system-llvm-clang-7)-cc1
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)cc @volth @OpenSourceAnarchist