GPU Virtualization Example

Virtualized GPU provides a way to run graphics-intensive applications on standard hardware by emulating a dedicated GPU.

The following example demonstrates how to create a virtualized GPU using a simple docker setup:

# Dockerfile
FROM nvidia-docker
CMD ["nvidia-docker", "run", "--gpus=a", "-it", "alpine"]
        

After running the container, you should see a message indicating that a GPU has been successfully assigned.

For more information about NVIDIA containers, please visit the official documentation at NVIDIA Drive.