Skip to content

clGetPlatformIDs fails with the included Fedora 27 ICD #9

@raunraun

Description

@raunraun

Using the ICD included in Fedora 27 I get the following error from NEO. Beignet, POCL, and AMDGPU Mesa implements all work fine with this ICD

[raun@localhost test]$ gdb clinfo
GNU gdb (GDB) Fedora 8.0.1-35.fc27

(gdb) r
Starting program: /home/raun/test/clinfo
Missing separate debuginfos, use: dnf debuginfo-install glibc-2.26-24.fc27.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
terminate called after throwing an instance of 'cl::Error'
  what():  clGetPlatformIDs

Program received signal SIGABRT, Aborted.
0x00007ffff6c7266b in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: dnf debuginfo-install libgcc-7.2.1-2.fc27.x86_64 libstdc++-7.2.1-2.fc27.x86_64 ocl-icd-2.2.11-4.fc27.x86_64
(gdb) info sharedlibrary
From                To                  Syms Read   Shared Object Library
0x00007ffff7dd5d50  0x00007ffff7df4c50  Yes (*)     /lib64/ld-linux-x86-64.so.2
0x00007ffff7bcf1a0  0x00007ffff7bd26b6  Yes (*)     /lib64/librt.so.1
0x00007ffff787f880  0x00007ffff7928985  Yes (*)     /lib64/libm.so.6
0x00007ffff7674e50  0x00007ffff7675b7e  Yes (*)     /lib64/libdl.so.2
0x00007ffff7458940  0x00007ffff746a848  Yes (*)     /lib64/libOpenCL.so.1
0x00007ffff723fac0  0x00007ffff724fde5  Yes (*)     /lib64/libgcc_s.so.1
0x00007ffff7023b10  0x00007ffff70322d1  Yes (*)     /lib64/libpthread.so.0
0x00007ffff6c5b770  0x00007ffff6dc816c  Yes (*)     /lib64/libc.so.6
0x00007ffff67f7450  0x00007ffff693008a  Yes         /home/raun/workspace/build/bin/libigdrcl.so
0x00007ffff64ea100  0x00007ffff659a7f8  Yes (*)     /lib64/libstdc++.so.6
(*): Shared library is missing debugging information.
(gdb)

clGetPlatformIds is returning -1001. You can see from the gdb log that libigdrcl.so was dynamically loaded by the ICD.

If I build my own ICD from TOT khronos clinfo executes just fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions