Bitcoin Forum

Other => Beginners & Help => Topic started by: ChristianRiesen on May 12, 2013, 06:40:45 PM



Title: Compiling cgminer from github with working ADL
Post by: ChristianRiesen on May 12, 2013, 06:40:45 PM
I have been messing about with this for about 3 days now and nowhere near to a solution.

Using Ubuntu 13.04, 64 bit, I download the catalyst driver (amd-catalyst-13.4-linux-x86.x86_64.zip), appsdk (AMD-APP-SDK-v2.8-lnx64.tgz) and ADL (ADL_SDK_5.0.zip) from AMD. I Install catalyst, reboot. Install app SDK, reboot. Pull cgminer, then put the ADL files in the cgminer folder for them. I run autogen (which runs but of course fails at the end saying no GPU found, so no mining added). Then I run this:
CFLAGS="-O2 -Wall -march=native -I/opt/AMDAPP/include" LDFLAGS="-L/opt/AMDAPP/lib/x86_64" ./configure --enable-scrypt

And of course make.

The result is a cgminer working just fine, except for the message about ADL and CL not matching up. Seems like ADL can't query the card (7950). It's like ADL sees NOTHING, even if I add a second card.

Now I can only mess around with the setting for intensity, nothing with the core or memory speed, and to top it off I'm blind to heat and fan RPM.

Has anyone gotten this to work, and if so, how?

I tried the compiled binary, but that goes the same way.


Title: Re: Compiling cgminer from github with working ADL
Post by: ChristianRiesen on May 12, 2013, 06:41:20 PM
On a side note: I can repeat this on two different machines, the other having a 5770 card in it.


Title: Re: Compiling cgminer from github with working ADL
Post by: kevind on July 27, 2013, 03:06:19 AM
I'm currently experiencing the same thing. I've been playing around with this for a few evenings and can't figure out how to solve it. Here's the output from "cgminer -n"

Code:
[2013-07-26 22:04:22] CL Platform 0 vendor: Advanced Micro Devices, Inc.                    
[2013-07-26 22:04:22] CL Platform 0 name: AMD Accelerated Parallel Processing                    
[2013-07-26 22:04:22] CL Platform 0 version: OpenCL 1.2 AMD-APP (1214.3)                    
[2013-07-26 22:04:22] Platform 0 devices: 1                    
[2013-07-26 22:04:22]  0       Cypress                    
[2013-07-26 22:04:22] Failed to ADL_Adapter_ID_Get. Error -1                    
[2013-07-26 22:04:22] ADL found less devices than opencl!                    
[2013-07-26 22:04:22] There is possibly more than one display attached to a GPU                    
[2013-07-26 22:04:22] Use the gpu map feature to reliably map OpenCL to ADL                    
[2013-07-26 22:04:22] WARNING: Number of OpenCL and ADL devices did not match!                    
[2013-07-26 22:04:22] Hardware monitoring may NOT match up with devices!                    
[2013-07-26 22:04:22] 1 GPU devices max detected

I'm able to mine litecoins fine but I would like to monitor GPU temperatures and tweak some of the clock speeds.

I've tried to play around with the adlutil program that comes with the ADL SDK and found that fails on the very first "real" ADL function call: ADL_Main_Control_Create().

Here's my setup in case it helps:

Ubuntu 13.04 64-bit
Sapphire HD 5870
AMD Catalyst 13.4
AMD APP SDK v2.8.1.0
ADL SDK 5.0

I would love to hear any suggestions for troubleshooting or anything that I can try. I've followed all the instructions to install ADL into the cgminer source and can build it as described above.


Title: Re: Compiling cgminer from github with working ADL
Post by: kevind on July 30, 2013, 05:15:00 AM
Based on this thread here (https://bitcointalk.org/index.php?topic=216320.0) I decided to install X11 on my server. That seems to have fixed the issue. I guess one of the libraries (ADL?) requires some initialization by a running X server. I can now monitor GPU heat and fan temps and the values for the memory and gpu clock speeds seem to be having some effect.