cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

spectral
Adept II

BUG : No compilation error !!

With the following code

float myVal(int istrue)
{
   if (istrue) othermethod();

There is NO return value... it compile correctly !!! and the returned value is 0 !

 

NB : also I do this :

float d = 0.f;
float t = 125.f / d;

-> t is equal to 0 !!!! 

0 Likes
4 Replies
himanshu_gautam
Grandmaster

hi viewon01,

Can you please provide a testcase.

On my system when using myval function,i get a warning.

And there is abrupt termination of code when i use t=125.f/0.f.

0 Likes
spectral
Adept II

A warning maybe... but it should be an error !!!!

0 Likes

Viewon01,

Issue has been reported to AMD.

Thanks for bringing it into our attnetion.

Can you provide some details about your system:

          System information

          ===============

1.       OS

2.       CPU

3.       GPU

4.       SDK version

5.       Driver version

And whether the warning comes while running on both CPU & Gpu

0 Likes

Windows 7 64 bits

Intel i7

NVidia GTX470 ... 😞

OpenCL SDK 2.2

0 Likes