PTXMath in ILGPU.Algorithms provides a number of math functions using Cordic implemenentations. However, these are considerably slower compared to LibDevice.
Currently, LibDevice methods need to be explicitly called.
This PR automatically tries to initialize LibDevice when the Context is being configured. If found, all the Math intrinsics are redirected to using LibDevice. The Cordic implementation in ILGPU.Algorithms will only activate itself if LibDevice is not available.
Extracted from #1148.
Depends on #1187 and #1185.
PTXMath in ILGPU.Algorithms provides a number of math functions using Cordic implemenentations. However, these are considerably slower compared to LibDevice.
Currently, LibDevice methods need to be explicitly called.
This PR automatically tries to initialize LibDevice when the Context is being configured. If found, all the Math intrinsics are redirected to using LibDevice. The Cordic implementation in ILGPU.Algorithms will only activate itself if LibDevice is not available.