-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Generic OpenCL kernels are broken #1960
Comments
For additional data, with the OMP and OCL backends, the same baseline tests fail without the
88 GPU tests passed, so again, more working than not, but still not really working. |
Intel(R) UHD Graphics 630 support was discontinued and the last driver update published in the end of 2022. oneDNN dropped support for GEN9 in v3.4 release. Looks like we neglected to drop GEN9 from the ISA list though. Trying your patch on newer architecture (Xe-HPC) I see 'could not create a primitive' errors for some tests. This looks like empty ISA list results in issues with platform detection and/or kernel dispatching. If you want to make |
The documentation doesn't claim that, it says that If there is a need to introduce generic OpenCL kernels then I believe that best way to do that would be via introducing a generic GPU vendor ( The |
It's also important to note that there are no "generic OpenCL kernels" in oneDNN. These are relying on Intel vendor extensions. We are working on SYCL-based cross-platform implementation currently as part of UXL Foundation initiative. |
The build documentation claims that generic OpenCL kernels are always available. I wanted to verify that they worked, and the straightforward way to do that seemed to be this:
And that builds! And it works more than it doesn't! With the Intel oneAPI 2024.1 DPC++ compiler, I built
3c0e1f1635c81ae9074f2deeff9977a2a8ef149d
with the above patch, SYCL CPU and GPU backends. (I am not using the OpenCL driver from the oneAPI release. I am using Fedora 40's build of the Intel Compute Runtime,intel-compute-runtime-24.09.28717.17-1.fc40.x86_64
. I don't expect that matters much here, but I can try with a different version if it helps.)With the normal build, ctest says:
Then, I rebuilt with
DNNL_ENABLE_PRIMITIVE_GPU_ISA
set toNONE
, and ctest said:So 93 new failures. 107 GPU tests did pass, though, so it seems like this should work. This is on a gen9 GPU, specifically:
Since GEN9 is the lowest ISA specifically supported this suggests that some of the generic OpenCL kernels are broken.
The text was updated successfully, but these errors were encountered: