Bitcoin Forum
November 19, 2024, 10:42:49 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Cgminer Xubuntu not detecting GPU's  (Read 5906 times)
Clearfly (OP)
Full Member
***
Offline Offline

Activity: 143
Merit: 100



View Profile
April 20, 2013, 03:17:53 AM
 #1

After trying Ubuntu 12.04 and it totally failing to even install ATI drivers correctly i moved onto trying Xubuntu 12.04 with a slight improvment.

Aticonfig is detecting my cards correctly but CGMiner is not detecting any of them.

Code:
xubuntu@xubuntu:~/cgminer-master$ sudo aticonfig --adapter=all --odgt

Adapter 0 - ATI Radeon HD 5800 Series
            Sensor 0: Temperature - 42.00 C

Adapter 1 - ATI Radeon HD 5800 Series
            Sensor 0: Temperature - 35.00 C

Adapter 2 - ATI Radeon HD 5800 Series
            Sensor 0: Temperature - 35.50 C
xubuntu@xubuntu:~/cgminer-master$ export DISPLAY=:0
xubuntu@xubuntu:~/cgminer-master$ export GPU_USE_SYNC_OBJECTS=1
xubuntu@xubuntu:~/cgminer-master$ ./cgminer -n
 [2013-04-20 02:57:33] CL Platform 0 vendor: Advanced Micro Devices, Inc.                   
 [2013-04-20 02:57:33] CL Platform 0 name: AMD Accelerated Parallel Processing                   
 [2013-04-20 02:57:33] CL Platform 0 version: OpenCL 1.2 AMD-APP (1113.2)                   
 [2013-04-20 02:57:33] Error -1: Getting Device IDs (num)                   
 [2013-04-20 02:57:33] clDevicesNum returned error, no GPUs usable                   
 [2013-04-20 02:57:33] 0 GPU devices max detected 

Any ideas?

Running Headless USB Xubuntu 12.04

Graphics Drivers: sudo fglrx fglrx-amdcccle fglrx-dev
Then intitialized with: sudo aticonfig --adapter=all --initial
Then AMD SDK 2.8, ADL 5.0, CGMiner Master branch.
Rebooted inbetween etc.

CGMiner Build Instructions and Output:
Code:
xubuntu@xubuntu:~/cgminer-master$ ./autogen.sh
Running autoreconf -if...
Configuring...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for ranlib... ranlib
checking whether gcc needs -traditional... no
checking whether gcc and cc understand -c and -o together... yes
checking for ranlib... (cached) ranlib
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for stdint.h... (cached) yes
checking for mprotect... yes
checking for sigaction... yes
checking for sigaltstack... yes
checking for siginterrupt... yes
checking for mmap... yes
checking for MAP_ANONYMOUS... yes
checking whether memchr works... yes
checking whether memmem is declared... yes
checking for memmem... yes
checking whether memmem works... yes
checking for C/C++ restrict keyword... __restrict
checking for uid_t in sys/types.h... yes
checking for inline... inline
checking whether the preprocessor supports include_next... yes
checking whether system header files limit the line length... no
checking for wchar_t... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking whether stdint.h conforms to C99... yes
checking whether memmem is declared without a macro... yes
checking whether mempcpy is declared without a macro... yes
checking whether memrchr is declared without a macro... yes
checking whether rawmemchr is declared without a macro... yes
checking whether stpcpy is declared without a macro... yes
checking whether stpncpy is declared without a macro... yes
checking whether strchrnul is declared without a macro... yes
checking whether strdup is declared without a macro... yes
checking whether strncat is declared without a macro... yes
checking whether strndup is declared without a macro... yes
checking whether strnlen is declared without a macro... yes
checking whether strpbrk is declared without a macro... yes
checking whether strsep is declared without a macro... yes
checking whether strcasestr is declared without a macro... yes
checking whether strtok_r is declared without a macro... yes
checking whether strerror_r is declared without a macro... yes
checking whether strsignal is declared without a macro... yes
checking whether strverscmp is declared without a macro... yes
checking whether memmem works in linear time... yes
checking for memmem... (cached) yes
checking whether memmem works... (cached) yes
checking for struct sigaction.sa_sigaction... yes
checking for volatile sig_atomic_t... yes
checking for sighandler_t... yes
checking whether sigaction is declared without a macro... yes
checking whether sigaddset is declared without a macro... yes
checking whether sigdelset is declared without a macro... yes
checking whether sigemptyset is declared without a macro... yes
checking whether sigfillset is declared without a macro... yes
checking whether sigismember is declared without a macro... yes
checking whether sigpending is declared without a macro... yes
checking whether sigprocmask is declared without a macro... yes
checking for sigprocmask... yes
checking whether NULL can be used in arbitrary expressions... yes
checking for ANSI C header files... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for OpenCL... yes
checking for pthread_create in -lpthread... yes
checking for json_loads in -ljansson... no
checking for ./ADL_SDK/adl_sdk.h... yes
checking for library containing addstr... -lncurses
checking for yasm... /usr/bin/yasm
checking if yasm version is greater than 1.0.1... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBCURL... no
checking for LIBCURL... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating compat/Makefile
config.status: creating compat/jansson/Makefile
config.status: creating x86_64/Makefile
config.status: creating x86_32/Makefile
config.status: creating ccan/Makefile
config.status: creating lib/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands



