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.
1718 Discussions

Default rounding mode - towards pos infinity ?

Raistmer
Beginner
517 Views

I see lots of invalid results with my app built for Intel OpenCL platform.

Comparing data arrays it creates on Intel Ivy Bridge vs same arrays created on ATi GPU (HD6950 that produces valid results) I found that arrays are quite similar but every value slightly (and sometimes not so slightly) bigger in "intel's" array bigger than in "ati's". To get final result app performs many additions of parts of arrays (folding) so this error accumulates to the point it becomes false positive.

Could it be some difference in default rounding mode (app uses single floating point numbers)?

0 Kudos
6 Replies
Raghupathi_M_Intel
517 Views

Is it possible to attach a small reproducer and the expected output (one you are seeing on ATI)? We'll take a look and get back to you.

Thanks,

Raghu

0 Kudos
Raistmer
Beginner
517 Views

Can attach whole app. 

0 Kudos
Raistmer
Beginner
517 Views

test case (some inner array dumping enabled) and text files with results for ATi and Intel included.

(sources are freely available if needed)

0 Kudos
Raistmer
Beginner
517 Views

Any ideas?

0 Kudos
Raghupathi_M_Intel
517 Views

I looked at the output files. But there is too much information in them (though I saw the difference in the output you are talking about). Can you create a minimal reproducer for us to investigate more?

Thanks,
Raghu

0 Kudos
Raistmer
Beginner
517 Views

Hello. I found issue. It's too low precision of native trigonometric functions on Intel GPU as described here:

http://software.intel.com/en-us/forums/topic/487583

When I removed native_sin/cos_usage BOTH from oclFFT and own apps dechirping function results started to pass validation vs other platforms. So, not rounding mode issue but native_sin/cos issue.

0 Kudos
Reply