You are not logged in.

#2726 2014-05-03 12:17:41

Zucca
Member
From: KUUSANKOSKI, Finland
Registered: 2009-02-26
Posts: 135

Re: Discussion: the ati/radeon open source drivers & radeon repository

I don't know...
Do you see anything missing?

# pacman -Qsq 'mesa|opencl|mesagit|radeon|video-ati'
ati-dri-git
clang-svn
glu
libclc-git
libdrm-git
libopencl
libtxc_dxtn
llvm-libs-svn
llvm-svn
luxmark
mandelbulber-opencl
mesa-demos
mesa-git
mesa-libgl-git
opencl-mesa-git
xf86-video-ati-git

K.i.s.s. <3

Offline

#2727 2014-05-03 12:52:29

Gulver
Member
Registered: 2013-05-24
Posts: 208

Re: Discussion: the ati/radeon open source drivers & radeon repository

I'm having a situation where OpenCL test apparatus software fails with Amd Gpu and works fine with Integrated 4000HD.

./cl-demo 1000000 10                                                                                                                                   ~/tools-master
Choose platform:
[0] Advanced Micro Devices, Inc.
[1] Advanced Micro Devices, Inc.
Enter choice: 0
Choose device:
[0] Turks
[1] Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
Enter choice: 0
---------------------------------------------------------------------
NAME: Turks
VENDOR: Advanced Micro Devices, Inc.
PROFILE: FULL_PROFILE
VERSION: OpenCL 1.2 AMD-APP (1214.3)
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_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_atomic_counters_32 cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_amd_image2d_from_buffer_read_only 
DRIVER_VERSION: 1214.3

Type: GPU 
EXECUTION_CAPABILITIES: Kernel 
GLOBAL_MEM_CACHE_TYPE: None (0)
CL_DEVICE_LOCAL_MEM_TYPE: Local (1)
SINGLE_FP_CONFIG: 0x3e
QUEUE_PROPERTIES: 0x2

VENDOR_ID: 4098
MAX_COMPUTE_UNITS: 6
MAX_WORK_ITEM_DIMENSIONS: 3
MAX_WORK_GROUP_SIZE: 256
PREFERRED_VECTOR_WIDTH_CHAR: 16
PREFERRED_VECTOR_WIDTH_SHORT: 8
PREFERRED_VECTOR_WIDTH_INT: 4
PREFERRED_VECTOR_WIDTH_LONG: 2
PREFERRED_VECTOR_WIDTH_FLOAT: 4
PREFERRED_VECTOR_WIDTH_DOUBLE: 0
MAX_CLOCK_FREQUENCY: 600
ADDRESS_BITS: 32
MAX_MEM_ALLOC_SIZE: 268435456
IMAGE_SUPPORT: 1
MAX_READ_IMAGE_ARGS: 128
MAX_WRITE_IMAGE_ARGS: 8
IMAGE2D_MAX_WIDTH: 16384
IMAGE2D_MAX_HEIGHT: 16384
IMAGE3D_MAX_WIDTH: 2048
IMAGE3D_MAX_HEIGHT: 2048
IMAGE3D_MAX_DEPTH: 2048
MAX_SAMPLERS: 16
MAX_PARAMETER_SIZE: 1024
MEM_BASE_ADDR_ALIGN: 2048
MIN_DATA_TYPE_ALIGN_SIZE: 128
GLOBAL_MEM_CACHELINE_SIZE: 0
GLOBAL_MEM_CACHE_SIZE: 0
GLOBAL_MEM_SIZE: 1073741824
MAX_CONSTANT_BUFFER_SIZE: 65536
MAX_CONSTANT_ARGS: 8
LOCAL_MEM_SIZE: 32768
ERROR_CORRECTION_SUPPORT: 0
PROFILING_TIMER_RESOLUTION: 1
ENDIAN_LITTLE: 1
AVAILABLE: 1
COMPILER_AVAILABLE: 1
MAX_WORK_GROUP_SIZES: 256 256 256 
---------------------------------------------------------------------
*** build of 'sum' on 'Turks' said:
"/tmp/OCLf0z5iL.cl", line 1: error: can't enable all OpenCL extensions or
          unrecognized OpenCL extension
  #pragma OPENCL EXTENSION cl_khr_fp64: enable
                           ^

"/tmp/OCLf0z5iL.cl", line 4: error: identifier "double" is undefined
      __global const double *a,
                     ^

