OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.

Compiler error

Polar01
Beginner
319 Views

Hi,

 

I have some strange behavior with my OpenCL kernel, by example I have the following code that give me the wrong result :

if ( condition )
{
  printf("Enter here ...");
  my code;
}

Where 'condition = false' ..

When I remove the code enclosed into the brackets the results are correct.
I simply add some "useless" code and the result is really different.

I work on this since several days and have try with other SDKs to insure that I'm not wrong. It works perfectly with other SDK !

BTW, I cannot show the complete kernel, it is too big, also it is impossible to create a repro example because it is to difficult to handle.

What I can do:
1) Provide a remote control to my machine, allowing your team to debug and see the problem directly
2) Generate the assembly code to help you compare the difference and see the error

Please contact me asap to fix the problem together ;-)

0 Kudos
5 Replies
Polar01
Beginner
319 Views

BTW,

I have compile the good kernel and the same one but with one addition (useless) line... and the code difference is huge !

Contact me to got the kernel code, the llvm and the asm one.

Thanks

Polar01
Beginner
319 Views

Something else;

If I disable the optimization, at least in some case (I have just do one tes), it seems to fix the problem.

I will do more tests tomorrow...

Polar01
Beginner
319 Views

BAD NEWS !!!!!!!!!!!!!!!!!!!!!!

I have do the test on another machine (but still a i7 CPU) and I have different results, even with the -cl-opt-disable" option !

Also, it depends of the "test unit" I do... some works some does not work :-(

Please help me... it is CRITICAL !

 

Raghupathi_M_Intel
319 Views

Is this on the CPU or GPU? Please provide details on the driver version, OS etc., that'll help us reproduce the problem.

Thanks,
Raghu

Polar01
Beginner
319 Views

Hi Raghu,

I have test it on 2 machine, one with i7 CPU and another with a i7 CPU+APU.

It seems to me impossible to create a "reproducible" version of it, or I have to send you all the application code, it is hughe and complex !

But, what I will propose is to organize a Team Viewer session to allow you to (a) see the bug in life (b) debug directly on the machine.

For this, I propose you to contact me directly by email, right ?

Krys

Reply