TornadoVM runs on any Linux-based cloud VM, including AWS instances equipped with NVIDIA or AMD GPUs. GPU-equipped instances unlock the full range of OpenCL and CUDA backends, while CPU-only instances can still execute kernels via the OpenCL CPU device.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Deepak-Sangle/TornadoVM/llms.txt
Use this file to discover all available pages before exploring further.
Running on AWS for CPUs and GPUs
The installation and execution instructions for running TornadoVM on AWS CPU and GPU instances are identical to those for running locally. There is no cloud-specific build process or runtime configuration. Follow the standard installation guide to build TornadoVM on your cloud instance:Installation Guide
Step-by-step instructions for cloning, building, and verifying TornadoVM on Linux — applicable to any AWS instance.
Quick-start on a fresh GPU instance
The steps below apply to a fresh Ubuntu 22.04 LTS EC2 instance with NVIDIA GPU. They mirror the local Linux setup exactly.Install NVIDIA drivers (GPU instances)
If using a plain Ubuntu AMI, install the NVIDIA driver and reboot:After reboot, verify the driver is loaded:
AWS Deep Learning AMIs (DLAMIs) come with NVIDIA drivers and CUDA pre-installed. If you use a DLAMI, skip the driver installation step.
CPU-Only Cloud Instances
TornadoVM works on CPU-only instances through the OpenCL CPU device. This is useful for unit testing, debugging, and CI/CD pipelines where GPU availability is not guaranteed.Environment Variables Reference
Set these in~/.bashrc or your CI/CD environment configuration. Running source setvars.sh sets all of them automatically.
Required environment variables
Required environment variables
| Variable | Description | Example Value |
|---|---|---|
JAVA_HOME | Points to the JDK managed by TornadoVM | $TORNADOVM_HOME/etc/dependencies/TornadoVM-graal-jdk-21/.../ |
TORNADOVM_HOME | Root of the TornadoVM checkout | /home/ubuntu/TornadoVM |
TORNADO_SDK | Path to the compiled SDK | $TORNADOVM_HOME/bin/sdk |
PATH | Must include $TORNADO_SDK/bin | Managed by setvars.sh |
LD_LIBRARY_PATH | Native library path for GPU backends | $TORNADO_SDK/lib |