beehive-lab / TornadoVM

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

[fix] Dynamic reconfiguration policies #329

Closed jjfumero closed 6 months ago

jjfumero commented 6 months ago

Description

This PR fixes the dynamic reconfiguration to select the correct device depending on the input policies.

Problem description

The issue was that the timers were not correctly calculated, and it includes the whole performance evaluation in the case of the performance policy. This PR solves this issue and it refactors the sequential and parallel strategies.

Backend/s tested

This PR has been tested with 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
$ make tests
jjfumero commented 6 months ago

all changes done.