Search content
Sort by

Showing 10 of 10 results by Nacsiar
Post
Topic
Board Mining support
Re: Guiminer "Verification Failed, Check Hardware"
by
Nacsiar
on 07/06/2013, 19:04:53 UTC
Hey guys,

I've posted about this problem at https://bitcointalk.org/index.php?topic=227918. This fix is mostly limited to CGMiner/BFGMiner but the problem is the same, so the solution should be similar.

Good luck, and let me know if you need more help!

Note: my 'fix' removes a switch and as such may break mining with other cards (or reduce performance!!)
Post
Topic
Board Beginners & Help
Re: Can't get bitcoind to accept RPC connections from other machines
by
Nacsiar
on 07/06/2013, 18:29:19 UTC
Glad to hear it, happy mining!
Post
Topic
Board Group buys
Re: [Group Buy] AVALON CHIPs 4142 left @0.082BTC + K16 Miner Assembly from 60EUR
by
Nacsiar
on 07/06/2013, 18:24:37 UTC
; <64>; < 5.248 >; < 4 >; <1HjQnqHuUoGdAeWvLXDq4asaovF5nN2PgK>

So Nacsiar, 64 chips, 5.248BTC, 4 miner assemblies, and 1HjQnqHuUoGdAeWvLXDq4asaovF5nN2PgK for the address.

Tx: https://blockchain.info/en/tx/f78c0724c0fb32ed2908ffe5e0b4c236938805bcb7bf5f3abb4c4e84cd0316f2

Please confirm! Smiley
Post
Topic
Board Beginners & Help
Re: Help setting up rpcminer-cuda?
by
Nacsiar
on 07/06/2013, 16:42:46 UTC
How are you planning on mining? With a pool? in that case you'll be better off with say CGMiner or BFGMiner.

That said... you probably won't get much more MHash out of that card, regardless of your miner. The hardware comparison guide reckons that you'll get 27 MHash/sec even if you overclocked it; not really worth it at today's difficulty (and certainly not for the future!)
Post
Topic
Board Beginners & Help
Re: Can't get bitcoind to accept RPC connections from other machines
by
Nacsiar
on 07/06/2013, 16:22:23 UTC
Code:
user@server:~$ netstat -lp | grep bitcoind
tcp        0      0 localhost:8332          *:*                     LISTEN      32153/bitcoind
tcp        0      0 *:8333                  *:*                     LISTEN      32153/bitcoind
tcp6       0      0 localhost:8332          [::]:*                  LISTEN      32153/bitcoind
tcp6       0      0 [::]:8333               [::]:*                  LISTEN      32153/bitcoind
As you can see, the RPC port (8332) is only listening for local connections, as expected.
I'm not seeing this at all (localhost is just the source in general). Looks like it's listening just fine.

What firewall are you using? do you have iptables enabled (I assume not since you say others are connecting fine)? It sounds more like your gateway not forwarding ports from your external IP.
Post
Topic
Board Beginners & Help
Re: Whitelist Requests (Want out of here?)
by
Nacsiar
on 07/06/2013, 16:02:51 UTC
Hi,

Please whitelist me.

