m4rs-mt / ILGPU

ILGPU JIT Compiler for high-performance .Net GPU programs

Home Page:http://www.ilgpu.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intel GPUs ,float64 type is not supported on this device

sunxiaotianmg opened this issue · comments

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