Wednesday, June 19, 2013

Bitcoin Mining with Radeon Southern Islands FOSS Driver on Gentoo Linux

Mining with Open-Source radeon Southern Islands 7870

When I read that Radeon Open-Source drivers could do mining, I knew I wanted to try it.  I have multiple screens and I use VTs, so the OS drivers are better than Catalyst on all fronts: faster VT switching, better multiscreen support, and freedom.  I looked at the code at Tom's dev blog, and found that his work had already been merged upstream.  Since OpenCL was still a WIP for Southern Islands, it looked like a long shot.

I emerged live ebuilds for mesa, libdrm, libclc, and newer xorg-server, and BFGMINER 3.1.0-r1.  My 7870 began mining away, WOW!  Okay, well not too fast though.  Using Catalyst 13.04 I was running about 320 MHash, and with vanilla open-source I am only getting 50 MHash.  I didn't look into why.  It may be that the card is sitting in its low power state, with the GPU running 300MHz.  It could be that the code is not optimized for Southern Islands. Either way, I'm proud of the open-source community and these devs in particular for making this happen.  I am sure that we will have GCN kernels on 7990s someday soon.

#bitcoin

#bfgminer version 3.1.0 - Started: [2013-06-18 17:25:55] - [  0 days 16:40:15]
--------------------------------------------------------------------------------
 5s: 50.1 avg: 52.3 u: 51.7 Mh/s | A:722 R:9+0(1.2%) HW:0
 ST: 2  GF: 1  NB: 83  AS: 0  RF: 0  E: 0.98  U:0.7/m  BS:1.64k
 Connected to stratum.bitcoin.cz diff 1 with stratum as user blah.blah
 Block: ...1fe0db02 #242309  Diff:19.3M (138.4Th/s)  Started: [10:01:45]
--------------------------------------------------------------------------------
 [P]ool management [G]PU management [S]ettings [D]isplay options [Q]uit
 OCL 0:  34.0C         |  52.3/ 52.3/ 51.7Mh/s | A:722 R:9+0(1.2%) HW:0
--------------------------------------------------------------------------------

 [2013-06-19 09:49:06] Stratum from pool 0 requested work update
 [2013-06-19 09:50:03] Stratum from pool 0 requested work update
 [2013-06-19 09:50:52] Accepted 572cb86d OCL 0  Diff 2/1
 [2013-06-19 09:50:56] Stratum from pool 0 requested work update
 [2013-06-19 09:51:45] Accepted aa0edbf5 OCL 0  Diff 1/1
 [2013-06-19 09:51:52] Stratum from pool 0 requested work update
 [2013-06-19 09:52:30] Stratum from pool 0 detected new block
 [2013-06-19 09:52:32] Stratum from pool 0 requested work update
 [2013-06-19 09:52:38] Accepted 4f6995b7 OCL 0  Diff 3/1
 [2013-06-19 09:53:27] Stratum from pool 0 requested work update
 [2013-06-19 09:54:21] Stratum from pool 0 requested work update
 [2013-06-19 09:55:16] Stratum from pool 0 requested work update
 [2013-06-19 09:55:19] Accepted a8fa2501 OCL 0  Diff 1/1
 [2013-06-19 09:56:11] Stratum from pool 0 requested work update
 [2013-06-19 09:56:14] Stratum from pool 0 detected new block
 [2013-06-19 09:56:18] Stratum from pool 0 requested work update
 [2013-06-19 09:56:34] Accepted ba1ba833 OCL 0  Diff 1/1
 [2013-06-19 09:57:11] Stratum from pool 0 requested work update
 [2013-06-19 09:58:06] Stratum from pool 0 requested work update
 [2013-06-19 09:59:02] Stratum from pool 0 requested work update
 [2013-06-19 09:59:58] Stratum from pool 0 requested work update
 [2013-06-19 10:00:46] Accepted 92db9604 OCL 0  Diff 1/1
 [2013-06-19 10:00:53] Stratum from pool 0 requested work update
 [2013-06-19 10:01:45] Stratum from pool 0 detected new block
 [2013-06-19 10:01:46] Stratum from pool 0 requested work update
 [2013-06-19 10:02:38] Accepted 901e037e OCL 0  Diff 1/1
 [2013-06-19 10:02:42] Stratum from pool 0 requested work update
 [2013-06-19 10:03:36] Stratum from pool 0 requested work update
 [2013-06-19 10:04:26] Accepted bbb5494e OCL 0  Diff 1/1
 [2013-06-19 10:04:31] Stratum from pool 0 requested work update
 [2013-06-19 10:05:27] Stratum from pool 0 requested work update

No comments:

Post a Comment