Getting my HD8670 to run Mesa OpenCL

Late Night Defender
Late Night Defender
Joined: 11 Oct 19
Posts: 6
Credit: 77586976
RAC: 3
Topic 223614

I broke my previous OS (antiX 19, a fork of Debian 10) a few days ago, so this time I installed Fedora 32 for crunching. But I can't get my HD8670 to work with Mesa OpenCL on "radeon" driver. (not amdgpu as it is too old)

I installed ocl-icd, mesa-libOpenCL,opencl-headers and libclc but It still won't show up in BOINC. (It used to work fine on antiX by just installing "mesa-opencl-icd")

clinfo output


Number of platforms                               1
 Platform Name                                   Clover
 Platform Vendor                                 Mesa
 Platform Version                                OpenCL 1.1 Mesa 20.1.8
 Platform Profile                                FULL_PROFILE
 Platform Extensions                             cl_khr_icd
 Platform Extensions function suffix             MESA

 Platform Name                                   Clover
Number of devices                                 0

NULL platform behavior
 clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Clover
 clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)    
 clCreateContext(NULL, ...) [default]            No devices found in platform
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  No devices found in platform
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
 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
 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.12
 ICD loader Profile                              OpenCL 2.2


Any way to get this running? Thank you in advance.
 

Keith Myers
Keith Myers
Joined: 11 Feb 11
Posts: 4743
Credit: 17663397953
RAC: 5980811

Maybe this post on

Maybe this post on Folding@home will help.

https://foldingforum.org/viewtopic.php?t=33353

 

Gary Roberts
Gary Roberts
Moderator
Joined: 9 Feb 05
Posts: 5845
Credit: 109874208649
RAC: 30493110

AhrivenX wrote:.... But I

AhrivenX wrote:
.... But I can't get my HD8670 to work with Mesa OpenCL on "radeon" driver. (not amdgpu as it is too old)

I really don't understand why you would think that.  I think it's radeon that's too old and not properly supported these days.  Perhaps you really should be using amdgpu??

Over four years ago, AMD made a decision to deprecate their proprietary 'fglrx' video driver and contribute the new amdgpu open source driver to the Linux kernel.  At that time, the 'radeon' driver was the open source counterpart of the proprietary fglrx driver.  Since then, the amdgpu driver has been actively supported and developed by AMD and other developers/contributors, whilst radeon seems to have 'withered on the vine' by comparison.

I run a large range of AMD GPUs (all different GCN versions, even GCN 1.0) on Linux with proprietary OpenCL libs running on top of amdgpu.  I don't use one of the 'supported' distros (Red Hat, Ubuntu, or OpenSUSE - or any of their derivatives) but I have no trouble just extracting the OpenCL libs from the Red Hat version of what used to be known as AMDGPU-PRO - these days Radeon Software for Linux, I believe.

In the distant past, I tried running the same OpenCL libs on top of radeon but it never worked for me.  In more recent times, I've occasionally forgotten to properly ensure that amdgpu rather than radeon is the driver specified in xorg.conf.  OpenCL won't work until I edit xorg.conf and replace radeon with amdgpu.  Then everything works just fine.

Over the years, I've also seen others trying to run the Mesa OpenCL (Clover) but they always seemed to have problems.  I've never tried it myself since AMD's version has always worked for me.  I've used most versions of AMDGPU-PRO OpenCL from 16.60 right through to the current 20.30.

About a month ago, I set up a new build with an old (2013) HD 7850 GPU (Pitcairn series - GCN 1.0)  I used it to test the latest 20.30 OpenCL libs that I'd downloaded.  It's been running fine crunching gamma-ray pulsar tasks two at a time without issue.  Its RAC has just about plateaued at around 250K.  Here is a snippet of the output from clinfo to show what I'm running.

Number of platforms:                   1
  Platform Profile:                    FULL_PROFILE
  Platform Version:                    OpenCL 2.1 AMD-APP (3143.9)
  Platform Name:                       AMD Accelerated Parallel Processing
  Platform Vendor:                     Advanced Micro Devices, Inc.
  Platform Extensions:                 cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
  Platform Name:                       AMD Accelerated Parallel Processing

Number of devices:                     1
  Device Type:                         CL_DEVICE_TYPE_GPU
  Vendor ID:                           1002h
  Board name:                          AMD Radeon HD 7800 Series
  Device Topology:                     PCI[ B#1, D#0, F#0 ]

Since I have no direct experience with Clover, I don't have anything useful to contribute about that other than to suggest that you try the amdgpu driver rather than radeon for the base on which to install the OpenCL libs.
 

Cheers,
Gary.

Late Night Defender
Late Night Defender
Joined: 11 Oct 19
Posts: 6
Credit: 77586976
RAC: 3

After some problems with runc

After some problems with runc and LHC@home, I gave up and decided to come back to Debian on this machine.

and as before, installing mesa-opencl-icd made the Clover OpenCL work with “radeon” out of the box.

 

I’m considering switching  to amdgpu as you mentioned. But I heard the amdgpu has problems with analog video output (I still use VGA btw) on older cards, is this true?

Gary Roberts
Gary Roberts
Moderator
Joined: 9 Feb 05
Posts: 5845
Credit: 109874208649
RAC: 30493110

AhrivenX wrote:... I heard

AhrivenX wrote:
... I heard the amdgpu has problems with analog video output (I still use VGA btw) on older cards, is this true?

Sorry, but I simply have no information or experience with that.  I transitioned (partially) from fglrx to amdgpu in early 2017 when I first acquired some RX 460s.  At that stage I was using VGA cables and DVI-I to VGA adapters to drive monitors that supported both analog and digital.  All the earlier cards (MSI HD 7850s) came with those adapters since they had DVI-I ports and not VGA.  The initial RX 460s had DVI-I ports as well so could use those adapters and I never noticed any video issues with amdgpu at that time.

Once I started using later cards like RX 570s, the ports were DVI-D so those adapters couldn't be used.  At that point I switched all the monitor cables from VGA to DVI and removed all the adapters.  That was probably early 2018, so as amdgpu developed after that, if there were issues with analog, I would not have noticed it since everything was now running digital.

There has been a lot of development with amdgpu over the years and it's always possible that a problem with analog video might have arisen since early 2018.  I haven't heard anything about such a problem but that's not surprising since I've not been looking anyway :-).

Cheers,
Gary.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.