Page MenuHomeSolus

OpenCL platform unavailable
Open, NormalPublic

Description

When using clinfo with a Kaby Lake CPU it outputs:

Number of platforms  0

Another way to test is to install SVP (HQ video frame interpolation) by following the instructions and running any video with normal framerate.
All required packages are available in Solus now and it's working well besides the missing OpenCL acceleration of which there are two warnings.

Video: OpenCL subsystem isn't available, try to reinstall video drivers
Main: OpenCL is not available!

When OpenCL works the device should be listed under Application settings > GPU acceleration

Related Objects

Event Timeline

Timalex created this task.Apr 3 2017, 8:11 PM
Timalex updated the task description. (Show Details)

have you installed beignet ?

Timalex added a comment.EditedApr 3 2017, 8:34 PM

Yes

I can say that on my end, both the i3-540`s and the i5-6200U`s respective HD Graphics GPUs, do not show up in CLInfo, nor in SVP.
The same situation with my newly bought 2nd hand AMD Sapphire Radeon HD 5850 Extreme (I do not game, AMD`s GPUs work better with cRARk than NVidia`s GPUs).

And do you have ocl-icd installed.. ?

Yes, I had made sure it was installed prior to my tests.

Can you run it via strace and give me the stderr please? We'll figure out where its looking and failing. thanks.

moriel5 added a comment.EditedApr 27 2017, 6:45 PM

At this moment, I can only do it for the Radeon HD 5850 Extreme, so that is what I shall do right now.
The others will follow up when I have the time.

My clinfo output for Broadwell:

 ✓  ikey@solus-bdw  …/Solus/beignet   master  clinfo 
Number of platforms                               1
  Platform Name                                   Intel Gen OCL Driver
  Platform Vendor                                 Intel
  Platform Version                                OpenCL 2.0 beignet 1.3
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             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_byte_addressable_store cl_khr_3d_image_writes cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_spir cl_khr_icd cl_intel_accelerator cl_intel_subgroups cl_intel_subgroups_short cl_khr_gl_sharing
  Platform Extensions function suffix             Intel

  Platform Name                                   Intel Gen OCL Driver
