I made a script to fix OC/fanspeed with 1070/1080 cards.
You need to set a very high memory offset in order for it to take effect. This is due to 1070/1080 cards not entering the highest power state (P3) when running compute instructions.
By setting a high offset, you skew the memory boost range for P2 to a higher level, just not as high as the offset should, as the card won't enter P3.
You can see in the example, my clock offsets for a Zotac GTX 1080 Mini.
These result in 2025 Core, 5514 Memory
Power Level set at 217W (max for this card)
X :0 &
sleep 5
export DISPLAY=:0
nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUTargetFanSpeed=100" -a "[gpu:0]/GPUGraphicsClockOffset[3]=175" -a "[gpu:0]/GPUMemoryTransferRateOffset[3]=2000"
sudo nvidia-smi -pm 1
sudo nvidia-smi -i 0 -pl 217
nvidia-settings -a [gpu:0]/GPUPowerMizerMode=2
I posted this on the SMOS subreddit to help people out with a quick fix.
My OC was working, but fanspeed was not. When I fixed fanspeed from the command line, OC stopped working. So I made this.