[Pkg-opencl-devel] fixing the Intel OpenCL stack

Timo Aaltonen tjaalton at debian.org
Wed Feb 16 14:37:27 GMT 2022


Andreas Beckmann kirjoitti 14.2.2022 klo 18.41:
> Hi,
> 
> I recently started looking into fixing the Intel OpenCL stack 
> (spirv-llvm-translater, intel-opencl-clang, intel-graphics-compiler, 
> intel-compute-runtime). Since intel-graphics-compiler only supports up 
> to llvm-12 (it compiles without error with llvm-13, but crashes when 
> building intel-compute-runtime), I've forked the older versions of 
> spriv-llvm-translator and intel-opencl-clang that were built with 
> llvm-12. They have now passed NEW.

Ah, cool.. yeah I was wondering if stuff should be kept in experimental 
until going to a new llvm version actually worked, but maybe a separate 
source for earch version is better.

> Since spirv-llvm-translater and intel-opencl-clang are tightly coupled 
> to the llvm version used, there is probably no point in having 
> unversioned -dev packages for them - mixing different llvm versions is a 
> source of subtle errors and weird crashes.
> I don't plan to rename spirv-llvm-translater and intel-opencl-clang 
> (which are built against llvm-13), but just add a virtual versioned 
> -13-dev package for them to avoid NEW. When switching to llvm-14, we 
> need to introduce new versioned source packages and NEW processing anyway.
> (The unversined source packages will eventually go away with llvm-13)

Ok, sounds good.

> I've prepared "preview" branches for all 4 source packages. If you don't 
> mind, I'll add myself to the Uploaders and upload them to sid.
> I'm sticking with the versions currently in sid for now. Once 
> intel-opencl-icd is back in testing, I'll look at newer upstream versions.
> (Latest intel-compute-runtime needs a newer intel-graphics-compiler, but 
> that does still not support llvm-13; latest intel-graphics-compiler 
> seems to require the sources of spirv-tools (and maybe -headers, too) to 
> build).

Go ahead.

spirv-headers and -tools are now updated in sid, should fix the igc build.

> For intel-opencl-icd (src:intel-compute-runtime) I'd need help from 
> someone that has the appropriate hardware to use that ICD. I'm not sure 
> how tight the dependency on src:intel-graphics-compiler needs to be. (Or 
> what combinations of igc version, llvm-version used to build igc, 
> default gcc version, libc version) causes crashes.)
> Or is there a way to reproduce #994833 without the hardware?
> 
> Andreas
> 

I have the hardware, though it's running ubuntu jammy.

-- 
t



More information about the Pkg-opencl-devel mailing list