"/tmp/OCLf0z5iL.cl", line 5: error: identifier "double" is undefined
      __global const double *b, 
                     ^

"/tmp/OCLf0z5iL.cl", line 6: error: identifier "double" is undefined
      __global double *c,
               ^

4 errors detected in the compilation of "/tmp/OCLf0z5iL.cl".

Frontend phase failed compilation.

*** (end of message)
*** 'clBuildProgram' in 'cl-helper.c' on line 470 failed with error 'build program failure'.
[1]    4680 abort (core dumped)  ./cl-demo 1000000 10

Is this something related to the test only?

Offline

#2728 2014-05-03 15:55:32

lordheavy
Developer
From: France
Registered: 2010-04-01
Posts: 292

Re: Discussion: the ati/radeon open source drivers & radeon repository

Zucca wrote:

I don't know...
Do you see anything missing?

# pacman -Qsq 'mesa|opencl|mesagit|radeon|video-ati'
ati-dri-git
clang-svn
glu
libclc-git
libdrm-git
libopencl
libtxc_dxtn
llvm-libs-svn
llvm-svn
luxmark
mandelbulber-opencl
mesa-demos
mesa-git
mesa-libgl-git
opencl-mesa-git
xf86-video-ati-git

opencl-headers ?

Offline

#2729 2014-05-04 21:11:43

Zucca
Member
From: KUUSANKOSKI, Finland
Registered: 2009-02-26
Posts: 135

Re: Discussion: the ati/radeon open source drivers & radeon repository

@lordheavy: Nope. didn't help. sad

EDIT: pacman -Syu did the trick.

Last edited by Zucca (2014-05-04 21:52:56)


K.i.s.s. <3

Offline

#2730 2014-05-06 12:00:06

Gulver
Member
Registered: 2013-05-24
Posts: 208

Re: Discussion: the ati/radeon open source drivers & radeon repository

I'm sorry for bumping again, I realised that I didn't had installed OpenCl package for Ati Card since it was in conflict with pxp package. Now I wonder, if OpenCL is not supported at all with pxp installation, or does it just seems like that since Discrete Gpu leaves the output to Integrated Gpu?
I tried to differentiate the output while either Dis Gpu was on or not and couldn't get a conclusion, actually it was better performing when Ati was off. So my former guess seemed unlikely. Anyone with a knowledge and eager to shed some light?

Edit: Fixing the poor grammar.

Last edited by Gulver (2014-05-06 12:03:25)

Offline

#2731 2014-05-06 12:46:57

lordheavy
Developer
From: France
Registered: 2010-04-01
Posts: 292

Re: Discussion: the ati/radeon open source drivers & radeon repository

Gulver wrote:

I'm sorry for bumping again, I realised that I didn't had installed OpenCl package for Ati Card since it was in conflict with pxp package. Now I wonder, if OpenCL is not supported at all with pxp installation, or does it just seems like that since Discrete Gpu leaves the output to Integrated Gpu?
I tried to differentiate the output while either Dis Gpu was on or not and couldn't get a conclusion, actually it was better performing when Ati was off. So my former guess seemed unlikely. Anyone with a knowledge and eager to shed some light?

Edit: Fixing the poor grammar.

Have you tried with mesa drivers ?

Offline

#2732 2014-05-06 13:59:11

Gulver
Member
Registered: 2013-05-24
Posts: 208

Re: Discussion: the ati/radeon open source drivers & radeon repository

Mesa is installed.

local/glu 9.0.0-2
    Mesa OpenGL Utility library
local/intel-dri 10.1.2-1
    Mesa drivers for Intel
local/lib32-glu 9.0.0-2
    Mesa OpenGL utility library (32 bits)
local/lib32-intel-dri 10.1.2-1
    Mesa DRI drivers for Intel (32-bit)
local/lib32-libtxc_dxtn 1.0.1-5
    S3 Texture Compression (S3TC) library for Mesa (32-bit)
local/lib32-mesa 10.1.2-1
    an open-source implementation of the OpenGL specification (32-bit)
local/lib32-mesa-demos 8.1.0-3
    Mesa demos and tools (32-bit)
local/lib32-mesa-libgl 10.1.2-1
    Mesa 3-D graphics library (32-bit)
local/libtxc_dxtn 1.0.1-5
    S3 Texture Compression (S3TC) library for Mesa
local/mesa 10.1.2-1
    an open-source implementation of the OpenGL specification
local/mesa-demos 8.1.0-1
    Mesa demos and tools
