AnsweredAssumed Answered

clBuildProgram segfaults and other problems.

Question asked by daniel on May 15, 2014
Latest reply on Jun 19, 2014 by pinform

I have a bug in my OpenCL code in which a computation results in nan. In the process of tracking the source of this bug I added the following code:

 

if (isnan(var){
     debug_info[0] = 1;
}

 

After adding this code the bug disappeared and the code functioned as expected. To me, this says compiler optimization error. So I added -cl-opt-disable to the build options in order to test my theory and now clBuildProgram segfaults.

I am using AMD-APP-SDK-v2.9-lnx64 and compiling for the hd7970. Unfortunately I cannot post my code publicly.

 

Any help is appreciated.

Outcomes