Welcome to MilkyWay@home

Posts by JohnRH

1) Message boards : Number crunching : GPU tasks with AMD ROCm (Message 66789)
Posted 20 Nov 2017 by JohnRH
I thought I might come in on this one since I've also been getting 'Computation errors' with these ATI/GPU workunits. Perhaps if other users can contribute their experiences some clues can be found.
My setup:
Ubuntu 17.10 amd64
BOINC 7.8.3

BOINC installation:

This last, with its dependencies, is needed because Ubuntu 17.10 comes with Mesa OpenCL and it works fine elsewhere. It's been my past experience that keeping to Ubuntu packages wherever possible tends to produce better results than what I call 'outside stuff'. I'm not familiar with the drivers others are using.

So here's what I'm now seeing in my error messages:
Stderr output

process exited with code 1 (0x1, -255)</message>
<search_application> milkyway_separation 1.46 Linux x86_64 double OpenCL </search_application>
Reading preferences ended prematurely
BOINC GPU type suggests using OpenCL vendor 'Advanced Micro Devices, Inc.'
Setting process priority to 0 (13): Permission denied
Error loading Lua script 'astronomy_parameters.txt': [string "number_parameters: 4..."]:1: '<name>' expected near '4'
Switching to Parameter File 'astronomy_parameters.txt'
<number_WUs> 5 </number_WUs>
<number_params_per_WU> 20 </number_params_per_WU>
Using AVX path
Found 1 platform
Platform 0 information:
Name: Clover
Version: OpenCL 1.1 Mesa 17.2.2
Vendor: Mesa
Extensions: cl_khr_icd
Didn't find preferred platform
Using device 0 on platform 0
Found 1 CL device
Device 'AMD KAVERI (DRM 2.50.0 / 4.13.0-16-generic, LLVM 5.0.0)' (AMD:0x1002) (CL_DEVICE_TYPE_GPU)
Driver version: 17.2.2
Version: OpenCL 1.1 Mesa 17.2.2
Compute capability: 0.0
Max compute units: 6
Clock frequency: 720 Mhz
Global mem size: 2138722304
Local mem size: 32768
Max const buf size: 1497105612
Double extension: cl_khr_fp64
clBuildProgram: Build failure (-11): CL_BUILD_PROGRAM_FAILURE
Error building program from source (-11): CL_BUILD_PROGRAM_FAILURE
Error creating integral program from source
Failed to calculate likelihood
Using AVX path...
...and so on.

Although it's still failing I'm getting closer to the truth than you since platform and device have been identified correctly. (If we're unsure what version we have, running clinfo will tell us.) So it seems to reduce to an error CL_BUILD_PROGRAM_FAILURE. I don't know whether this provides any clue but it does imply that Milkyway ATI/GPU units don't like Mesa OpenCL drivers.

Whether this helps or not, here it is anyway!

As a footnote, my setup runs Einstein@home ATI/GPU workunits perfectly well, so an answer must be possible.
2) Message boards : News : Server Maintenance Concluded (Message 64620)
Posted 4 Jun 2016 by JohnRH
Ubuntu 16.04 amd64
BOINC 7.6.31.

I've had this same problem for a while, since before your recent shutdown, and still have it. I've seen from other threads that it's a rather old one!
It's a shame, since I now have einstein@home crunching GPU units with OpenCL quite happily. However, this only got working following some good advice from Aaron Puchert over there. Seemingly the Ubuntu libclc packages are currently out-of-date (0.2.0+git20150813-2), but an update is available from 'git clone http://llvm.org/git/libclc.git'. This did the trick for einstein.
I don't know if this is relevant to milkyway or not, but might provide a clue.
3) Message boards : Number crunching : Updated GPU Requirements (Message 64534)
Posted 5 May 2016 by JohnRH
As an afterthought I should have mentioned that I'm using the default Ubuntu graphics drivers. Fglrx is deprecated in 16.04.
4) Message boards : Number crunching : Updated GPU Requirements (Message 64533)
Posted 5 May 2016 by JohnRH
I'd like to add my own situation here, since this thread seems to have the most recent info on this common question.

Running online upgrade to Ubuntu 16.04 amd64.
BOINC: 7.6.31.
CPU/GPU: AMD A10-7700K Radeon R7.
These extracts from the Event Log show the key points...

Thu 05 May 2016 12:40:45 ICT | | OpenCL: AMD/ATI GPU 0: AMD KAVERI (DRM 2.43.0, LLVM 3.8.0) (driver version 11.2.0, device version OpenCL 1.1 MESA 11.2.0, 1024MB, 1024MB available, 346 GFLOPS peak)
Thu 05 May 2016 12:40:45 ICT | | Host name: john-desktop
Thu 05 May 2016 12:40:45 ICT | | Processor: 4 AuthenticAMD AMD A10-7700K Radeon R7, 10 Compute Cores 4C+6G [Family 21 Model 48 Stepping 1]

This shows that Ubuntu 16.04 can use OpenCL if everything installed, and that OpenCL sees KAVERI as a platform. So far so good? But further down we see...

Thu 05 May 2016 12:53:59 ICT | Milkyway@Home | No tasks sent
Thu 05 May 2016 12:53:59 ICT | Milkyway@Home | Message from server: ATI GPU R600 (R38xx) does not support OpenCL
Thu 05 May 2016 12:53:59 ICT | Milkyway@Home | Tasks for NVIDIA GPU are available, but your preferences are set to not accept them

First question is why doesn't m@h correctly detect the KAVERI AMD APU in use, as BOINC does?
Second, I see some AMD GPUs are cited below, but does anyone know if the R7 series should be able to run GPU units?

I know this is rather an old one, but maybe someone has some ideas. Thanks in advance.

©2021 Astroinformatics Group