beehive-lab / TornadoVM-Ray-Tracer

A real-time ray tracer in Java, accelerated on heterogeneous hardware using TornadoVM
Apache License 2.0
12 stars 1 forks source link

TaskSchedule is created and executes on different threads #2

Open gigiblender opened 2 years ago

gigiblender commented 2 years ago

If you check the GUI version of the Ray Tracer and print the current thread id in the places where a TaskSchedule is created/executed, you will see that different threads create and execute the TaskSchedule.

I think this is a bug since I don't think sharing TaskSchedules between threads is safe.

I am not sure, but this could be the cause we sometimes see clBuildError with OpenCL devices.