I use this fermat https://github.com/0xmatt1/xpmclient/blob/master/gpu/fermat.cl and add first lines from jOnn9 fermat.cl. And is the same copy just changing few lines. I doubt that all this time nobady have seen that. You have solution on this forum from 2014!!