Number of devices                                 1
  Device Name                                     Intel(R) Iris Graphics 6100 BroadWell U-Processor GT3
  Device Vendor                                   Intel
  Device Vendor ID                                0x8086
  Device Version                                  OpenCL 1.2 beignet 1.3
  Driver Version                                  1.3
  Device OpenCL C Version                         OpenCL C 1.2 beignet 1.3
  Device Type                                     GPU
  Device Available                                Yes
  Device Profile                                  FULL_PROFILE
  Max compute units                               48
  Max clock frequency                             1000MHz
  Device Partition                                (core)
    Max number of sub-devices                     1
    Supported partition types                     None, None, None
  Max work item dimensions                        3
  Max work item sizes                             512x512x512
  Max work group size                             512
  Compiler Available                              Yes
  Linker Available                                Yes
  Preferred work group size multiple              16
  Preferred / native vector sizes                 
    char                                                16 / 8       
    short                                                8 / 8       
    int                                                  4 / 4       
    long                                                 2 / 2       
    half                                                 0 / 8        (cl_khr_fp16)
    float                                                4 / 4       
    double                                               0 / 2        (n/a)
  Half-precision Floating-point support           (cl_khr_fp16)
    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
  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                              4294967296 (4GiB)
  Error Correction support                        No
  Max memory allocation                           2147483648 (2GiB)
  Unified memory for Host and Device              Yes
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       1024 bits (128 bytes)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        8192 (8KiB)
  Global Memory cache line                        64 bytes
  Image support                                   Yes
    Max number of samplers per kernel             16
    Max size for 1D images from buffer            65536 pixels
    Max 1D or 2D image array size                 2048 images
    Base address alignment for 2D image buffers   4096 bytes
    Pitch alignment for 2D image buffers          1 bytes
    Max 2D image size                             8192x8192 pixels
    Max 3D image size                             8192x8192x2048 pixels
    Max number of read image args                 128
    Max number of write image args                8
  Local memory type                               Local
  Local memory size                               65536 (64KiB)
  Max constant buffer size                        134217728 (128MiB)
  Max number of constant args                     8
  Max size of kernel argument                     1024
  Queue properties                                
    Out-of-order execution                        No
    Profiling                                     Yes
  Prefer user sync for interop                    Yes
  Profiling timer resolution                      80ns
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            Yes
    SPIR versions                                 1.2
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels                                __cl_copy_region_align4;__cl_copy_region_align16;__cl_cpy_region_unalign_same_offset;__cl_copy_region_unalign_dst_offset;__cl_copy_region_unalign_src_offset;__cl_copy_buffer_rect;__cl_copy_image_1d_to_1d;__cl_copy_image_2d_to_2d;__cl_copy_image_3d_to_2d;__cl_copy_image_2d_to_3d;__cl_copy_image_3d_to_3d;__cl_copy_image_2d_to_buffer;__cl_copy_image_3d_to_buffer;__cl_copy_buffer_to_image_2d;__cl_copy_buffer_to_image_3d;__cl_fill_region_unalign;__cl_fill_region_align2;__cl_fill_region_align4;__cl_fill_region_align8_2;__cl_fill_region_align8_4;__cl_fill_region_align8_8;__cl_fill_region_align8_16;__cl_fill_region_align128;__cl_fill_image_1d;__cl_fill_image_1d_array;__cl_fill_image_2d;__cl_fill_image_2d_array;__cl_fill_image_3d;
  Device Extensions                               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_byte_addressable_store cl_khr_3d_image_writes cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_spir cl_khr_icd cl_intel_accelerator cl_intel_subgroups cl_intel_subgroups_short cl_khr_gl_sharing cl_khr_fp16

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Intel Gen OCL Driver
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [Intel]
  clCreateContext(NULL, ...) [default]            Success [Intel]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
    Platform Name                                 Intel Gen OCL Driver
    Device Name                                   Intel(R) Iris Graphics 6100 BroadWell U-Processor GT3
  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                                 Intel Gen OCL Driver
    Device Name                                   Intel(R) Iris Graphics 6100 BroadWell U-Processor GT3

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.10
  ICD loader Profile                              OpenCL 2.1
moriel5 added a comment.EditedApr 27 2017, 6:51 PM

Here is my CLInfo stderr output on my desktop (currently with the i3-540 and R5850E)

And for a less messy look, just the CLInfo output for the same build:

DRM_IOCTL_I915_GEM_APERTURE failed: No such file or directory
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
Number of platforms                               1
  Platform Name                                   Intel Gen OCL Driver
  Platform Vendor                                 Intel
  Platform Version                                OpenCL 2.0 beignet 1.3
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             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_byte_addressable_store cl_khr_3d_image_writes cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_spir cl_khr_icd cl_intel_accelerator cl_intel_subgroups cl_intel_subgroups_short cl_khr_gl_sharing
  Platform Extensions function suffix             Intel
DRM_IOCTL_I915_GEM_APERTURE failed: No such file or directory
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
cl_get_gt_device(): error, unknown device: 0

  Platform Name                                   Intel Gen OCL Driver
Number of devices                                 0

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Intel Gen OCL Driver
DRM_IOCTL_I915_GEM_APERTURE failed: No such file or directory
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
cl_get_gt_device(): error, unknown device: 0
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Intel Gen OCL Driver
  clCreateContext(NULL, ...) [default]            No devices found in platform
DRM_IOCTL_I915_GEM_APERTURE failed: No such file or directory
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
DRM_IOCTL_I915_GEM_APERTURE failed: No such file or directory
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
cl_get_gt_device(): error, unknown device: 0
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No devices found in platform
DRM_IOCTL_I915_GEM_APERTURE failed: No such file or directory
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
DRM_IOCTL_I915_GEM_APERTURE failed: No such file or directory
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
DRM_IOCTL_I915_GEM_APERTURE failed: No such file or directory
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
cl_get_gt_device(): error, unknown device: 0
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No devices found in platform

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.10
  ICD loader Profile                              OpenCL 2.1

