[Mesa-dev] [Bug 111404] OpenCL device doesn't support "Image support"

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Aug 15 07:31:11 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=111404

            Bug ID: 111404
           Summary: OpenCL device doesn't  support "Image support"
           Product: Mesa
           Version: 18.0
          Hardware: Other
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: shi1986000 at 126.com
        QA Contact: mesa-dev at lists.freedesktop.org

When enumerating OpenCL platforms and devices with the clinfo command, I found
that OpenCL devices (AMD Radeon HD 8470) do not support OpenCL images. 
  I don't understand why this problem occurs. I don't even understand whether
this is a fault in the graphics card itself or the graphics card driver, or
ignore several options when compiling mesa.

*********************************************************************************
[root at localhost /]# clinfo
Number of platforms                               1
  Platform Name                                   Clover
  Platform Vendor                                 Mesa
  Platform Version                                OpenCL 1.1 Mesa 18.0.5
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd
  Platform Extensions function suffix             MESA

  Platform Name                                   Clover
Number of devices                                 1
  Device Name                                     AMD CAICOS (DRM 2.49.0 /
3.10.84-21.fc21.loongson.18.mips64el, LLVM 8.0.0)
  Device Vendor                                   AMD
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 1.1 Mesa 18.0.5
  Driver Version                                  18.0.5
  Device OpenCL C Version                         OpenCL C 1.1
  Device Type                                     GPU
  Device Profile                                  FULL_PROFILE
  Max compute units                               2
  Max clock frequency                             775MHz
  Max work item dimensions                        3
  Max work item sizes                             256x256x256
  Max work group size                             256
  Preferred work group size multiple              64
  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                                               0 / 0        (n/a)
  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         (n/a)
  Address bits                                    32, Little-Endian
  Global memory size                              1073741824 (1024MiB)
  Error Correction support                        No
  Max memory allocation                           751619276 (716.8MiB)
  Unified memory for Host and Device              No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       131072 bits (16384 bytes)
  Global Memory cache type                        None
#####################################################################
  Image support                                   No
####################################################################
  Local memory type                               Local
  Local memory size                               32768 (32KiB)
  Max constant buffer size                        751619276 (716.8MiB)
  Max number of constant args                     15
  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
  Device Available                                Yes
  Compiler Available                              Yes
  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

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_CPU)  No devices found in
platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
    Platform Name                                 Clover
    Device Name                                   AMD CAICOS (DRM 2.49.0 /
3.10.84-21.fc21.loongson.18.mips64el, LLVM 8.0.0)
  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 CAICOS (DRM 2.49.0 /
3.10.84-21.fc21.loongson.18.mips64el, LLVM 8.0.0)

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.7
  ICD loader Profile                              OpenCL 1.2



*********************************************************************************
#Platform information
[root at localhost /]# lscpu
Architecture:          mips64
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    1
Core(s) per socket:    4
Socket(s):             1
NUMA node(s):          1
Model name:            ICT Loongson-3A R3 (Loongson-3A3000) @ 1399MHz
CPU max MHz:           1399.9860
CPU min MHz:           349.9960
NUMA node0 CPU(s):     0-3
[root at localhost /]# cat /proc/boardinfo
BIOS Information
Vendor                  : Kunlun
Version                 : Kunlun-A1701-V3.1.2-20171012
BIOS ROMSIZE            : 1024
Release date            : 20171012

Base Board Information
Manufacturer            : LEMOTE
Board name              : LEMOTE-LS3A3000-RS780E-1w-V0.1-pc
Family                  : LOONGSON3

[root at localhost /]# uname -a
Linux localhost 3.10.84-21.fc21.loongson.18.mips64el #1 SMP PREEMPT Tue Apr 16
18:41:34 CST 2019 mips64 mips64 mips64 GNU/Linux
[root at localhost /]#

*********************************************************************************
#opencl packages

[root at localhost /]# rpm -qa | grep mesa |grep -w 18
mesa-libOpenCL-18.0.5-4.fc21.loongson.mips64el
mesa-libOpenCL-devel-18.0.5-4.fc21.loongson.mips64el
mesa-filesystem-18.0.5-4.fc21.loongson.mips64el
mesa-libgbm-devel-18.0.5-4.fc21.loongson.mips64el
mesa-libgbm-18.0.5-4.fc21.loongson.mips64el
mesa-dri-drivers-18.0.5-4.fc21.loongson.mips64el
mesa-vdpau-drivers-18.0.5-4.fc21.loongson.mips64el
[root at localhost /]#

*********************************************************************************

#AMD Video Card  
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
Caicos XT [Radeon HD 7470/8470 / R5 235 OEM]

#AMD official Info about HD8470 features
https://www.techpowerup.com/gpu-specs/radeon-hd-8470-oem.c1978


Anyone can give some hints about this?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190815/ae3f45c5/attachment-0001.html>


More information about the mesa-dev mailing list