beehive-lab / TornadoVM

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

Math operations for cos/sin with vector types supported #428

Closed jjfumero closed 4 months ago

jjfumero commented 4 months ago

Description

This PR adds vector math operations for the cos and sin math functions. In addition, it expands the DFT example with the Vector API and applies a fix for the vector computation of the DFT.

Problem description

Fixes for the DFT application.

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?

$ make
$ make tests
$  tornado --printKernel --enableProfiler console -m tornado.examples/uk.ac.manchester.tornado.examples.vectors.DFTVector vector8