Skip to content

Add clinfo 3.0.21.02.21 #2177

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add clinfo 3.0.21.02.21 #2177

wants to merge 2 commits into from

Conversation

pmenzel
Copy link
Collaborator

@pmenzel pmenzel commented Aug 17, 2021

Depends on OpenCL headers added in merge/pull request #2176.

On Dell Precision 3620 with AMD graphics card:

$ sudo bee install clinfo
installing /src/mariux/beeroot/packages/clinfo-3.0.21.02.21-0.x86_64.bee.tar.bz2 ..
$ clinfo
clinfo: error while loading shared libraries: libOpenCL.so.1: cannot open shared object file: No such file or directory
$ sudo bee install OpenCL-Headers ocl-icd
installing /src/mariux/beeroot/packages/OpenCL-Headers-2021.06.30-0.x86_64.bee.tar.bz2 ..
installing /src/mariux/beeroot/packages/ocl-icd-2.3.0-0.x86_64.bee.tar.bz2 ..
    Conflicts with installed package found: nvidia-mxlinks-0.12-0.x86_64:
        /usr/lib/libOpenCL.so.1
$ sudo bee install OpenCL-Headers ocl-icd
installing /src/mariux/beeroot/packages/OpenCL-Headers-2021.06.30-0.x86_64.bee.tar.bz2 ..
installing /src/mariux/beeroot/packages/ocl-icd-2.3.0-0.x86_64.bee.tar.bz2 ..
    Conflicts with installed package found: nvidia-mxlinks-0.12-0.x86_64:
        /usr/lib/libOpenCL.so.1
$ clinfo
Number of platforms                               1
  Platform Name                                   Clover
  Platform Vendor                                 Mesa
  Platform Version                                OpenCL 1.1 Mesa 21.1.6
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd
  Platform Extensions function suffix             MESA

  Platform Name                                   Clover
Number of devices                                 1
  Device Name                                     AMD Radeon (TM) Pro WX 5100 Graphics (POLARIS10, DRM 3.42.0, 5.14.0-rc6.mx64.396, LLVM 12.0.1)
  Device Vendor                                   AMD
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 1.1 Mesa 21.1.6
  Device Numeric Version                          0x401000 (1.1.0)
  Driver Version                                  21.1.6
  Device OpenCL C Version                         OpenCL C 1.1
  Device Type                                     GPU
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Max compute units                               28
  Max clock frequency                             1086MHz
  Max work item dimensions                        3
  Max work item sizes                             256x256x256
  Max work group size                             256
=== CL_PROGRAM_BUILD_LOG ===
fatal error: cannot open file '/usr/share/clc/polaris10-amdgcn-mesa-mesa3d.bc': No such file or directory
  Preferred work group size multiple (kernel)     <getWGsizes:1504: create kernel : error -46>
  Preferred / native vector sizes                 
    char                                                16 / 16      
    short                                                8 / 8       
    int                                                  4 / 4       
    long                                                 2 / 2       
    half                                                 0 / 0        (n/a)
    float                                                4 / 4       
    double                                               2 / 2        (cl_khr_fp64)
  Half-precision Floating-point support           (n/a)
  Single-precision Floating-point support         (core)
    Denormals                                     No
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 No
    Round to infinity                             No
    IEEE754-2008 fused multiply-add               No
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  No
  Double-precision Floating-point support         (cl_khr_fp64)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Address bits                                    64, Little-Endian
  Global memory size                              8589934592 (8GiB)
  Error Correction support                        No
  Max memory allocation                           6871947673 (6.4GiB)
  Unified memory for Host and Device              No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       32768 bits (4096 bytes)
  Global Memory cache type                        None
  Image support                                   No
  Local memory type                               Local
  Local memory size                               32768 (32KiB)
  Max number of constant args                     16
  Max constant buffer size                        67108864 (64MiB)
  Max size of kernel argument                     1024
  Queue properties                                
    Out-of-order execution                        No
    Profiling                                     Yes
  Profiling timer resolution                      0ns
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    ILs with version                              (n/a)
  Built-in kernels with version                   (n/a)
  Device Extensions                               cl_khr_byte_addressable_store cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp64 cl_khr_extended_versioning
  Device Extensions with Version                  cl_khr_byte_addressable_store                                    0x400000 (1.0.0)
                                                  cl_khr_global_int32_base_atomics                                 0x400000 (1.0.0)
                                                  cl_khr_global_int32_extended_atomics                             0x400000 (1.0.0)
                                                  cl_khr_local_int32_base_atomics                                  0x400000 (1.0.0)
                                                  cl_khr_local_int32_extended_atomics                              0x400000 (1.0.0)
                                                  cl_khr_int64_base_atomics                                        0x400000 (1.0.0)
                                                  cl_khr_int64_extended_atomics                                    0x400000 (1.0.0)
                                                  cl_khr_fp64                                                      0x400000 (1.0.0)
                                                  cl_khr_extended_versioning                                       0x400000 (1.0.0)

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Clover
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [MESA]
  clCreateContext(NULL, ...) [default]            Success [MESA]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
    Platform Name                                 Clover
    Device Name                                   AMD Radeon (TM) Pro WX 5100 Graphics (POLARIS10, DRM 3.42.0, 5.14.0-rc6.mx64.396, LLVM 12.0.1)
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
    Platform Name                                 Clover
    Device Name                                   AMD Radeon (TM) Pro WX 5100 Graphics (POLARIS10, DRM 3.42.0, 5.14.0-rc6.mx64.396, LLVM 12.0.1)
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (1)
    Platform Name                                 Clover
    Device Name                                   AMD Radeon (TM) Pro WX 5100 Graphics (POLARIS10, DRM 3.42.0, 5.14.0-rc6.mx64.396, LLVM 12.0.1)

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.3.0
  ICD loader Profile                              OpenCL 3.0
$ sudo bee update nvidia-mxlinks
installing /src/mariux/beeroot/packages/nvidia-mxlinks-0.13-0.x86_64.bee.tar.bz2 ..
removing nvidia-mxlinks-0.12-0.x86_64 ..
$ clinfo
clinfo: error while loading shared libraries: libOpenCL.so.1: cannot open shared object file: No such file or directory

[Description][1]:

> clinfo is a simple command-line application that enumerates all
> possible (known) properties of the OpenCL platform and devices
> available on the system.
>
> Inspired by AMD's program of the same name, it is coded in pure C and
> it tries to output all possible information, including those provided
> by platform-specific extensions, trying not to crash on unsupported
> properties (e.g. 1.2 properties on 1.1 platforms).

[1]: https://github.com/Oblomov/clinfo
…IR support

    [BEE] make -j80 install PREFIX=/usr EPREFIX=/usr BINDIR=/usr/bin SBINDIR=/usr/sbin LIBEXECDIR=/usr/libexec SYSCONFDIR=/etc SHAREDSTATEDIR=/var LOCALSTATEDIR=/var LIBDIR=/usr/lib INCLUDEDIR=/usr/include DATAROOTDIR=/usr/share DATADIR=/usr/share INFODIR=/usr/share/info LOCALEDIR=/usr/share/locale MANDIR=/usr/share/man DOCDIR=/usr/share/doc/clinfo DESTDIR=/dev/shm/bee-pmenzel/clinfo/clinfo-3.0.21.02.21-0/image
    install -p -m 555 clinfo /usr/bin/clinfo
    install -p -m 444 man1/clinfo.1 /usr/share/man/man1/clinfo.1
    install: cannot create regular file '/usr/bin/clinfo': Permission denied
    make: *** [Makefile:120: /usr/bin/clinfo] Error 1
Sign in to join this conversation on GitHub.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant