Test VectorAPI with TornadoNative types through Memory Segments for 64 to 512Bit vector by mikepapadim · Pull Request #351 · beehive-lab/TornadoVM

1 min read Original article ↗

Description

This is a follow up PR to #350 .

The PR adds unit-tests to check the connection between TornadoVM native types (invoking the getSegment) and Java Vector API.
It adds the following tests:

 test64BitVector   ->  Species[float, 2, S_64_BIT]
 test128BitVector  ->  Species[float, 4, S_128_BIT]
 test256BitVector  ->  Species[float, 8, S_256_BIT]
 test512BitVector  ->  Species[float, 16, S_512_BIT]

Backend/s tested

Mark the backends affected by this PR.

  • OpenCL
  • PTX
  • SPIRV

OS tested

Mark the OS where this PR is tested.

  • Linux
  • OSx
  • Windows

How to test the new patch?

make 
tornado-test -V uk.ac.manchester.tornado.unittests.vector.api.TestVectorAPI