local/mesa-libgl 10.1.2-1
    Mesa 3-D graphics library

Furthermore, query of pxp package says it has OpenCL support built:

AMD/ATI drivers. Utilities and libraries with OpenCL implementation and powerXpress support. Radeons HD 2 3 4 xxx ARE NOT SUPPORTED

Offline

#2733 2014-05-06 14:19:43

lordheavy
Developer
From: France
Registered: 2010-04-01
Posts: 292

Re: Discussion: the ati/radeon open source drivers & radeon repository

Gulver wrote:

Mesa is installed.

Furthermore, query of pxp package says it has OpenCL support built:

AMD/ATI drivers. Utilities and libraries with OpenCL implementation and powerXpress support. Radeons HD 2 3 4 xxx ARE NOT SUPPORTED

I mean you should try with oss drivers (through mesa 10.2 and llvm-3.5svn - mesa-git repo can help you)

I don't have such configuration (hybrid graphic), found this topic that could help you with: http://forums.linuxmint.com/viewtopic.php?f=49&t=139413

I've asked on IRC radeon channel:

<lordheavy_> Does opencl works with hybrid systems (turks chipset) ?
<tstellar> lordheavy: Yes, but you need to enable rendernodes.

So you need also to add drm.rnodes=1 in your kernel's command line.

Last edited by lordheavy (2014-05-06 15:11:58)

Offline

#2734 2014-05-10 17:11:38

sleepforlife
Member
Registered: 2011-09-27
Posts: 107

Re: Discussion: the ati/radeon open source drivers & radeon repository

I'm opening DPM
and sometimes freezes the computer
alt + f2 does not respond

lspci | egrep "VGA|3D|Display"
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV635/M86 [Mobility Radeon HD 3650]
$cat /etc/X11/xorg.conf.d/20-radeon.conf
Section "Device"
       Identifier  "My Graphics Card"
       Option "AccelMethod" "EXA"
       Option "EXAVSync" "yes"
EndSection

/var/log/Xorg.0.log = http://pastebin.com/dR2Vayr7

sorry for eng.

Offline

#2735 2014-05-10 17:15:08

snack
Member
From: Italy
Registered: 2009-01-13
Posts: 861

Re: Discussion: the ati/radeon open source drivers & radeon repository

sleepforlife wrote:

I'm opening DPM
and sometimes freezes the computer
alt + f2 does not respond

lspci | egrep "VGA|3D|Display"
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV635/M86 [Mobility Radeon HD 3650]
$cat /etc/X11/xorg.conf.d/20-radeon.conf
Section "Device"
       Identifier  "My Graphics Card"
       Option "AccelMethod" "EXA"
       Option "EXAVSync" "yes"
EndSection

/var/log/Xorg.0.log = http://pastebin.com/dR2Vayr7

sorry for eng.

You are probably experencing this bug. On my system (RV620) kernel 3.14 fixed almost every issue with DPM, although reports from other people are mixed.

Offline

#2736 2014-05-10 17:33:14

sleepforlife
Member
Registered: 2011-09-27
Posts: 107

Re: Discussion: the ati/radeon open source drivers & radeon repository

snack wrote:

You are probably experencing this bug. On my system (RV620) kernel 3.14 fixed almost every issue with DPM, although reports from other people are mixed.

i have

extra/ati-dri 10.1.3-1 [kurulu]
    Mesa drivers for AMD/ATI Radeon

core/linux 3.14.2-1 (base) [kurulu]
    The Linux kernel and modules

thanx for quick answer
Is there a solution to this or the updates will solve this problem?
I want to use DPM
because perfected  performance
hopefully resolve

sorry for eng.

Offline

#2737 2014-05-10 17:39:17

snack
Member
From: Italy
Registered: 2009-01-13
Posts: 861

Re: Discussion: the ati/radeon open source drivers & radeon repository

sleepforlife wrote:

Is there a solution to this or the updates will solve this problem?

Sadly, it seems that no resolutive fix has still been written. As I said, the big DPM rewrite done in kernel 3.14 helped some lucky individuals like me but did not solve the issue in all its aspects. I used catalyst legacy from Vi0l0's repository and tried DPM at each new kernel release until I hit a working one. IMHO if you need powersave then using Catalyst and giving a shot to DPM from time to time is the only thing to do, being aware that there's no estimate about when this bug will be fixed (nor if it will ever be fixed at all...)

Offline

