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 113 forks source link

Add TornadoVM to SDKMan! #461

Open jimbethancourt opened 4 months ago

jimbethancourt commented 4 months ago

Is your feature request related to a problem? Please describe. Easy installation in *Nix environments

Describe the solution you'd like I would like TornadoVM to be included as an offering on SDKMan! - https://sdkman.io/ It would make installing TornadoVM locally as easy as sdk install tornadovm

Describe alternatives you've considered none

Additional context I think this would significantly improve the ease of installation and adoption

Thanks!

jjfumero commented 4 months ago

That would be great. I think it would be better to add a feature request directly to the sdkman repo.

However, the installation process can be tricky because it assumes the system already has an installation of a compatible GPU/FPGA driver (NVIDIA + CUDA, Intel Runtime + oneAPI, etc). Maybe a better way is to assume this exists, and then just call the script. TornadoVM installation itself is very simple:

## Install OpenCL Backend
./bin/tornadovm-installer --jdk jdk21 --backend opencl

## Install SPIR-V Backend + OpenCL
./bin/tornadovm-installer --jdk jdk21 --backend opencl,spirv

## Install SPIR-V Backend + OpenCL + PTX
./bin/tornadovm-installer --jdk jdk21 --backend opencl,spirv,ptx 

So the SDK man can have different configurations and invoke this script directly.