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 112 forks source link

[math] ceil function added #315

Closed jjfumero closed 7 months ago

jjfumero commented 7 months ago

Description

This PR adds support for the Math.ceil and TornadoMath.ceil functions for all the backends.

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?

Test for each of the backends

$ make BACKEND=opencl
$ tornado-test --printKernel -V --fast uk.ac.manchester.tornado.unittests.math.TestMath#testMathCeil

$ make BACKEND=spirv
$ tornado-test --printKernel -V --fast uk.ac.manchester.tornado.unittests.math.TestMath#testMathCeil

$ make BACKEND=ptx
$ tornado-test --printKernel -V --fast uk.ac.manchester.tornado.unittests.math.TestMath#testMathCeil