Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: gogo7901 on January 20, 2014, 12:19:51 PM



Title: CGMINER problems over LINUX
Post by: gogo7901 on January 20, 2014, 12:19:51 PM
Hi to all,
 I have 3 ( three ) card R9 290 sapphire
I'm trying almost a week to run them to mine litecoins on Linux ( Debian ) without success
On Linux everything seems OK:


root@miner:~/app-sdk#  lspci
----------------------------------------------------------------------------------------------------
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii PRO [Radeon R9 290]
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device aac8
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii PRO [Radeon R9 290]
02:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device aac8
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii PRO [Radeon R9 290]
05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device aac8
----------------------------------------------------------------------------------------------------

Installed software :::


- 13.11-betaV9.95 ( from January )
- APP-SDK-v2.9
- latest ADL  - only includes



ati config returns

root@miner:~/cgminer-3.7.2# aticonfig --lsa
* 0. 01:00.0 AMD Radeon R9 290 Series
  1. 02:00.0 AMD Radeon R9 290 Series
  2. 05:00.0 AMD Radeon R9 290 Series

* - Default adapter

I see all cards in dev ...

root@miner:~/app-sdk#  ls -la /dev/ati/*
crw-rw-rw- 1 root root 251, 0 Jan 20 12:08 /dev/ati/card0
crw-rw-rw- 1 root root 251, 1 Jan 20 12:08 /dev/ati/card1
crw-rw-rw- 1 root root 251, 2 Jan 20 12:08 /dev/ati/card2


My kernel is :

root@miner:~/app-sdk# uname -a
Linux miner 3.12-1-amd64 #1 SMP Debian 3.12.6-2 (2013-12-29) x86_64 GNU/Linux


So till now looks great !

After that

I compile cgminer
./configure with these options for 3.7.2


------------------------------------------------------------------------
cgminer 3.7.2
------------------------------------------------------------------------


Configuration Options Summary:

  libcurl(GBT+getwork).: Enabled: -lcurl
  curses.TUI...........: FOUND: -lncurses
  OpenCL...............: FOUND. GPU mining support enabled
  scrypt...............: Enabled
  ADL..................: SDK found, GPU monitoring support enabled


I set these lines in /etc/profile

export DISPLAY=:0
export GPU_MAX_ALLOC_PERCENT=100
export GPU_USE_SYNC_OBJECTS=1
export XAUTHORITY=/.Xauthority



After all this I reboot and check it again ...

and than


 ./cgminer --scrypt -o stratum+tcp://spare.ozco.in:9333 -u XXXX -p XXXX --syslog


and I see in syslog :

Jan 20 13:55:57 miner cgminer: Started cgminer 3.7.2
Jan 20 13:55:57 miner cgminer: CL Platform 0 vendor: Advanced Micro Devices, Inc.
Jan 20 13:55:57 miner cgminer: CL Platform 0 name: AMD Accelerated Parallel Processing
Jan 20 13:55:57 miner cgminer: CL Platform 0 version: OpenCL 1.2 AMD-APP (1214.3)
Jan 20 13:55:57 miner cgminer: Error -1: Getting Device IDs (num)
Jan 20 13:55:57 miner cgminer: clDevicesNum returned error, no GPUs usable
Jan 20 13:55:57 miner cgminer: All devices disabled, cannot mine!


So cgminer did not see GPU devices... Question is why ? :(
What am I doing wrong ?

Please advice ...

Regards,
 Georgi 






Title: Re: CGMINER problems over LINUX
Post by: Shahrukh on January 20, 2014, 01:17:24 PM
make a swap file:
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile
install git
sudo apt-get install git
clone gpu miner
git clone https://github.com/pooler/cpuminer.git
compile the source code
sudo apt-get install build-essential libcurl4-openssl-dev automake make

cd cpuminer

#Basic *nix build instructions:
./autogen.sh    # only needed if building from git repo (which we are)
CFLAGS="-O3 -Wall -msse2" ./configure
make

./minerd --url http://whatever.poolyouwant.com:Port/ --userpass 
USERNAME:password



Title: Re: CGMINER problems over LINUX
Post by: gogo7901 on January 21, 2014, 07:53:31 AM
I have already swap
 And why I need minerd ( it is only CPU miner ) ... as I can see

I compiled it .. but same I see only CPU .. nothing more...



Title: Re: CGMINER problems over LINUX
Post by: turtle83 on January 21, 2014, 10:07:12 AM
did you try running cgminer as root?

Havent GPU mined for ages, but i recalled having issues using GPU in headless setup, needed to be logged into some form of xwindow system...


Title: Re: CGMINER problems over LINUX
Post by: crazyates on January 21, 2014, 11:52:44 AM
Delete your /etc/X11/xorg.conf

Then run "sudo aticonfig --adapter=all --initial --force"

then do "cgminer -n"

Do you see all your GPUs?


Title: Re: CGMINER problems over LINUX
Post by: Syzygy123 on February 24, 2014, 02:48:55 AM
I'm running into the same issue with Debian stable and 14.1 drivers. Did you ever resolve the issue?