Closed sunxiaotianmg closed 1 year ago
How to handle this situation
float instead of all double type ?
ILGPU will query the OpenCL driver about supported functionality. In this case, OpenCL has reported that the Intel GPU does not support 64-bit floating point operations. You will either need to stop using double, or you could potentially use the 32-bit only mode, and ILGPU will convert double to float as necesary (https://ilgpu.net/docs/03-advanced/04-math-functions/)
It seems that the problem can only be solved by using float and Math (MathMode. Fast32BitOnly) together
float instead of all double type,In this MathMode. Fast32BitOnly, the correct results can be obtained