So I think we need to enable Clover in Mesa for Radeon OpenCL support. Hoping that it won't conflict with ocl-icd

moriel5 added a comment.EditedApr 27 2017, 6:59 PM

Actually, I have decided that I have the time to bring up the CLInfo for my i3-540's HD Graphics.
It should be up within 15 minutes (given that I need to remove the AMD graphics card for my motherboard to allow me to use the integrated graphics).

Update: Here is the stderr output for CLInfo:


And here is just the CLInfo output:

Number of platforms                               1
  Platform Name                                   Intel Gen OCL Driver
  Platform Vendor                                 Intel
  Platform Version                                OpenCL 2.0 beignet 1.3
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             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_byte_addressable_store cl_khr_3d_image_writes cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_spir cl_khr_icd cl_intel_accelerator cl_intel_subgroups cl_intel_subgroups_short cl_khr_gl_sharing
  Platform Extensions function suffix             Intel
cl_get_gt_device(): error, unknown device: 42

  Platform Name                                   Intel Gen OCL Driver
Number of devices                                 0

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Intel Gen OCL Driver
cl_get_gt_device(): error, unknown device: 42
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Intel Gen OCL Driver
  clCreateContext(NULL, ...) [default]            No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
cl_get_gt_device(): error, unknown device: 42
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
cl_get_gt_device(): error, unknown device: 42
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No devices found in platform

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.10
  ICD loader Profile                              OpenCL 2.1
Timalex added a comment.EditedMay 22 2017, 7:51 PM

SVP doesn't output any warnings anymore it however outputs this:

21:21:56.348 [I]: Video: 0 GPU OpenCL device(s) on Intel Gen OCL Driver [OpenCL 2.0 beignet 1.3] (Intel)

Basically the same clinfo output here as well for Kaby Lake:

X server found. dri2 connection failed! 
Device open failed, aborting...
Number of platforms                               1
  Platform Name                                   Intel Gen OCL Driver
  Platform Vendor                                 Intel
  Platform Version                                OpenCL 2.0 beignet 1.3
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             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_byte_addressable_store cl_khr_3d_image_writes cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_spir cl_khr_icd cl_intel_accelerator cl_intel_subgroups cl_intel_subgroups_short cl_khr_gl_sharing
  Platform Extensions function suffix             Intel
X server found. dri2 connection failed! 
Device open failed, aborting...
cl_get_gt_device(): error, unknown device: ffffffff

  Platform Name                                   Intel Gen OCL Driver
Number of devices                                 0

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Intel Gen OCL Driver
X server found. dri2 connection failed! 
Device open failed, aborting...
cl_get_gt_device(): error, unknown device: ffffffff
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Intel Gen OCL Driver
  clCreateContext(NULL, ...) [default]            No devices found in platform
X server found. dri2 connection failed! 
Device open failed, aborting...
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
X server found. dri2 connection failed! 
Device open failed, aborting...
cl_get_gt_device(): error, unknown device: ffffffff
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No devices found in platform
X server found. dri2 connection failed! 
Device open failed, aborting...
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
X server found. dri2 connection failed! 
Device open failed, aborting...
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
X server found. dri2 connection failed! 
Device open failed, aborting...
cl_get_gt_device(): error, unknown device: ffffffff
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No devices found in platform

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.10
  ICD loader Profile                              OpenCL 2.1

Assuming the dri2 errors are related to the discreet graphics card.
Otherwise only the id of the unknown device differs: ffffffff
Guess the id could be due to the drivers not supporting the discreet card yet.
Will try with the latest glx-driver when it reaches stable.

So the nvidia-glx-driver reached stable sooner than I expected :-)

clinfo outputs this now instead:

