Bitcoin Forum
August 08, 2024, 06:22:41 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Other / Beginners & Help / Re: CGMiner 3.1.0 built under linux, then segfault on execution on: May 31, 2013, 07:16:00 AM
Hi Christian,

Could you eventually reproduce this error and do you have a resolution for this? I experience the same message with OpenSuSE 12.2 and CGminer 3.1.0.

aticonfig --lsa recognizes my two graphi9cs cards OK, configure and make install do also work flawlessly.

Thanks

Schland

Hi

I made mistakes that far back that resulted in a rather ugly binary. I have since refined the process and can reproduce a stable version with working ADL in it on 3 different machines. I'm working on a tutorial for that as of now Smiley
2  Bitcoin / Mining software (miners) / Re: CGMINER ASIC FPGA GPU overc monit fanspd RPC linux/win/osx/mip/r-pi 3.1.1 on: May 16, 2013, 10:35:12 AM
Thanks guys, your posts have helped me along to the right path. Although I was sure that X was correctly installed and running, it was not. Doing this first, then starting cgminer fixed it all up:
Code:
aptitude install xserver-xorg
X &

Thank you very much. I was starting to loose my mind over this Smiley
3  Bitcoin / Mining software (miners) / Re: CGMINER ASIC FPGA GPU overc monit fanspd RPC linux/win/osx/mip/r-pi 3.1.1 on: May 16, 2013, 10:20:03 AM

 [2013-05-15 22:53:04] Started cgminer 3.1.1
 [2013-05-15 22:53:05] ADL found less devices than opencl!
 [2013-05-15 22:53:05] There is possibly more than one display attached to a GPU
 [2013-05-15 22:53:05] Use the gpu map feature to reliably map OpenCL to ADL
 [2013-05-15 22:53:05] WARNING: Number of OpenCL and ADL devices did not match!
 [2013-05-15 22:53:05] Hardware monitoring may NOT match up with devices!
 

Check this thread and see if its the same or similar problem.

https://bitcointalk.org/index.php?topic=178241.msg1857068#msg1857068

Thank you for the link. I came across this before but it isn't the problem. I tried it with real screens attached (and powered on) and that didn't change anything. The issue is not getting a nagging message, it's ADL not working with that "Failed to ADL_Adapter_ID_Get. Error -1" message.

...
The only thing I want to keep is Linux, I really don't want to switch to windows on these boxes if I can avoid it. What kind of Linux, I don't really care as long as I get the temperature, fanspeed and gpu settings to work.

If there is any more data I can deliver, please let me know.
ADL requires correct X access.
Here's something to try see if X access is correct:
DISPLAY=:0 xlsfonts
(of course you need xlsfonts installed - use some other X program if you don't - xlsfonts doesn't open a window - just reports information)

Maybe gpu map is your solution (as it says to use)

Otherwise ... at a guess ... ADL version?

Edit: oh forgot, also on the 2 rig machine, you need to have done (in case you missed it) sudo aticonfig --adapter=all -f --initial as per GPU-README

Thank you Kano.

DISPLAY=:0 xlsfonts did not work at first as the package was missing as you said. "aptitude install x11-utils" took care of that. Now the result is this:

# DISPLAY=:0 xlsfonts
xlsfonts:  unable to open display ':0'

So there seems to be something not working right here. Any ideas on how to fix this?

I'm certain I did sudo aticonfig --adapter=all -f --initial (tried with one card, then the second) after each install, but just to be sure I did it again and rebooted the machine, with the same results still.
4  Bitcoin / Mining software (miners) / Re: CGMINER ASIC FPGA GPU overc monit fanspd RPC linux/win/osx/mip/r-pi 3.1.1 on: May 15, 2013, 09:21:43 PM
ckolivas and kano, thanks for cgminer and the hard work you put into it. I think people take it for granted and feel entitled to having it at times. I see it as a wonderful gift from you guys to the community at large and feel it is not honored quite often enough. I'm just starting out mining, but once I have a few spare coins, I will certainly send some your way.

Now of course I also have a problem, namingly getting ADL to work. I compiled 3.1.0 and 3.1.1 from github, under Ubuntu 13.04 64bit. I can get it to work, just fine, using amd-catalyst-13.4-linux-x86.x86_64, AMD-APP-SDK-v2.8-lnx64 and ADL_SDK_5.0, it reporting back on configure that it found ADL. On make I can't see any errors, so I assumed all works well, until I start it.

Code:
export DISPLAY=:0
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
export GPU_MAX_HEAP_SIZE=100

/usr/local/cgminer/cgminer -I 19 --scrypt --worksize 256 --lookup-gap 2 -g 1 -o poolurlremoved -u userremoved -p passremoved

 [2013-05-15 22:53:04] Started cgminer 3.1.1
 [2013-05-15 22:53:05] ADL found less devices than opencl!
 [2013-05-15 22:53:05] There is possibly more than one display attached to a GPU
 [2013-05-15 22:53:05] Use the gpu map feature to reliably map OpenCL to ADL
 [2013-05-15 22:53:05] WARNING: Number of OpenCL and ADL devices did not match!
 [2013-05-15 22:53:05] Hardware monitoring may NOT match up with devices!
 [2013-05-15 22:53:05] Probing for an alive pool
 [2013-05-15 22:53:05] Network diff set to 12.3M
 [2013-05-15 22:53:05] Long-polling activated for poolurl
 [2013-05-15 22:53:08] Accepted 00f2a0f7 Diff 270/31 GPU 1
 [2013-05-15 22:53:10] Accepted 02c13dea Diff 92/31 GPU 0

That's my first clue something is wrong, the second that it doesn't show fan speed nor temperatures. It will also not allow me to change any GPU settings, not even showing the options in the G menu. On my workstation there I can see and alter those options.

I searched all over the place and tried everything I could think of to no avail. So I tried to get some debugging info.

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

Also ran it with --verbose --debug --worktime (both normal and the ndevs) but didn't get more output really than I already posted.

Also tried the build from the page cgminer-3.1.1-x86_64-built.tar.bz2 to be precise. It errors out with this message first:
./cgminer: error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory

Fixed it up with this symlink:
ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0

Endresult is the exact same though.

I can repeat this process on two separate machines, one with two 7950, the other with a 5770 in it.

The only thing I want to keep is Linux, I really don't want to switch to windows on these boxes if I can avoid it. What kind of Linux, I don't really care as long as I get the temperature, fanspeed and gpu settings to work.

If there is any more data I can deliver, please let me know.
5  Other / Off-topic / Re: Let's Count to 21 Million with Images on: May 12, 2013, 06:45:48 PM
6  Other / Beginners & Help / Re: Compiling cgminer from github with working ADL 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.
7  Other / Beginners & Help / Compiling cgminer from github with working ADL 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.
8  Other / Beginners & Help / Re: CGMiner 3.1.0 built under linux, then segfault on execution on: May 11, 2013, 09:04:01 AM
So it works, sort of, still needs a bit of testing, but here is how I got it to do as it should in the end:

  • Installed the ati driver again.
  • Killed the cgminer dir and redid that from scratch.
  • Copied ADL files to cgminer.
  • Copied the files from the APP sdk to the /usr/include and /usr/lib as the GPU-README of cgminer says, and of course run ldconfig
  • rebooted
  • ran configure on the cgminer, then make, both went through without a hitch
  • Now it works...

I will retry at a later stage to see if I can reproduce the success.
9  Other / Beginners & Help / Re: CGMiner 3.1.0 built under linux, then segfault on execution on: May 11, 2013, 08:51:15 AM
I went a bit further and tried installing the latest drivers.

Removed the drivers I had in before with this:
aptitude purge fglrx-updates fglrx-amdcccle-updates fglrx-updates-dev

Got the drivers here:
http://www2.ati.com/drivers/linux/amd-catalyst-13.4-linux-x86.x86_64.zip

It complained about not having X so I installed it with this:
aptitude install x11-common xserver-xorg-core

Installed it, and then rebooted.

Configure fails with this:
OpenCL...............: NOT FOUND. GPU mining support DISABLED

aticonfig fails with this:
# aticonfig -lsa
aticonfig: error while loading shared libraries: libXrandr.so.2: cannot open shared object file: No such file or directory

Fixed it with aptitude install libxrandr2. Output now is:

# aticonfig --lsa
* 0. 01:00.0 AMD Radeon HD 7900 Series

* - Default adapter

configure still fails...
10  Other / Beginners & Help / CGMiner 3.1.0 built under linux, then segfault on execution on: May 11, 2013, 06:48:52 AM
Hello everyone. I've decided to jump head first into the boiling pot and got stuck at a rather inconvenient location.

I've tried building the miner now about a dozen different ways, no dice. The endresult is always this, if I get it to configure and compile at all that is:
Code:
# ./cgminer --benchmark
 [2013-05-11 08:37:38] Started cgminer 3.1.0Segmentation fault (core dumped)
#

I read in the official thread about adding a stacktrace with gdb cgminer core and here it is:

Code:
# gdb cgminer core
GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/cgminer/cgminer...(no debugging symbols found)...done.
[New LWP 5966]
[New LWP 5967]
[New LWP 5968]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff7cb05000
Core was generated by `./cgminer --benchmark'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f7127cd4fe6 in ?? () from /usr/lib/fglrx/libatiadlxx.so

(gdb) bt
#0  0x00007f7127cd4fe6 in ?? () from /usr/lib/fglrx/libatiadlxx.so
#1  0x00007f7127ca6a1c in ?? () from /usr/lib/fglrx/libatiadlxx.so
#2  0x00007f7127ca8e23 in ADL_Main_Control_Refresh ()
   from /usr/lib/fglrx/libatiadlxx.so
#3  0x000000000042ca38 in init_adl ()
#4  0x0000000000405578 in main ()


(gdb) bt full
#0  0x00007f7127cd4fe6 in ?? () from /usr/lib/fglrx/libatiadlxx.so
No symbol table info available.
#1  0x00007f7127ca6a1c in ?? () from /usr/lib/fglrx/libatiadlxx.so
No symbol table info available.
#2  0x00007f7127ca8e23 in ADL_Main_Control_Refresh ()
   from /usr/lib/fglrx/libatiadlxx.so
No symbol table info available.
#3  0x000000000042ca38 in init_adl ()
No symbol table info available.
#4  0x0000000000405578 in main ()
No symbol table info available.

Any idea anyone how to fix this? I have a few GPU's laying around just idleing Smiley
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!