1 Reply Latest reply on Nov 22, 2013 6:55 AM by roger512

    crash clBuildProgram




      I'm currently experiencing a crash with clBuilProgram and I'm unable to fix it myself.


      the initial code come from :


      Research on GPU Random Number Generators


      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.



        • Re: crash clBuildProgram

          ok I found something in this function


          ulong MWC_AddMod64(ulong a, ulong b, ulong M)


              ulong v=a+b;

              if( (v>=M) || (v<a) )


              return v;



          I removed || (v<a) from conditionnal  if( (v>=M) || (v<a) )

          and it compiles fine now (v<a) is always false anyway...