beehive-lab / TornadoVM

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

[feat] SPIR-V binary stored in tmp directory per username #452

Closed jjfumero closed 2 weeks ago

jjfumero commented 2 weeks ago

Description

This PR improves the handling of the SPIR-V binary by storing the intermediate binary in a temp directory per user. This can avoid some issues when running TornadoVM in a Compute/HPC cluster by multiple users.

Problem description

Directory permission issues due to sharing the same folder in some systems (e.g., Linux).

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?

$ make BACKEND=spirv

tornado-test --jvm="-Dtornado.spirv.dispatcher=levelzero" -V --debug uk.ac.manchester.tornado.unittests.foundation.TestFloats

tornado-test --jvm="-Dtornado.spirv.dispatcher=opencl" -V --debug uk.ac.manchester.tornado.unittests.foundation.TestFloats