This PR provides a fix for radians operations with double input types when PTX is used.
Problem description
The problem was that the radians implementation is implemented as (pi / 180) * degrees, since there is no instruction. And in the compiler we had a check to ensure that it is only supported for fp32.
Description
This PR provides a fix for
radians
operations withdouble
input types when PTX is used.Problem description
The problem was that the
radians
implementation is implemented as(pi / 180) * degrees
, since there is no instruction. And in the compiler we had a check to ensure that it is only supported forfp32
.In this PR, I added support for
fp64
types.Backend/s tested
Mark the backends affected by this PR.
OS tested
Mark the OS where this PR is tested.
Did you check on FPGAs?
If it is applicable, check your changes on FPGAs.
How to test the new patch?
Build TornadoVM with PTX:
Run:
Expected output: