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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Aug 15 02:25:35 UTC 2019


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

            Bug ID: 111403
           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 running  clinfo command on my platform, I noticed OpenCL Device(ADM 
Radeon HD8470) doesn't support "Image Support".
   As a beginner, I don't know why such a problem occurred. It's whether a
fault which about AMD HD8470 Device or Video Driver on my platform, or I was
ever neglect some compiling options when build mesa(packages such as
mesa-libOpenCL/mesa-libOpenCL-devel  come from  mesa source rpm package ). 

   Information about my platfom as follows:

*******************************************************************************
#1. clinfo enumerates the OpenCL platform and Device

[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

*******************************************************************************
#2、platfom infomation

[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 ~]# 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

*******************************************************************************
#information about mesa 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

Anyone can give some hints about this problem? The following links shows AMD
HD8470 Device support OpenCL 1.2.

*******************************************************************************
#AMD official links on HD8470 Device 
https://www.techpowerup.com/gpu-specs/radeon-hd-8470-oem.c1978



If the problem can't be solved via software path, Maybe the best choice is
changing OpenCL Device or Platform.

-- 
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/9da5182e/attachment-0001.html>


More information about the mesa-dev mailing list