cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

roger512
Adept II

crash clBuildProgram

Hi,

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.

Roger

0 Likes
1 Reply
roger512
Adept II

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) )

        v=v-M;

    return v;

}

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

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

0 Likes