m4rs-mt / ILGPU

ILGPU JIT Compiler for high-performance .Net GPU programs
http://www.ilgpu.net
Other
1.34k stars 115 forks source link

[QUESTION]: How to resolve the calculation accuracy error between CPU and GPU. #1246

Closed qian-o closed 2 months ago

qian-o commented 2 months ago

Question

I am not very familiar with GPU programming, and I have just started using ILGPU. When I tried to migrate my existing computational code to ILGPU, I found that the results on CPU and GPU were completely different. I suspect it may be a precision issue. Therefore, I was wondering if there is any configuration in this library that can improve the calculation precision without making too many changes to the code.

Environment

No response

Additional context

No response