------------------------------------------------------------------------
cgminer 2.11.4
------------------------------------------------------------------------


Configuration Options Summary:

  curses.TUI...........: FOUND: -lncurses
  OpenCL...............: FOUND. GPU mining support enabled
  scrypt...............: Disabled
  ADL..................: SDK found, GPU monitoring support enabled

  Avalon.ASICs.........: Disabled
  BFL.ASICs............: Disabled
  BitForce.FPGAs.......: Disabled
  Icarus.FPGAs.........: Disabled
  ModMiner.FPGAs.......: Disabled
  Ztex.FPGAs...........: Disabled

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

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

xubuntu@xubuntu:~/cgminer-master$ CFLAGS="-O2 -Wall -march=native -I /opt/AMDAPP/include/" LDFLAGS="-L/opt/AMDAPP/lib/x86" ./configure --enable-scrypt
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for ranlib... ranlib
checking whether gcc needs -traditional... no
checking whether gcc and cc understand -c and -o together... yes
checking for ranlib... (cached) ranlib
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for stdint.h... (cached) yes
checking for mprotect... yes
checking for sigaction... yes
checking for sigaltstack... yes
checking for siginterrupt... yes
checking for mmap... yes
checking for MAP_ANONYMOUS... yes
checking whether memchr works... yes
checking whether memmem is declared... yes
checking for memmem... yes
checking whether memmem works... yes
checking for C/C++ restrict keyword... __restrict
checking for uid_t in sys/types.h... yes
checking for inline... inline
checking whether the preprocessor supports include_next... yes
checking whether system header files limit the line length... no
checking for wchar_t... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking whether stdint.h conforms to C99... yes
checking whether memmem is declared without a macro... yes
checking whether mempcpy is declared without a macro... yes
checking whether memrchr is declared without a macro... yes
checking whether rawmemchr is declared without a macro... yes
checking whether stpcpy is declared without a macro... yes
checking whether stpncpy is declared without a macro... yes
checking whether strchrnul is declared without a macro... yes
checking whether strdup is declared without a macro... yes
checking whether strncat is declared without a macro... yes
checking whether strndup is declared without a macro... yes
checking whether strnlen is declared without a macro... yes
checking whether strpbrk is declared without a macro... yes
checking whether strsep is declared without a macro... yes
checking whether strcasestr is declared without a macro... yes
checking whether strtok_r is declared without a macro... yes
checking whether strerror_r is declared without a macro... yes
checking whether strsignal is declared without a macro... yes
checking whether strverscmp is declared without a macro... yes
checking whether memmem works in linear time... yes
checking for memmem... (cached) yes
checking whether memmem works... (cached) yes
checking for struct sigaction.sa_sigaction... yes
checking for volatile sig_atomic_t... yes
checking for sighandler_t... yes
checking whether sigaction is declared without a macro... yes
checking whether sigaddset is declared without a macro... yes
checking whether sigdelset is declared without a macro... yes
checking whether sigemptyset is declared without a macro... yes
checking whether sigfillset is declared without a macro... yes
checking whether sigismember is declared without a macro... yes
checking whether sigpending is declared without a macro... yes
checking whether sigprocmask is declared without a macro... yes
checking for sigprocmask... yes
checking whether NULL can be used in arbitrary expressions... yes
checking for ANSI C header files... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for OpenCL... yes
checking for pthread_create in -lpthread... yes
checking for json_loads in -ljansson... no
checking for ./ADL_SDK/adl_sdk.h... yes
checking for library containing addstr... -lncurses
checking for yasm... /usr/bin/yasm
checking if yasm version is greater than 1.0.1... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBCURL... no
checking for LIBCURL... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating compat/Makefile
config.status: creating compat/jansson/Makefile
config.status: creating x86_64/Makefile
config.status: creating x86_32/Makefile
config.status: creating ccan/Makefile
config.status: creating lib/Makefile
config.status: creating config.h
config.status: executing depfiles commands



