The purpose of the native tests is to check that the middle-ware API works as expected, not to check if we can run FP64. Since many OpenCL platforms these days do not support FP64, we do not need to check this in this unit-tests. This PR just replaces the double with float and test the interaction with the JIT compiler and runtime using the internal APIs.
Note that this PR is built in top of #357 .
Backend/s tested
Mark the backends affected by this PR.
[X] OpenCL
[X] PTX
[X] SPIRV
OS tested
Mark the OS where this PR is tested.
[X] Linux
[X] OSx
[ ] Windows
Did you check on FPGAs?
If it is applicable, check your changes on FPGAs.
[ ] Yes
[X] No
How to test the new patch?
$ make
$ test-native.sh
Testing the Native OpenCL API
Running Native: uk.ac.manchester.tornado.drivers.opencl.tests.TestOpenCLJITCompiler ................ [PASS]
Description
The purpose of the native tests is to check that the middle-ware API works as expected, not to check if we can run FP64. Since many OpenCL platforms these days do not support FP64, we do not need to check this in this unit-tests. This PR just replaces the
double
withfloat
and test the interaction with the JIT compiler and runtime using the internal APIs.Note that this PR is built in top of #357 .
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?