#2738 2014-05-10 18:18:42

sleepforlife
Member
Registered: 2011-09-27
Posts: 107

Re: Discussion: the ati/radeon open source drivers & radeon repository

snack wrote:

Sadly, it seems that no resolutive fix has still been written. As I said, the big DPM rewrite done in kernel 3.14 helped some lucky individuals like me but did not solve the issue in all its aspects. I used catalyst legacy from Vi0l0's repository and tried DPM at each new kernel release until I hit a working one. IMHO if you need powersave then using Catalyst and giving a shot to DPM from time to time is the only thing to do, being aware that there's no estimate about when this bug will be fixed (nor if it will ever be fixed at all...)

this is so sad, I'm always unlucky smile
you're right, I'll try as you said.. thank you

Offline

#2739 2014-05-10 18:26:35

Gulver
Member
Registered: 2013-05-24
Posts: 208

Re: Discussion: the ati/radeon open source drivers & radeon repository

I've asked on IRC radeon channel:

<lordheavy_> Does opencl works with hybrid systems (turks chipset) ?
<tstellar> lordheavy: Yes, but you need to enable rendernodes.

So you need also to add drm.rnodes=1 in your kernel's command line.

I just saw your edit,  I'm sincerly grateful. I had had left it settle for a time since there was other business over my head. I shall put it to wiki when i have time.

Last edited by Gulver (2014-05-10 18:28:13)

Offline

#2740 2014-05-14 23:01:25

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: Discussion: the ati/radeon open source drivers & radeon repository

Lordheavy,

latest lib32-llvm-libs-svn & llvm-libs-svn have a wrong symlink.


lib32-llvm-libs-svn 208793
/usr/lib32/libLLVM-3.5.0svn.so points to /build/lib32-llvm-svn/pkg/lib32-llvm-svn/usr/lib32/libLLVM-3.5svn.so

llvm-libs-svn 208789
/usr/lib/libLLVM-3.5.0svn.so points to /build/llvm-svn/pkg/llvm-svn/usr/lib/libLLVM-3.5svn.so

This results in a failure for mesa configure statement to find the shared libraries for llvm.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#2741 2014-05-15 08:55:18

lordheavy
Developer
From: France
Registered: 2010-04-01
Posts: 292

Re: Discussion: the ati/radeon open source drivers & radeon repository

Lone_Wolf wrote:

Lordheavy,

latest lib32-llvm-libs-svn & llvm-libs-svn have a wrong symlink.


lib32-llvm-libs-svn 208793
/usr/lib32/libLLVM-3.5.0svn.so points to /build/lib32-llvm-svn/pkg/lib32-llvm-svn/usr/lib32/libLLVM-3.5svn.so

llvm-libs-svn 208789
/usr/lib/libLLVM-3.5.0svn.so points to /build/llvm-svn/pkg/llvm-svn/usr/lib/libLLVM-3.5svn.so

This results in a failure for mesa configure statement to find the shared libraries for llvm.

Just noticed the problem. Thanks, will push new packages ASAP

Offline

#2742 2014-05-15 13:57:29

agapito
Member
From: Who cares.
Registered: 2008-11-13
Posts: 645

Re: Discussion: the ati/radeon open source drivers & radeon repository

@lordheavy:  Could you upgrade lib32-llvm package from the official repo? It's out of date for a few days.  Thanks.


Excuse my poor English.

Online

#2743 2014-05-15 14:29:44

lordheavy
Developer
From: France
Registered: 2010-04-01
Posts: 292

Re: Discussion: the ati/radeon open source drivers & radeon repository

agapito wrote:

@lordheavy:  Could you upgrade lib32-llvm package from the official repo? It's out of date for a few days.  Thanks.

done

Offline

#2744 2014-05-15 14:40:44

agapito
Member
From: Who cares.
Registered: 2008-11-13
Posts: 645

Re: Discussion: the ati/radeon open source drivers & radeon repository

Thank you again.

With llvm 3.4.1 and mesa 10.2. OpenGL 3.3 will be enabled by default on radeonsi.

Last edited by agapito (2014-05-15 14:41:05)


Excuse my poor English.

Online

#2745 2014-05-15 23:32:08

haagch
Member
Registered: 2013-08-17
Posts: 209

Re: Discussion: the ati/radeon open source drivers & radeon repository

Uh... Read permissions to the xf86-video-* pkgbuilds is not set:

