This miner appears to have been abandoned, which is a real shame because despite being last updated over a year ago it still performs the best by far on Cryptonight with an XFX RX 560 I recently bought (and which I'll be getting 5 more to make a cheap Cryptonight miner).
Despite the apparent abandonment, I read every single post of this thread looking for an explanation of rawintensity, worksize and gpu-threads and, incredibly, these critical parameters are never really explained. There are bits and pieces here and in the (3+ year old) .md files on the github repo, but it is not clear if those partial explanations apply to all algorithms or just Ethash (the fragments I found here) or Scrypt (in the mining.md file on github).
So here is what I picked up from a couple of posts by OhGodAGirl (one of the original devs of SGMiner), which I've paraphrased/combined below:
The formula for rawintensity is #(CUs) x worksize x 4 - so, for a 280x, you'd have 32 x 4 x 4. That gives us 512.
Worksize of 8 can be used, but make sure to change gpu-threads to 1 then (instead of 2).
Start with above calculated rawintensity then decrease by 8 to find best hashrate.
Don't ever use xIntensity. Rawintensity only.
Now here's the kicker... below are the settings that are working the best for my single RX 560 with just 2GB, 16 CU and 1024 shaders:
rawintensity = 416
worksize = 8
gpu-threads = 2
And this contradicts the advice to set gpu-threads to 1 if worksize is 8... I'm not going to sweat that, though, as this combination really does quite well, all things considered - about 460 H/s, which is 40-60 H/s better than the next best performer, xmr-stak.
Even worse, though, is that I have a single RX 570 4GB (which is what I was going to use for a dedicated cryptonight/ethash miner, until prices went full retard) and sgminer crashes immediately after displaying the two line screen about Jannson 2.7 (can't catch it, it goes by too fast),
even if I don't set anything for the above parameters.It's a bit of a longshot, I realize, but any sort of clue as to where to go next in troubleshooting would be helpful. Drivers are Adrenalin 18.1 (Jan 18) and not in compute mode (since that doesn't really help Cryptonight, at least from what I've noticed).