Bitcoin Forum

Bitcoin => Mining support => Topic started by: Vigil on May 16, 2013, 11:59:41 PM



Title: Unable to detect more than 1 GPU in Ubuntu 12.04
Post by: Vigil on May 16, 2013, 11:59:41 PM
So I had three of my 7950 cards running in Windows and one 7950 in Ubuntu but finally consolidated them to a dedicated Ubuntu 12,04 platform so I could get my main system back. However, I am unable to get more than one GPU detected and running in CGminer. I have followed all instructions at this site:

http://decryption.wordpress.com/2013/04/22/mining-litecoin-with-cgminer-ubuntu-12-10/

I have also substituted the AMD-SDK 2.7 for 2.8 and used 12.8 drivers instead of 13.1. Still doesn't work. I though maybe I needed the dummy monitors for the GPUs so I tried hooking up a monitor to one of the other GPUs, still only detects one.

Any suggestions would be appreciated.


Title: Re: Unable to detect more than 1 GPU in Ubuntu 12.04
Post by: Vigil on May 17, 2013, 02:23:12 AM
I think maybe my CFLAGS aren't set correctly...

Here is what I set it to:
Code:
 CFLAGS="-O2 -Wall -march=native -I /opt/AMDAPP/include/"


And it isn't reflected after the ./configure

Quote
Compilation............: make (or gmake)
  CPPFLAGS.............:
  CFLAGS...............: -g -O2
  LDFLAGS..............:  -lpthread
  LDADD................: -ldl -lcurl   compat/jansson/libjansson.a -lpthread -L/opt/AMDAPP/lib/x86_64 -lOpenCL    -lm 

Installation...........: make install (as root if needed, with 'su' or 'sudo')
  prefix...............: /usr/local


Title: Re: Unable to detect more than 1 GPU in Ubuntu 12.04
Post by: -ck on May 17, 2013, 10:33:05 AM
Reconfigure xorg to use more GPUs
Code:
sudo aticonfig -f --adapter=all --initial


Title: Re: Unable to detect more than 1 GPU in Ubuntu 12.04
Post by: kxxxmxxx on May 17, 2013, 05:08:31 PM
have similar problem, but I also have same problem under Windows.
will try the suggestions, thanks


Title: Re: Unable to detect more than 1 GPU in Ubuntu 12.04
Post by: Vigil on May 17, 2013, 08:47:15 PM
Reconfigure xorg to use more GPUs
Code:
sudo aticonfig -f --adapter=all --initial


Thanks... but I've tried - Ati recognizes cards but CGMiner does not:

Code:
~$ aticonfig --lsa
* 0. 01:00.0 AMD Radeon HD 7900 Series
  1. 00:01.0 AMD Radeon HD 7480D
  2. 02:00.0 AMD Radeon HD 7900 Series
  3. 03:00.0 AMD Radeon HD 7900 Series
  4. 05:00.0 AMD Radeon HD 7900 Series

Here is the CGMiner configuration:

Code:
./cgminer -n
 [2013-05-17 16:46:01] CL Platform 0 vendor: Advanced Micro Devices, Inc.                    
 [2013-05-17 16:46:01] CL Platform 0 name: AMD Accelerated Parallel Processing                    
 [2013-05-17 16:46:01] CL Platform 0 version: OpenCL 1.2 AMD-APP (1084.4)                    
 [2013-05-17 16:46:01] Platform 0 devices: 1                    
 [2013-05-17 16:46:01] 0 Tahiti                    
 [2013-05-17 16:46:01] Failed to ADL_Adapter_ID_Get. Error -1                    
 [2013-05-17 16:46:01] Failed to ADL_Adapter_ID_Get. Error -1                    
 [2013-05-17 16:46:01] ADL found less devices than opencl!                    
 [2013-05-17 16:46:01] There is possibly more than one display attached to a GPU                    
 [2013-05-17 16:46:01] Use the gpu map feature to reliably map OpenCL to ADL                    
 [2013-05-17 16:46:01] WARNING: Number of OpenCL and ADL devices did not match!                    
 [2013-05-17 16:46:01] Hardware monitoring may NOT match up with devices!                    
 [2013-05-17 16:46:01] [color=red][b]1 GPU devices max detected[/b][/color]


Title: Re: Unable to detect more than 1 GPU in Ubuntu 12.04
Post by: -ck on May 17, 2013, 10:39:58 PM
GPU-README


Title: Re: Unable to detect more than 1 GPU in Ubuntu 12.04
Post by: Vigil on May 17, 2013, 11:36:58 PM
GPU-README

Did it. I've tried this installation about 10 times now - literally.

For whatever reason it isn't accepting the CFLAGS.


Title: Re: Unable to detect more than 1 GPU in Ubuntu 12.04
Post by: -ck on May 17, 2013, 11:39:19 PM
Did you export DISPLAY ?


Title: Re: Unable to detect more than 1 GPU in Ubuntu 12.04
Post by: Vigil on May 17, 2013, 11:40:34 PM
Did you export DISPLAY ?

Yep.

export DISPLAY=:0


EIDT: I am going to try the 2.7 SDK again.