X server found. dri2 connection failed! 
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
Number of platforms                               1
  Platform Name                                   Intel Gen OCL Driver
  Platform Vendor                                 Intel
  Platform Version                                OpenCL 2.0 beignet 1.3
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             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_byte_addressable_store cl_khr_3d_image_writes cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_spir cl_khr_icd cl_intel_accelerator cl_intel_subgroups cl_intel_subgroups_short cl_khr_gl_sharing
  Platform Extensions function suffix             Intel
X server found. dri2 connection failed! 
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
cl_get_gt_device(): error, unknown device: 0

  Platform Name                                   Intel Gen OCL Driver
Number of devices                                 0

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Intel Gen OCL Driver
X server found. dri2 connection failed! 
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
cl_get_gt_device(): error, unknown device: 0
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Intel Gen OCL Driver
  clCreateContext(NULL, ...) [default]            No devices found in platform
X server found. dri2 connection failed! 
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
X server found. dri2 connection failed! 
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
cl_get_gt_device(): error, unknown device: 0
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No devices found in platform
X server found. dri2 connection failed! 
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
X server found. dri2 connection failed! 
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
X server found. dri2 connection failed! 
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
cl_get_gt_device(): error, unknown device: 0
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No devices found in platform

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.10
  ICD loader Profile                              OpenCL 2.1

Guess nvidia-opencl-icd should be available after installing the driver??

joanwa added a subscriber: joanwa.May 29 2017, 5:36 PM
In T3147#61376, @ikey wrote:

So I think we need to enable Clover in Mesa for Radeon OpenCL support. Hoping that it won't conflict with ocl-icd

Yes please. Was just gonna ask for Mesa Radeon OpenCL. Are there any updates on that?

moriel5 added a comment.EditedJun 7 2017, 7:09 AM

Well, it would appear that the latest Mesa update actually messed up support for the i3-540 and the Radeon HD 5850 Extreme.
Here the CLInfo data, I had forgotten to use STrace, so that will go up when I have the time.

Update: The latest Mesa update brought no changes in regards to the i3-540 and the Radeon HD 5850 Extreme.
Here are the logs:

Please, suggest, how to make this run on my discrete Nvidia.

Installed

nvidia-glx-driver

and

ocl-icd

but clinfo still shows:

$ clinfo 
Number of platforms                               0
$ inxi -G
Graphics:  Card-1: Intel HD Graphics 5500
           Card-2: NVIDIA GM108M [GeForce 940M]
           Display Server: x11 (X.Org 1.18.4) drivers: modesetting,nvidia Resolution: 1366x768@60.00hz
           OpenGL: renderer: GeForce 940M/PCIe/SSE2 version: 4.5.0 NVIDIA 381.22

I was not expecting much after checking the changelogs for the latest update to mesalib, however here the logs nevertheless:


I hope that I do not sound impatient, as I understand that there are other priorities, however not being able to use OpenCL is a major dealbreaker for me, as I had bought this graphics card (the best I could get 2nd hand ( and it was surprisingly cheap) for a cRARk project that I am running late by several months already (while not limiting myself to AMD cards, I did hope that I would get one, due to the fact that they bring much better performance with cRARk than NVidia cards.

JoshStrobl moved this task from Backlog to Other on the Hardware board.Oct 26 2017, 2:24 AM

OpenCL seems to work with Nvidia now. Intel is detected with Beignet installed but has errors.

This is the difference with Beignet installed, from just having Nvidia installed and working.

This block occurs repeatedly throughout, cl_get_gt_device is present all but the first time.

X server found. dri2 connection failed!
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
cl_get_gt_device(): error, unknown device: 0

Number of platforms 2

Platform Name                                   Intel Gen OCL Driver
 Platform Vendor                                 Intel
 Platform Version                                OpenCL 2.0 beignet 1.4 (git-7f7dca08)
 Platform Profile                                FULL_PROFILE
 Platform Extensions                             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_byte_addressable_store cl_khr_3d_image_writes cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_spir cl_khr_icd cl_intel_accelerator cl_intel_subgroups cl_intel_subgroups_short cl_intel_required_subgroup_size cl_intel_media_block_io cl_intel_planar_yuv cl_khr_gl_sharing
 Platform Extensions function suffix             Intel
 
 Platform Name                                   Intel Gen OCL Driver
Number of devices                                 0

clCreateContext(NULL, ...) [other] <error: no devices in non-default plaforms>

I wish to apologize for my rude behaviour, as back then I did not realize that AMD's GPU's from the time of mine had recieved next to no Linux-facing support from AMD, and as such, it is presently impossible to get OpenCL running with them on Linux.

Next time I buy a GPU, having researched this, I'll make sure that what I am buying is properly supported, at least to the point that the community has the tools required to improve it.

I wish to apologize for my rude behaviour, as back then I did not realize that AMD's GPU's from the time of mine had recieved next to no Linux-facing support from AMD, and as such, it is presently impossible to get OpenCL running with them on Linux.
Next time I buy a GPU, having researched this, I'll make sure that what I am buying is properly supported, at least to the point that the community has the tools required to improve it.

It's not impossible, it just requires the AMD KFD bits that only just made it in for kernel 4.17 or compiled as an out of tree driver. I chose to wait for the former rather than have a driver package we'd have to kill off a few months later. Rest-assured, once 4.17 is marked for the .0 release, I will be working on the KFD and related ROCm bits for OpenCL support. We will likely wait a point release or two before bringing linux-current forward though, especially after the recent regressions we had with 4.16.

Thanks for the update.

It's not impossible, it just requires the AMD KFD bits that only just made it in for kernel 4.17 or compiled as an out of tree driver. I chose to wait for the former rather than have a driver package we'd have to kill off a few months later. Rest-assured, once 4.17 is marked for the .0 release, I will be working on the KFD and related ROCm bits for OpenCL support. We will likely wait a point release or two before bringing linux-current forward though, especially after the recent regressions we had with 4.16.

Are you telling me that AMD is updating bits for all of their cards, not just their newer cards?
And as to the 4.16's Intel issues, I can certainly understand.

It's just too bad that my only AMD card now is an old AGP ATI card with 128MB of DDR RAM, and a problematic DVI connection (VGA and S-Video work fine though, I have tested it on 2 ancient Intel motherboard and an equally ancient MSI motherboard), and I do not have enough money to buy any graphics card, even old 2nd hand ones now, so I am limited to an NVidia card with 1GB of GDDR3 RAM (not complaining about it, it's just that I was hoping for at least 1GB of GDDR5 RAM, like my old HD5850).

This comment was removed by DataDrake.

@moriel5, no not every card they ever made lol.

AMDKFD + ROCm currently bring support for Fiji (Fury cards) and Polaris (4XX and 5XX) with experimental support for the 2XX and 3XX cards. It also brings support for Ryzen (also Threadripper) and EPYC CPUs. I don't believe they are planning on supporting anything not GCN though. But this driver does make it possible for other contributors to make that happen. That's what I meant by it not being impossible.

Thank you for the clarification, hopefully that will come to fruition.
Too bad my HD5850 had already dead.

Thankfully, we are planning on getting a Sapphire Pulse RX550 4GB for my sister, since she is starting to edit videos (I know that this is nowhere nearly enough, however this was the best I could find with our limited budget, and will have to do until we have the money to get her a 1080Ti, or even better a relatively new Quadro), which will eventually become mine, once we will be able to afford her something at the level she requires.

DataDrake triaged this task as Normal priority.Oct 8 2018, 11:29 AM

Good/bad news here.
I have a friend who had moved abroad a few years ago, and he gave me his old computer. though I did not have a chance to take it until a few weeks ago.
It had an unbranded AMD Radeon HD "7570", with "4"GB of GDDR5, though in reality it is a rebadged HD 6770, with 1GB of GDDR5.
I am hoping to get it a proper heatsink, to allow it to work properly with more power draw, and perhaps to mod the hardware a little (a bit farther in the future) to allow it to draw more power in the first place (that is, if the VRM can handle it in the first place), and build it a new firmware (again, in the future), but in the time being, I can help test out pre-GCN hardware again.