------------------------------------------------------------------------
cgminer 2.11.4
------------------------------------------------------------------------


Configuration Options Summary:

  curses.TUI...........: FOUND: -lncurses
  OpenCL...............: FOUND. GPU mining support enabled
  scrypt...............: Enabled
  ADL..................: SDK found, GPU monitoring support enabled

  Avalon.ASICs.........: Disabled
  BFL.ASICs............: Disabled
  BitForce.FPGAs.......: Disabled
  Icarus.FPGAs.........: Disabled
  ModMiner.FPGAs.......: Disabled
  Ztex.FPGAs...........: Disabled

Compilation............: make (or gmake)
  CPPFLAGS.............:
  CFLAGS...............: -O2 -Wall -march=native -I /opt/AMDAPP/include/
  LDFLAGS..............: -L/opt/AMDAPP/lib/x86 -lpthread
  LDADD................: -ldl -lcurl   compat/jansson/libjansson.a -lpthread -L/opt/AMDAPP/lib/x86 -lOpenCL    -lm 

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

xubuntu@xubuntu:~/cgminer-master$ sudo make install
Making install in lib
make[1]: Entering directory `/home/xubuntu/cgminer-master/lib'
  GEN    signal.h
  GEN    string.h
make  install-recursive
make[2]: Entering directory `/home/xubuntu/cgminer-master/lib'
make[3]: Entering directory `/home/xubuntu/cgminer-master/lib'
make[4]: Entering directory `/home/xubuntu/cgminer-master/lib'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/home/xubuntu/cgminer-master/lib'
make[3]: Leaving directory `/home/xubuntu/cgminer-master/lib'
make[2]: Leaving directory `/home/xubuntu/cgminer-master/lib'
make[1]: Leaving directory `/home/xubuntu/cgminer-master/lib'
Making install in compat
make[1]: Entering directory `/home/xubuntu/cgminer-master/compat'
Making install in jansson
make[2]: Entering directory `/home/xubuntu/cgminer-master/compat/jansson'
make[3]: Entering directory `/home/xubuntu/cgminer-master/compat/jansson'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/xubuntu/cgminer-master/compat/jansson'
make[2]: Leaving directory `/home/xubuntu/cgminer-master/compat/jansson'
make[2]: Entering directory `/home/xubuntu/cgminer-master/compat'
make[3]: Entering directory `/home/xubuntu/cgminer-master/compat'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/xubuntu/cgminer-master/compat'
make[2]: Leaving directory `/home/xubuntu/cgminer-master/compat'
make[1]: Leaving directory `/home/xubuntu/cgminer-master/compat'
Making install in ccan
make[1]: Entering directory `/home/xubuntu/cgminer-master/ccan'
  CC     libccan_a-helpers.o
  CC     libccan_a-opt.o
  CC     libccan_a-parse.o
  CC     libccan_a-usage.o
  AR     libccan.a
