beehive-lab / TornadoVM

TornadoVM: A practical and efficient heterogeneous programming framework for managed languages
https://www.tornadovm.org
Apache License 2.0
1.15k stars 109 forks source link

TornadoMath double version of trigonometric functions added #484

Closed jjfumero closed 3 days ago

jjfumero commented 4 days ago

Description

Some of the FP64 version of the trigonometric functions within the TornadoMath class were missing. Related issue #481

Problem description

n/ a,.

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?

tornado-test -V -pk --fast uk.ac.manchester.tornado.unittests.math.TestTornadoMathCollection
jjfumero commented 4 days ago

On NVIDIA 1050;

Test: class uk.ac.manchester.tornado.unittests.math.TestTornadoMathCollection
    Running test: testTornadoMathSignumDouble ................  [PASS] 
    Running test: testTornadoMathSignumDoubleNaN ................  [OPENCL CONFIGURATION UNSUPPORTED] 
    Running test: testTornadoMathSignumFloatNaN ................  [OPENCL CONFIGURATION UNSUPPORTED] 
    Running test: testTornadoMathCos         ................  [PASS] 
    Running test: testTornadoMathCosPI       ................  [PASS] 
    Running test: testTornadoMathCosPIDouble ................  [PASS] 
    Running test: testTornadoMathSinPI       ................  [PASS] 
    Running test: testTornadoMathSinPIDouble ................  [PASS] 
    Running test: testTornadoMathSignumFloat ................  [PASS] 
    Running test: testTornadoMathSin         ................  [PASS] 
    Running test: testTornadoMathAtan        ................  [PASS] 
    Running test: testTornadoMathAtanDouble  ................  [PASS] 
    Running test: testTornadoMathTan         ................  [PASS] 
    Running test: testTornadoMathTanDouble   ................  [PASS] 
    Running test: testTornadoMathTanh        ................  [PASS] 
    Running test: testTornadoMathTanhDouble  ................  [PASS] 
    Running test: testTornadoMathMin         ................  [PASS] 
    Running test: testTornadoMathMax         ................  [PASS] 
    Running test: testTornadoMathSqrt        ................  [PASS] 
    Running test: testTornadoMathExpDouble   ................  [PASS] 
    Running test: testTornadoMathExpFloat    ................  [PASS] 
    Running test: testTornadoMathClamp       ................  [PASS] 
    Running test: testTornadoMathFract       ................  [PASS] 
    Running test: testTornadoMathLog2        ................  [PASS] 
    Running test: testTornadoMathLogDouble   ................  [PASS] 
    Running test: testTornadoMathLogFloat    ................  [PASS] 
    Running test: testTornadoMathPI          ................  [PASS] 
    Running test: testMathFloor              ................  [PASS] 
    Running test: testMathClamp              ................  [PASS] 
    Running test: testTornadoMathRadians     ................  [PASS] 
    Running test: testTornadoMathRadiansDouble ................  [PASS] 
    Running test: testMathATan2              ................  [PASS] 
    Running test: testMathATan2Double        ................  [PASS] 
    Running test: testMathAcos               ................  [PASS] 
    Running test: testMathASin               ................  [PASS]