Bitcoin Forum

Bitcoin => Mining support => Topic started by: audricd on September 28, 2014, 09:21:25 PM



Title: [LINUX MINING] bfgminer segmentation fault
Post by: audricd on September 28, 2014, 09:21:25 PM
hello,

Id like some help setting up bfgminer on linux, more precisely OpenSuse 13.1.

Ive been following this guide:
http://wiki.tiker.net/OpenCLHowTo

And expect a few minor changes because its slightly outdated (pretty much download links and versions numbers) i did everything it tells.

yet whenever i run bfgminer (even with the -S opencl:auto tag) or guiminer i get a segmentation fault.

OpenCL seems to be installed correctly, because prior to this, the error message i had was from guiminer saying i had no opencl devices in an alert window. now i dont even get to that.

i ran aticonfig --initial, blacklisted the opensource radeon driver and this is my fglrxinfo output:

audric@linux-soqy:~/poclbm> fglrxinfo
display: :0  screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon HD 5700 Series
OpenGL version string: 4.4.12874 Compatibility Profile Context 14.10.1006

any help please?


Title: Re: [LINUX MINING] bfgminer segmentation fault
Post by: Dare on September 29, 2014, 02:37:28 AM
You probably won't get too much help here in the beginner section, try asking a mod to move this thread to the "Mining Support" section (or post it there yourself, now that you have a high enough activity).


Title: Re: [LINUX MINING] bfgminer segmentation fault
Post by: ncsupanda on September 29, 2014, 04:03:24 AM
Just a heads up that a segmentation fault could very likely be a lack of RAM.


Title: Re: [LINUX MINING] bfgminer segmentation fault
Post by: Testing123 on September 29, 2014, 06:24:38 PM
You probably won't get too much help here in the beginner section, try asking a mod to move this thread to the "Mining Support" section (or post it there yourself, now that you have a high enough activity).


As a side note, there is no activity requirement for posting outside of this newbie section now. New users can make their first post in any section and any post. :)


Title: Re: [LINUX MINING] bfgminer segmentation fault
Post by: audricd on September 29, 2014, 07:37:17 PM
hello all, and thanks for the replies.

I come with updates.

So apparently the segmentation fault was due to the fact my icds were misplaced. so i added them (it seems) by taking a shot in the dark doing files likes this in opt/vendors/OpenCL

filename:
amdocl32.icd

content:
/opt/amd-opencl-icd-VERSION.MINOR/lib/libamdocl32.so


i have done this for amdocl64.icd, amdoclcl64.icd, aticalc.icd, aticaldd.icd, and aticalrt.icd. All the icds i could make of the libs provided by the amd sdk.

also, two shortcuts were automatically made by installing the sdk:
libamdocl64.so
libaticalcl.so

they both point to /opt/amd-opencl-icd-VERSION.MINOR/lib/

when i did that, bfgminer told me it couldnt find/read phatk121016.cl, so i made it for him by downloading and adding it from the source:
https://github.com/fcicq/cgminer/blob/master/phatk121016.cl
into my bfgminer folder. it worked.

after that, unfortunately, i have yet another error, this is the new and latest output:

Code:
--------------------------------------------------------------------------------
 5s:144.9 avg:153.1 u:  0.0 Mh/s | A:0 R:0 S:0 HW:1 U:0.0/m BS:0
 ST: 2  DW: 0  GW: 1  LW: 6  GF: 0  NB: 1  AS: 0  RF: 0  E: 0.00
 Connected to uk1.ghash.io diff 1.02k with stratum as user audricd.worker2
 Block: ...f42311a9 #323092  Diff:34.7G (248.1Ph/s)  Started: [21:37:34]
--------------------------------------------------------------------------------
 [P]ool management [G]PU management [S]ettings [D]isplay options [Q]uit
 OCL 0:  59.0C  45%    | 128.5/153.1/  0.0Mh/s | A:0 R:0 HW:1 U:0.00/m
--------------------------------------------------------------------------------

 [2014-09-29 21:37:30] Probing for an alive pool
 [2014-09-29 21:37:34] Network difficulty changed to 34.7G (248.1Ph/s)
 [2014-09-29 21:37:34] Stratum from pool 0 detected new block
 [2014-09-29 21:37:34] Disabling extra threads due to dynamic mode.
 [2014-09-29 21:37:34] Tune dynamic intensity with --gpu-dyninterval
 [2014-09-29 21:37:34] OCL 0 (thread 1) being disabled
 [2014-09-29 21:37:54] OCL 0: invalid nonce - HW error

it seems its definitely a step forward as the gpu appears to be detected

also I forgot to mention we are talking about a ati 5780 1gig, the rest of the rig is a amd phenom quad 3ghz, 4gigs of ram ddr2.

im making progress but im stuck again.


Title: Re: [LINUX MINING] bfgminer segmentation fault
Post by: Dare on October 01, 2014, 02:18:56 AM
You probably won't get too much help here in the beginner section, try asking a mod to move this thread to the "Mining Support" section (or post it there yourself, now that you have a high enough activity).

As a side note, there is no activity requirement for posting outside of this newbie section now. New users can make their first post in any section and any post. :)

Good to know; I thought the requirement had been reduced from 5 posts in the beginner section to 1, not removed entirely. Thanks for the info!