Quantcast
Channel: Intel® Software - OpenCL*
Viewing all articles
Browse latest Browse all 1182

Opencl implementation of convert_char()

$
0
0

I am using Intel core i7 6820HQ CPU and integrated graphics 530 to run an opencl application.

When I perform convert_char() on overflowed results, I get different results in CPU and GPU.

E.g convert_char(271.125) on CPU overflows and rounds up whereas in GPU it clamps to 255. ofcourse by doing convert_char_sat() i got the right results on both platforms.

But can someone explain why it works differently on different platforms?

Zone: 


Viewing all articles
Browse latest Browse all 1182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>