You are not logged in.
I have an AMD A10-7850K and would like to use OpenCL in Libreoffice and also other applications.
What I have found in Libreoffice Calculator if I go to tools>options>OpenCL
everything is fine
in the subsection LibreOffice Calc>Formula
I can set Custom (use OpenCL) but after closing it turns back to default.
If i click Details and run the test all tests fail.
According to http://dri.freedesktop.org/wiki/GalliumCompute/
SeaIsland chips like mine should be supported.
According to the wiki
https://wiki.archlinux.org/index.php/Op … Gallium.29
mesa is not built with opencl (2004)
but when I look into the recent PKGBUILD i have opencl enabled
./configure --prefix=/usr \
--sysconfdir=/etc \
--with-dri-driverdir=/usr/lib/xorg/modules/dri \
--with-gallium-drivers=r300,r600,radeonsi,nouveau,svga,swrast \
--with-dri-drivers=i915,i965,r200,radeon,nouveau,swrast \
--with-egl-platforms=x11,drm,wayland \
--enable-llvm-shared-libs \
--enable-egl \
--enable-gbm \
--enable-gallium-llvm \
--enable-shared-glapi \
--enable-glx \
--enable-glx-tls \
--enable-dri \
--enable-osmesa \
--enable-gles1 \
--enable-gles2 \
--enable-texture-float \
--enable-xa \
--enable-vdpau \
--enable-omx \
--enable-nine \
[b] --enable-opencl --enable-opencl-icd \[/b]
--with-clang-libdir=/usr/lib
If i execute
$ ls /etc/OpenCL/vendors
i get mesa.icd
if I run any opencl tests from
http://dri.freedesktop.org/wiki/Gallium … /#index4h3
all tests fail
PS:
blackout@h2o-Arch ~ % yaourt -Q | grep mesa
multilib/lib32-mesa 10.5.2-1
multilib/lib32-mesa-libgl 10.5.2-1
extra/libva-mesa-driver 10.5.2-1
extra/mesa 10.5.2-1
extra/mesa-libgl 10.5.2-1
extra/mesa-vdpau 10.5.2-1
extra/opencl-mesa 10.5.2-1
blackout@h2o-Arch ~ % ls /etc/OpenCL/vendors
mesa.icd
blackout@h2o-Arch ~ % yaourt -Q | grep libcl
extra/libcl 1.1-4
extra/libclc 0.0.1.231373-1
It also doesn't work on my notebook using the nv50 driver which is also WIP
http://www.x.org/wiki/GalliumStatus/
PLEASE DON'T SUGGEST SWITCHING TO CATALYST!!! THX
is there anything I have missed? any ideas?
Thanks in advance guys & girls
Last edited by blackout (2015-04-05 19:37:14)
Offline
According to the wiki
https://wiki.archlinux.org/index.php/Op … Gallium.29
mesa is not built with opencl (2004)
that wiki page needs updating, arch stock mesa has supported opencl for some time now.
Your AMD A10-7850K might be too new though, as it's gpu appears to be from the R7 generation.
what is the result of dmesg | grep -i Microcode ?
That may help to determine what firmware is loaded for your gpu.
added
the reason i want to know which firmware is loaded is that seems to be the easiest way to figure out what graphics chipset your card really has.
Apart from R7 generation, amd website doesn't give details about your apu graphic capabilities.
Once we're sure what chipset is in your apu, we can investigate whether libclc supports it.
Last edited by Lone_Wolf (2015-04-17 12:16:04)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
First of all thx for your reply
blackout@blackArch ~ % dmesg | grep -i Microcode
[ 0.375388] microcode: CPU0: patch_level=0x06003104
[ 0.375393] microcode: CPU1: patch_level=0x06003104
[ 0.375401] microcode: CPU2: patch_level=0x06003104
[ 0.375409] microcode: CPU3: patch_level=0x06003104
[ 0.375477] microcode: Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
[ 2.933799] [drm] Loading kaveri Microcode
VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri [Radeon R7 Graphics] (prog-if 00 [VGA controller])
Subsystem: ASRock Incorporation Device 130f
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 46
Region 0: Memory at c0000000 (64-bit, prefetchable) [size=256M]
Region 2: Memory at d0000000 (64-bit, prefetchable) [size=8M]
Region 4: I/O ports at f000 [size=256]
Region 5: Memory at ff700000 (32-bit, non-prefetchable) [size=256K]
Expansion ROM at ff740000 [disabled] [size=128K]
Capabilities: [48] Vendor Specific Information: Len=08 <?>
Capabilities: [50] Power Management version 3
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [58] Express (v2) Root Complex Integrated Endpoint, MSI 00
DevCap: MaxPayload 256 bytes, PhantFunc 0
ExtTag+ RBE+
DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
MaxPayload 128 bytes, MaxReadReq 512 bytes
DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
DevCap2: Completion Timeout: Not Supported, TimeoutDis-, LTR-, OBFF Not Supported
DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Address: 00000000fee0f00c Data: 41e3
Capabilities: [100 v1] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [270 v1] #19
Capabilities: [2b0 v1] Address Translation Service (ATS)
ATSCap: Invalidate Queue Depth: 00
ATSCtl: Enable-, Smallest Translation Unit: 00
Capabilities: [2c0 v1] #13
Capabilities: [2d0 v1] #1b
Kernel driver in use: radeon
Kernel modules: radeon
clinfo gave me
Number of platforms: 1
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 1.2 AMD-APP (1411.4)
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 cl_amd_hsa
Platform Name: AMD Accelerated Parallel Processing
Number of devices: 2
Device Type: CL_DEVICE_TYPE_GPU
Device ID: 4098
Board name: AMD Radeon(TM) R7 Graphics
Device Topology: PCI[ B#0, D#1, F#0 ]
Max compute units: 8
Max work items dimensions: 3
Max work items[0]: 256
Max work items[1]: 256
Max work items[2]: 256
Max work group size: 256
Preferred vector width char: 4
Preferred vector width short: 2
Preferred vector width int: 1
Preferred vector width long: 1
Preferred vector width float: 1
Preferred vector width double: 1
Native vector width char: 4
Native vector width short: 2
Native vector width int: 1
Native vector width long: 1
Native vector width float: 1
Native vector width double: 1
Max clock frequency: 720Mhz
Address bits: 32
Max memory allocation: 552861696
Image support: Yes
Max number of images read arguments: 128
Max number of images write arguments: 8
Max image 2D width: 16384
Max image 2D height: 16384
Max image 3D width: 2048
Max image 3D height: 2048
Max image 3D depth: 2048
Max samplers within kernel: 16
Max size of kernel argument: 1024
Alignment (bits) of base address: 2048
Minimum alignment (bytes) for any datatype: 128
Single precision floating point capability
Denorms: No
Quiet NaNs: Yes
Round to nearest even: Yes
Round to zero: Yes
Round to +ve and infinity: Yes
IEEE754-2008 fused multiply-add: Yes
Cache type: Read/Write
Cache line size: 64
Cache size: 16384
Global memory size: 2032140288
Constant buffer size: 65536
Max number of constant args: 8
Local memory type: Scratchpad
Local memory size: 32768
Kernel Preferred work group size multiple: 64
Error correction support: 0
Unified memory for Host and Device: 1
Profiling timer resolution: 1
Device endianess: Little
Available: Yes
Compiler available: Yes
Execution capabilities:
Execute OpenCL kernels: Yes
Execute native function: No
Queue properties:
Out-of-Order: No
Profiling : Yes
Platform ID: 0x00007f40b8c77500
Name: Spectre
Vendor: Advanced Micro Devices, Inc.
Device OpenCL C version: OpenCL C 1.2
Driver version: 1411.4 (VM)
Profile: FULL_PROFILE
Version: OpenCL 1.2 AMD-APP (1411.4)
Extensions: cl_khr_fp64 cl_amd_fp64 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_int64_base_atomics cl_khr_int64_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_khr_image2d_from_buffer cl_khr_spir
Device Type: CL_DEVICE_TYPE_CPU
Device ID: 4098
Board name:
Max compute units: 4
Max work items dimensions: 3
Max work items[0]: 1024
Max work items[1]: 1024
Max work items[2]: 1024
Max work group size: 1024
Preferred vector width char: 16
Preferred vector width short: 8
Preferred vector width int: 4
Preferred vector width long: 2
Preferred vector width float: 8
Preferred vector width double: 4
Native vector width char: 16
Native vector width short: 8
Native vector width int: 4
Native vector width long: 2
Native vector width float: 8
Native vector width double: 4
Max clock frequency: 3700Mhz
Address bits: 64
Max memory allocation: 2147483648
Image support: Yes
Max number of images read arguments: 128
Max number of images write arguments: 8
Max image 2D width: 8192
Max image 2D height: 8192
Max image 3D width: 2048
Max image 3D height: 2048
Max image 3D depth: 2048
Max samplers within kernel: 16
Max size of kernel argument: 4096
Alignment (bits) of base address: 1024
Minimum alignment (bytes) for any datatype: 128
Single precision floating point capability
Denorms: Yes
Quiet NaNs: Yes
Round to nearest even: Yes
Round to zero: Yes
Round to +ve and infinity: Yes
IEEE754-2008 fused multiply-add: Yes
Cache type: Read/Write
Cache line size: 64
Cache size: 16384
Global memory size: 7208714240
Constant buffer size: 65536
Max number of constant args: 8
Local memory type: Global
Local memory size: 32768
Kernel Preferred work group size multiple: 1
Error correction support: 0
Unified memory for Host and Device: 1
Profiling timer resolution: 1
Device endianess: Little
Available: Yes
Compiler available: Yes
Execution capabilities:
Execute OpenCL kernels: Yes
Execute native function: Yes
Queue properties:
Out-of-Order: No
Profiling : Yes
Platform ID: 0x00007f40b8c77500
Name: AMD A10-7850K APU with Radeon(TM) R7 Graphics
Vendor: AuthenticAMD
Device OpenCL C version: OpenCL C 1.2
Driver version: 1411.4 (sse2,avx,fma4)
Profile: FULL_PROFILE
Version: OpenCL 1.2 AMD-APP (1411.4)
Extensions: cl_khr_fp64 cl_amd_fp64 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_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_spir cl_amd_svm</div>
amd says to use it with the R7 250 for dual GPU.
but I don't want to use amd catalyst driver because catalyst-test crashes when testing opencl
and catalyst needs to downgrade packages, so this is the reason why I don't want amd's driver
Offline
Ok, so the APU comes with a Kaveri - GCN 1.1 chipset which is supported by libclc.
for clarity : You also have a dedicated grahics card of R7 250 type in this system ?
In your first post, libcl is mentioned as being installed.
That's the nvidia ICD loader, that seems to support OpenCL 1.0 only .
I suggest you install piglit-git from AUR, then run it's cl.py test profile (check piglit readme).
I think you should also do the same test with libopencl ( AMD ICD loader also in AUR) installed.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
no i have no dedicated gpu
i installed piglit but I really have no time to debug it
1 blackout@blackArch ~ % piglit run cl.py results :(
Traceback (most recent call last):
File "/usr/bin/piglit", line 152, in <module>
main()
File "/usr/bin/piglit", line 147, in main
returncode = parsed.func(args)
File "/usr/lib64/piglit/framework/programs/run.py", line 288, in run
profile = framework.profile.merge_test_profiles(args.test_profile)
File "/usr/lib64/piglit/framework/profile.py", line 457, in merge_test_profiles
profile = load_test_profile(profiles.pop())
File "/usr/lib64/piglit/framework/profile.py", line 435, in load_test_profile
os.path.splitext(os.path.basename(filename))[0]))
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/usr/lib64/piglit/tests/cl.py", line 119, in <module>
os.path.join(GENERATED_TESTS_DIR, 'cl', 'builtin', 'int'))
File "/usr/lib64/piglit/tests/cl.py", line 95, in add_program_test_dir
for filename in os.listdir(dirpath):
OSError: [Errno 2] No such file or directory: '/usr/lib64/piglit/generated_tests/cl/builtin/int'
yeah there is no builtin folder in the generated_tests folder
Offline