Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 859886 - dev-util/intel-graphics-compiler-1.0.11485[-r1] broken with Xe-LP GPUs
Summary: dev-util/intel-graphics-compiler-1.0.11485[-r1] broken with Xe-LP GPUs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jan Henke
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-21 23:08 UTC by Freddie Witherden
Modified: 2022-09-26 10:07 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Freddie Witherden 2022-07-21 23:08:00 UTC
Since upgrading to =dev-util/intel-graphics-compiler-1.0.11485 from intel-graphics-compiler-1.0.11378 I am unable to launch any OpenCL kernels on my Tigerlake system (integrated Xe-LP GPU).  I have confirmed the issue is with the compiler and not the runtime.  (A good source of OpenCL kernels for testing is to run clpeak from https://github.com/krrishnarraj/clpeak).

Suspicion is that it may be because the newer compiler links against LLVM 14 whereas the older one is pinned to LLVM 13.

Reproducible: Always
Comment 1 Conrad Kostecki gentoo-dev 2022-07-24 22:10:41 UTC
(In reply to Freddie Witherden from comment #0)
> Since upgrading to =dev-util/intel-graphics-compiler-1.0.11485 from
> intel-graphics-compiler-1.0.11378

Are we talking about -r1 or non -r1?

I don't have Iris, but my Skylake GPU seems to work just fine.
Comment 2 Freddie Witherden 2022-07-24 22:33:25 UTC
(In reply to Conrad Kostecki from comment #1)
> (In reply to Freddie Witherden from comment #0)
> > Since upgrading to =dev-util/intel-graphics-compiler-1.0.11485 from
> > intel-graphics-compiler-1.0.11378
> 
> Are we talking about -r1 or non -r1?

-r1.
Comment 3 Conrad Kostecki gentoo-dev 2022-07-24 22:53:09 UTC
Well, in this case, I would like you to ask to fill a bug report for you GPU at Github for intel-graphics-compiler, since this doesn't seem to affect all GPUs. I will revert back to LLVM13, as I can't do more here.
Comment 4 Freddie Witherden 2022-07-28 19:39:08 UTC
(In reply to Conrad Kostecki from comment #3)
> Well, in this case, I would like you to ask to fill a bug report for you GPU
> at Github for intel-graphics-compiler, since this doesn't seem to affect all
> GPUs. I will revert back to LLVM13, as I can't do more here.

Can do.  Would you be able to revert back to LLVM13 first so I can see if this resolves the issue?  Makes it easier to pin down where the problem might be.
Comment 5 Conrad Kostecki gentoo-dev 2022-08-01 19:30:11 UTC
(In reply to Freddie Witherden from comment #4)
> (In reply to Conrad Kostecki from comment #3)
> > Well, in this case, I would like you to ask to fill a bug report for you GPU
> > at Github for intel-graphics-compiler, since this doesn't seem to affect all
> > GPUs. I will revert back to LLVM13, as I can't do more here.
> 
> Can do.  Would you be able to revert back to LLVM13 first so I can see if
> this resolves the issue?  Makes it easier to pin down where the problem
> might be.

Please downgrade to version without -r1, test and report back.
Comment 6 Freddie Witherden 2022-08-01 22:00:56 UTC
(In reply to Conrad Kostecki from comment #5)
> (In reply to Freddie Witherden from comment #4)
> > (In reply to Conrad Kostecki from comment #3)
> > > Well, in this case, I would like you to ask to fill a bug report for you GPU
> > > at Github for intel-graphics-compiler, since this doesn't seem to affect all
> > > GPUs. I will revert back to LLVM13, as I can't do more here.
> > 
> > Can do.  Would you be able to revert back to LLVM13 first so I can see if
> > this resolves the issue?  Makes it easier to pin down where the problem
> > might be.
> 
> Please downgrade to version without -r1, test and report back.

Works with non -r1 (which pulled in LLVM 13).
Comment 7 Conrad Kostecki gentoo-dev 2022-08-01 22:13:26 UTC
Please report this to upstream then.
Comment 8 Freddie Witherden 2022-08-01 22:45:54 UTC
(In reply to Conrad Kostecki from comment #7)
> Please report this to upstream then.

From upstream:

https://github.com/intel/intel-graphics-compiler/blob/master/documentation/build_ubuntu.md

where they note:

> LLVM12/Clang12 to LLVM14/Clang14
>
> Experimental Currently there are none LLVM12+/Clang12+ conformance/performance guarantees.

with only LLVM 11 being listed as Production grade.

Given this is not the first LLVM related issue dev-util/intel-graphics-compiler has had, I think it might be worth investigating the feasibility of bundling/doing a local checkout of their recommended LLVM version (as Gentoo is pretty aggressive at removing older versions whereas upstream hangs onto them for years).
Comment 9 Conrad Kostecki gentoo-dev 2022-08-02 06:52:54 UTC
Yes, I am aware of that. But this is related to Ubuntu, as they still support Ubuntu 18.04. LLVM13+ is supported. Despite, LLVM11 and LLVM12 are last-rited.

Again, I would kindly ask, that you please report this to upstream, since my Skylake GPU works.
Comment 10 rkemp 2022-08-02 14:29:10 UTC
I can confirm I've got the same issue with a Kaby lake gpu (P630).
Fine with llvm13 and not 14.
Comment 11 Conrad Kostecki gentoo-dev 2022-08-02 19:08:34 UTC
(In reply to rkemp from comment #10)
> I can confirm I've got the same issue with a Kaby lake gpu (P630).
> Fine with llvm13 and not 14.

Thank you. I also would like you to report that to upstream.

I will downgrade in the mean time.
Comment 12 Larry the Git Cow gentoo-dev 2022-08-02 19:18:46 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39337db3d4a0020f430c7d9c7500a9f48a288f72

commit 39337db3d4a0020f430c7d9c7500a9f48a288f72
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2022-08-02 19:10:53 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2022-08-02 19:18:26 +0000

    dev-util/intel-graphics-compiler: drop 1.0.11485-r1
    
    Closes: https://bugs.gentoo.org/859886
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 .../intel-graphics-compiler-1.0.11485-r1.ebuild    | 91 ----------------------
 1 file changed, 91 deletions(-)
Comment 13 rkemp 2022-08-03 14:52:33 UTC
Looks like this issue has been raised already
https://github.com/intel/intel-graphics-compiler/issues/245