http://pkgbuild.com/~lcarlier/mesa-git/ … t/PKGBUILD
http://pkgbuild.com/~lcarlier/mesa-git/ … t/PKGBUILD

Both 403.

Offline

#2746 2014-05-16 12:16:25

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: Discussion: the ati/radeon open source drivers & radeon repository

lordheavy wrote:
Lone_Wolf wrote:

Lordheavy,

latest lib32-llvm-libs-svn & llvm-libs-svn have a wrong symlink.


lib32-llvm-libs-svn 208793
/usr/lib32/libLLVM-3.5.0svn.so points to /build/lib32-llvm-svn/pkg/lib32-llvm-svn/usr/lib32/libLLVM-3.5svn.so

llvm-libs-svn 208789
/usr/lib/libLLVM-3.5.0svn.so points to /build/llvm-svn/pkg/llvm-svn/usr/lib/libLLVM-3.5svn.so

This results in a failure for mesa configure statement to find the shared libraries for llvm.

Just noticed the problem. Thanks, will push new packages ASAP

Thanks, would you mind sharing how you you solved it ?
(the mesa-git/sources/llvm-svn and lib32-llvm-svn folder still have the older version)

Krejzi solved it like this in his aur llvm-svn package, package_llvm-libs-svn function  :

    mv "${srcdir}"/libLLVM-*.so "${pkgdir}/usr/lib/"

    for _shlib in "${pkgdir}"/usr/lib/*.so
    do
      test -L "${_shlib}" && ln -sf $(basename $(readlink ${_shlib})) ${_shlib}
    done

It does work that way, but it looks like a tricky workaround to solve an upstream problem.
(this issue looks to me like it's a bug in llvm configure/make , or if it's not  a bug it should be controllable by a configure flag).

Last edited by Lone_Wolf (2014-05-16 12:17:15)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#2747 2014-05-16 13:56:19

lordheavy
Developer
From: France
Registered: 2010-04-01
Posts: 292

Re: Discussion: the ati/radeon open source drivers & radeon repository

Lone_Wolf wrote:
lordheavy wrote:
Lone_Wolf wrote:

Lordheavy,

latest lib32-llvm-libs-svn & llvm-libs-svn have a wrong symlink.


lib32-llvm-libs-svn 208793
/usr/lib32/libLLVM-3.5.0svn.so points to /build/lib32-llvm-svn/pkg/lib32-llvm-svn/usr/lib32/libLLVM-3.5svn.so

llvm-libs-svn 208789
/usr/lib/libLLVM-3.5.0svn.so points to /build/llvm-svn/pkg/llvm-svn/usr/lib/libLLVM-3.5svn.so

This results in a failure for mesa configure statement to find the shared libraries for llvm.

Just noticed the problem. Thanks, will push new packages ASAP

Thanks, would you mind sharing how you you solved it ?
(the mesa-git/sources/llvm-svn and lib32-llvm-svn folder still have the older version)

It was an upstream bug, now fixed: http://lists.cs.uiuc.edu/pipermail/llvm … 17549.html

Offline

#2748 2014-05-16 15:00:34

lordheavy
Developer
From: France
Registered: 2010-04-01
Posts: 292

Re: Discussion: the ati/radeon open source drivers & radeon repository

haagch wrote:

Uh... Read permissions to the xf86-video-* pkgbuilds is not set:

http://pkgbuild.com/~lcarlier/mesa-git/ … t/PKGBUILD
http://pkgbuild.com/~lcarlier/mesa-git/ … t/PKGBUILD

Both 403.

Fixed!

Offline

#2749 2014-05-18 16:23:53

Zucca
Member
From: KUUSANKOSKI, Finland
Registered: 2009-02-26
Posts: 135

Re: Discussion: the ati/radeon open source drivers & radeon repository

So. Anyone got scrypt OCL mining working with open drivers?
I'm getting _some_ results. Hash rate is only ~10kh/s on r7850.


K.i.s.s. <3

Offline

#2750 2014-05-18 17:12:31

lordheavy
Developer
From: France
Registered: 2010-04-01
Posts: 292

Re: Discussion: the ati/radeon open source drivers & radeon repository

Zucca wrote:

So. Anyone got scrypt OCL mining working with open drivers?
I'm getting _some_ results. Hash rate is only ~10kh/s on r7850.

With drivers from testing or mesa-git repo ? You should probably test mesa-git drivers with are relying on llvm-3.5svn which could give better performances.

Offline

Board footer

Powered by FluxBB