Bug 1212193

Summary: clinfo returns core dumped
Product: [openSUSE] openSUSE Tumbleweed Reporter: Archer Allstars <95kreaninw95>
Component: OtherAssignee: E-mail List <screening-team-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: 95kreaninw95, noreply.section+dev, patrik.jakobsson, wapafe2713
Version: Current   
Target Milestone: ---   
Hardware: 64bit   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Archer Allstars 2023-06-10 06:17:48 UTC
clinfo returns:

> Abort was called at 36 line in file:
> /home/abuild/rpmbuild/BUILD/compute-runtime-23.13.26032.30/shared/source/built_ins/built_ins.cpp
> Aborted (core dumped)

This used to work before. 

- clinfo version: 3.0.23.01.25-1.2
- intel-opencl version: 23.13.26032.30-1.1
Comment 1 wapafe 2023-06-13 10:04:52 UTC
libigc1 1.0.13700.14-1.2
libSPIRV-Tools-2023_3_rc1 2023.3~rc1-1.1

Abort was called at 36 line in file:
/home/abuild/rpmbuild/BUILD/compute-runtime-23.13.26032.30/shared/source/built_ins/built_ins.cpp
Aborted (core dumped)

Process 17465 (clinfo) of user 1000 dumped core.

Stack trace of thread 17465:
#0  0x00007fbb8b51fa7c __pthread_kill_implementation (libc.so.6 + 0x8fa7c)
#1  0x00007fbb8b4ce226 raise (libc.so.6 + 0x3e226)
#2  0x00007fbb8b4b6897 abort (libc.so.6 + 0x26897)
#3  0x00007fbb8a45d041 n/a (libigdrcl.so + 0x5d041)
#4  0x00007fbb8a49d55b n/a (libigdrcl.so + 0x9d55b)
#5  0x00007fbb8a93aa23 n/a (libigdrcl.so + 0x53aa23)
#6  0x00007fbb8b522ecf __pthread_once_slow (libc.so.6 + 0x92ecf)
#7  0x00007fbb8a93a6c4 n/a (libigdrcl.so + 0x53a6c4)
#8  0x00007fbb8a93b3f0 n/a (libigdrcl.so + 0x53b3f0)
#9  0x00007fbb8a93c122 n/a (libigdrcl.so + 0x53c122)
#10 0x00007fbb8a516fca n/a (libigdrcl.so + 0x116fca)
#11 0x00007fbb8a4bc8c5 n/a (libigdrcl.so + 0xbc8c5)
#12 0x00007fbb8a4bcc63 clIcdGetPlatformIDsKHR (libigdrcl.so + 0xbcc63)
#13 0x00007fbb8b699ed9 n/a (libOpenCL.so.1 + 0xced9)
#14 0x00007fbb8b69e5a6 n/a (libOpenCL.so.1 + 0x115a6)
#15 0x00007fbb8b69e9d4 clGetPlatformIDs (libOpenCL.so.1 + 0x119d4)
#16 0x00005625e8d7851c n/a (clinfo + 0x951c)
#17 0x00007fbb8b4b7bb0 __libc_start_call_main (libc.so.6 + 0x27bb0)
#18 0x00007fbb8b4b7c79 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x27c79)
#19 0x00005625e8d7b375 n/a (clinfo + 0xc375)

Stack trace of thread 17466:
#0  0x00007fbb8b51a1ce __futex_abstimed_wait_common (libc.so.6 + 0x8a1ce)
#1  0x00007fbb8b51cf10 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x8cf10)
#2  0x00007fbb8a99b3aa n/a (libigdrcl.so + 0x59b3aa)
#3  0x00007fbb8b51dc24 start_thread (libc.so.6 + 0x8dc24)
#4  0x00007fbb8b5a5510 __clone3 (libc.so.6 + 0x115510)
ELF object binary architecture: AMD x86-64

Old version from http://download.opensuse.org/history/20230601/tumbleweed/repo/oss/x86_64/ works fine:

> sudo zypper install --oldpackage libigc1-1.0.13230.7-1.1.x86_64.rpm libSPIRV-Tools-2023_2-2023.2-1.1.x86_64.rpm

> clinfo

Number of platforms                               1
  Platform Name                                   Intel(R) OpenCL HD Graphics
  Platform Vendor                                 Intel(R) Corporation
  Platform Version                                OpenCL 3.0 
..
  Platform Name                                   Intel(R) OpenCL HD Graphics
Number of devices                                 1
  Device Name                                     Intel(R) UHD Graphics 630
  Device Vendor                                   Intel(R) Corporation
  Device Vendor ID                                0x8086
  Device Version                                  OpenCL 3.0 NEO 
  Driver Version                                  23.13.026032
  Device OpenCL C Version                         OpenCL C 1.2 
..
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Non-uniform work-groups                       Yes
    Work-group collective functions               Yes
    Sub-group independent forward progress        Yes
    IL version                                    SPIR-V_1.2 
    ILs with version                              SPIR-V                                                           0x402000 (1.2.0)
    SPIR versions                                 1.2
Comment 2 Archer Allstars 2023-06-13 23:50:48 UTC
I also reported this issue on Intel's compute-runtime GitHub repo: https://github.com/intel/compute-runtime/issues/651
Comment 3 Patrik Jakobsson 2023-06-14 07:00:45 UTC
Thanks for the report.

Are you both running this on a KBL GPU?

I'm able to reproduce this on a KBL GPU but not on a DG2 GPU. There is a newer version of IGC release. Let me give that a try.
Comment 4 wapafe 2023-06-14 09:17:03 UTC
(In reply to Patrik Jakobsson from comment #3)
> Are you both running this on a KBL GPU?

Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] arch: Gen-9.5
Comment 5 Patrik Jakobsson 2023-06-14 09:37:11 UTC
Updating IGC to version 1.0.13822.6 fixes the issue for me on KBL.

Can you please try the new packages I've built from from: https://build.opensuse.org/project/show/home:patrikjakobsson:branches:X11:XOrg
Comment 6 Archer Allstars 2023-06-15 05:06:08 UTC
@Patrik Jakobsson

I added your repo, but I can't seem to update the IGC version in your repo. I did sudo zypper refresh and everything, but IGC didn't do the update/upgrade.
Comment 7 Patrik Jakobsson 2023-06-15 11:35:34 UTC
Ok then, let's try again.
I've created a separate project for this fix so lets use that instead.

Remove the old repo:
$ zypper rr home_patrikjakobsson_branches_X11_XOrg

Add the new repo:
$ zypper ar https://download.opensuse.org/repositories/home:/patrikjakobsson:/bsc1212193/openSUSE_Tumbleweed/home:patrikjakobsson:bsc1212193.repo

Refresh:
$ zypper ref

Update the packages:
$ zypper in --from home_patrikjakobsson_bsc1212193 intel-opencl libigc1 libigdfcl1 libopencl-clang11

That should hopefully give you a working clinfo.
Comment 8 Luca Billi 2023-06-15 12:21:20 UTC
Having the same problem here.

Installing intel-opencl from home:patrikjakobsson:branches:X11:XOrg fixes it!
Comment 9 Patrik Jakobsson 2023-06-15 12:24:34 UTC
(In reply to Luca Billi from comment #8)
> Having the same problem here.
> 
> Installing intel-opencl from home:patrikjakobsson:branches:X11:XOrg fixes it!

Ok, that's good new. I'll submit the update to factory so that it will land in tumbleweed soon.
Comment 10 Archer Allstars 2023-06-17 06:55:19 UTC
The latest snapshot on openSUSE Tumbleweed fixed this issue.