make[2]: Entering directory `/home/xubuntu/cgminer-master/ccan'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/xubuntu/cgminer-master/ccan'
make[1]: Leaving directory `/home/xubuntu/cgminer-master/ccan'
make[1]: Entering directory `/home/xubuntu/cgminer-master'
  CC     cgminer-cgminer.o
  CC     cgminer-util.o
  CC     cgminer-sha2.o
  CC     cgminer-api.o
  CC     cgminer-logging.o
  CC     cgminer-driver-opencl.o
  CC     cgminer-ocl.o
  CC     cgminer-findnonce.o
  CC     cgminer-adl.o
  CC     cgminer-scrypt.o
  CCLD   cgminer
make[2]: Entering directory `/home/xubuntu/cgminer-master'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
  /usr/bin/install -c cgminer '/usr/local/bin'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
 /usr/bin/install -c ./diablo130302.cl ./diakgcn121016.cl ./phatk121016.cl ./poclbm130302.cl ./scrypt130302.cl '/usr/local/bin'
test -z "" || /bin/mkdir -p ""
make[2]: Leaving directory `/home/xubuntu/cgminer-master'
make[1]: Leaving directory `/home/xubuntu/cgminer-master'
Clearfly (OP)
Full Member
***
Offline Offline

Activity: 143
Merit: 100



View Profile
April 20, 2013, 04:11:19 PM
 #2

Fixed by installing the 'Experimental Beta' proprietary drivers from AMD via the 'Additional Drivers' in the settings panel.
The very drivers most the guides say NOT to use?Huh  Huh Huh Huh
-ck
Legendary
*
Offline Offline

Activity: 4298
Merit: 1645


Ruu \o/


View Profile WWW
April 20, 2013, 11:05:51 PM
 #3

Fixed by installing the 'Experimental Beta' proprietary drivers from AMD via the 'Additional Drivers' in the settings panel.
The very drivers most the guides say NOT to use?Huh  Huh Huh Huh
Which exact versions did you use and find worked?

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Clearfly (OP)
Full Member
***
Offline Offline

Activity: 143
Merit: 100



View Profile
April 20, 2013, 11:56:45 PM
 #4

Turns out it didn't quite fix things.

Cgminer now detects the cards but it just generates Hardware errors.

Not sure what version as it didn't say, just said 'Experimental Beta Drivers' so i guess it was 13.3.
Probably the version listed here is what it installed:
http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx?type=2.4.1&product=2.4.1.3.42&lang=English

So far Version 13 either fails to compile correctly or generates hardware errors in both Ubuntu 12.04/Xubuntu 12.04
Standard flgrx (i assume these are the open source drivers) failed to work.

So i'm working my way down this list now until i find one that does work:
http://support.amd.com/us/gpudownload/linux/previous/Pages/radeon_linux.aspx
FreedomCoin
Hero Member
*****
Offline Offline

Activity: 675
Merit: 507


Freedom to choose


View Profile
April 21, 2013, 04:07:47 PM
 #5

when i used 13.x and rebooted unity wouldnt come back... i would get sound but never get the login page. so i used 11.x series drivers since on ubuntu.

PatMan
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1000


Watch out for the "Neg-Rep-Dogie-Police".....


View Profile WWW
April 21, 2013, 06:19:50 PM
 #6

I've been using driver 11.11 with included 2.5 sdk on my headless Xubuntu 12.04 setups with great results on 5xxx series cards, suggest you give them a go. Great guide here also for ya:

https://docs.google.com/document/d/1Gw7YPYgMgNNU42skibULbJJUx_suP_CpjSEdSi8_z9U/edit?pli=1

Good luck, hope it helps.

Peace.  Grin

EDIT: Remember, you've got to make sure you get rid of every old driver & sdk file completely when changing, and delete all cgminer .bin files as well, but you probably know that.....lol

"When one person is deluded it is called insanity - when many people are deluded it is called religion" - Robert M. Pirsig.  I don't want your coins, I want change.
Amazon UK BTC payment service - https://bitcointalk.org/index.php?topic=301229.0 - with FREE delivery!
http://www.ae911truth.org/ - http://rethink911.org/ - http://rememberbuilding7.org/
Peleus
Member
**
Offline Offline

Activity: 112
Merit: 100


View Profile
April 22, 2013, 03:36:15 AM
 #7

Use APP SDK 2.7 instead of 2.8, and use Catalyst 12.8 instead of 13.3.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!