I'm currently experiencing a crash with clBuilProgram and I'm unable to fix it myself.
the initial code come from :
It does work with NVIDIA GPUS, but I can' t compile it with the lastest driver on my HD7950.
I'm adding attached file with the faulty code.
It's quite easy to test it with AMD APP kernelAnalyzer (open crash.cl)
Any help will be appreciated.
ok I found something in this function
ulong MWC_AddMod64(ulong a, ulong b, ulong M)
if( (v>=M) || (v<a) )
I removed || (v<a) from conditionnal if( (v>=M) || (v<a) )
and it compiles fine now (v<a) is always false anyway...