I have an understanding of BTC (I have had my own wallet using the bitcoin-qt client for over a year now), have knowledge of how miners work and have already offered help here for those experiencing issues with 5800 cards, 13.4 cats and cgminer/bfgminer (https://bitcointalk.org/index.php?topic=227918.0).

Thanks!
Post
Topic
Board Beginners & Help
Re: Radeon + cgminer = "invalid nonce - HW error"
by
Nacsiar
on 07/06/2013, 15:26:13 UTC
Hi!

I posted about this earlier on this very same forum. Please read https://bitcointalk.org/index.php?topic=227918.0 for a solution!
Post
Topic
Board Beginners & Help
Re: BFGMiner/CGMiner, Catalyst 13.4 and 58xx: Fix!
by
Nacsiar
on 07/06/2013, 13:11:01 UTC
Thanks!

Hopefully when I'm out of the newbie corner I can move it to a more visible area Smiley
Post
Topic
Board Beginners & Help
Re: BFGMiner/CGMiner, Catalyst 13.4 and 58xx: Fix!
by
Nacsiar
on 07/06/2013, 09:44:04 UTC
Don't have that card so I can't test if it helps, but you could provide a patch to make it even easier to implement.

I'd be glad to, however it's not worth implementing in it's current form; I removed some of the checks that might need to be there for other card series!

Code snippet of the diff:
Code:
--- phatk121016.cl      2013-06-07 09:38:40.000000000 +0100
+++ phatk121016-modified.cl     2013-06-07 10:41:05.000000000 +0100
@@ -57,27 +57,12 @@
 // SHA-256 Ch function, but provides it in exactly one instruction. If
 // detected, use it for Ch. Otherwise, construct Ch out of simpler logical
 // primitives.
-
- #ifdef BFI_INT
-       // Well, slight problem... It turns out BFI_INT isn't actually exposed to
-       // OpenCL (or CAL IL for that matter) in any way. However, there is
-       // a similar instruction, BYTE_ALIGN_INT, which is exposed to OpenCL via
-       // amd_bytealign, takes the same inputs, and provides the same output.
-       // We can use that as a placeholder for BFI_INT and have the application
-       // patch it after compilation.

-       // This is the BFI_INT function
-       #define Ch(x, y, z) amd_bytealign(x,y,z)
-       // Ma can also be implemented in terms of BFI_INT...
-       #define Ma(z, x, y) amd_bytealign(z^x,y,x)
- #else // BFI_INT
-       // Later SDKs optimise this to BFI INT without patching and GCN
-       // actually fails if manually patched with BFI_INT
-
-       #define Ch(x, y, z) bitselect((u)z, (u)y, (u)x)
+       //We have an SDK which automatically optimizes to BFI INT, so lets do this
+       #define Ch(x, y, z) bitselect(z, y, x)
        #define Ma(x, y, z) bitselect((u)x, (u)y, (u)z ^ (u)x)
        #define rotr(x, y) amd_bitalign((u)x, (u)x, (u)y)
- #endif
+
 #else // BITALIGN
        #define Ch(x, y, z) (z ^ (x & (y ^ z)))
        #define Ma(x, y, z) ((x & z) | (y & (x | z)))


...and a pastebin for those that prefer it:

http://pastebin.com/tZ7DeV2c
Post
Topic
Board Beginners & Help
Topic OP
BFGMiner/CGMiner, Catalyst 13.4 and 58xx: Fix!
by
Nacsiar
on 07/06/2013, 08:54:57 UTC
Hey guys, figured I'd make my first post useful.

So if you have a 58xx series card (could be more) and upgraded your catalyst drivers to latest, you may have noticed that you are getting nothing but this:

Quote
GPU0: invalid nonce - HW error

Of course, this is no good! You won't be sending any blocks that are deemed invalid, and contributing nothing to whatever pool you might be on!

The reason for this seems to be that amd_bytealign is either working differently or no longer usable in the 13.4 drivers (and probably a few before it). that phatk kernel that cgminer and bfgminer uses was upgraded to harness this optimization, however with the newer drivers "bitselect" is automatically optimized to BFI INT without us having to do it!

So, how do you fix it? simple!

1. To start, navigate to your miner's folder and look for a file that begins with "phatk" and ends with ".cl". this is the OpenCL code that makes up the kernel, but as it's a script it can be opened in any text document viewer (I highly recommend Notepad++!)

2. Inside this file may be a bit daunting, but don't worry, there's only a few small changes needed! You'll notice around line 61 (depending on your version of miner) you'll see the following (or very similar):

Code:
#ifdef BITALIGN
#pragma OPENCL EXTENSION cl_amd_media_ops : enable
#define rot(x, y) amd_bitalign(x, x, (uint)(32 - y))

// This part is not from the stock poclbm kernel. It's part of an optimization
// added in the Phoenix Miner.

// Some AMD devices have Vals[0] BFI_INT opcode, which behaves exactly like the
// SHA-256 Ch function, but provides it in exactly one instruction. If
// detected, use it for Ch. Otherwise, construct Ch out of simpler logical
// primitives.
 #ifdef BFI_INT
// Well, slight problem... It turns out BFI_INT isn't actually exposed to
// OpenCL (or CAL IL for that matter) in any way. However, there is
// a similar instruction, BYTE_ALIGN_INT, which is exposed to OpenCL via
// amd_bytealign, takes the same inputs, and provides the same output.
// We can use that as a placeholder for BFI_INT and have the application
// patch it after compilation.

// This is the BFI_INT function
#define Ch(x, y, z) amd_bytealign(x,y,z)
// Ma can also be implemented in terms of BFI_INT...
#define Ma(z, x, y) amd_bytealign(z^x,y,x)
 #else // BFI_INT
// Later SDKs optimise this to BFI INT without patching and GCN
// actually fails if manually patched with BFI_INT

#define Ch(x, y, z) bitselect((u)z, (u)y, (u)x)
#define Ma(x, y, z) bitselect((u)x, (u)y, (u)z ^ (u)x)
#define rotr(x, y) amd_bitalign((u)x, (u)x, (u)y)
 #endif
#else // BITALIGN
#define Ch(x, y, z) (z ^ (x & (y ^ z)))
#define Ma(x, y, z) ((x & z) | (y & (x | z)))
#define rot(x, y) rotate((u)x, (u)y)
#define rotr(x, y) rotate((u)x, (u)(32-y))
#endif

Some of this block is the problematic code for the 13.4 Catalysts, and as such we need to change it!

3. Delete the above block of code (aprrox line 49 to 86 inclusive), and replace it with the following:
Code:
#ifdef BITALIGN
#pragma OPENCL EXTENSION cl_amd_media_ops : enable
#define rot(x, y) amd_bitalign(x, x, (uint)(32 - y))

// This part is not from the stock poclbm kernel. It's part of an optimization
// added in the Phoenix Miner.

// Some AMD devices have Vals[0] BFI_INT opcode, which behaves exactly like the
// SHA-256 Ch function, but provides it in exactly one instruction. If
// detected, use it for Ch. Otherwise, construct Ch out of simpler logical
// primitives.

//We have an SDK which automatically optimizes to BFI INT, so lets do this

#define Ch(x, y, z) bitselect(z, y, x)
#define Ma(x, y, z) bitselect((u)x, (u)y, (u)z ^ (u)x)
#define rotr(x, y) amd_bitalign((u)x, (u)x, (u)y)

#else // BITALIGN
#define Ch(x, y, z) (z ^ (x & (y ^ z)))
#define Ma(x, y, z) ((x & z) | (y & (x | z)))
#define rot(x, y) rotate((u)x, (u)y)
#define rotr(x, y) rotate((u)x, (u)(32-y))
#endif

This avoids any of the logic that should cause you problems.

4. if your miner is running, shut it down. if you have any leftover files starting in "phatk" and ending in ".bin", it's probably best to delete those.

5. Start up your miner. it should now start accepting blocks!


Hope this has helped. Note that this is modified from the following post regarding a similar problem on poclbm: https://bitcointalk.org/index.php?topic=221041.0.

Happy mining!