beehive-lab / TornadoVM

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

[hotfix] OpenCL ThreadInfo option fixed for Automatic Reductions #198

Closed jjfumero closed 2 years ago

jjfumero commented 2 years ago

Description

Thread info was disabled for single-thread OpenCL generated programs. This PR supports debug info also for single thread kernels. This is reachable from automatic reductions in the final merge step, for example.

This fixes issue #197

Backend/s tested

This PR only affects the OpenCL Backend

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 BACKEND=opencl
$ tornado --threadInfo -ea -Dtornado.unittests.verbose=True -Xmx6g -Dtornado.recover.bailout=False  -m  tornado.unittests/uk.ac.manchester.tornado.unittests.tools.TornadoTestRunner  uk.ac.manchester.tornado.unittests.reductions.TestReductionsFloats#testComputeAverage

jjfumero commented 2 years ago

Note: first we need to merge #196