One click dev environments for MLIR with CUDA support.
To use GitHub Codespaces, just click the button below.
The following image permutations are available:
- Ubuntu 24.04
- Ubuntu 22.04
- With CUDA 12.8
- No CUDA
- MLIR 20
- MLIR 19
# With CUDA
docker pull ghcr.io/sdiehl/docker-mlir-cuda:mlir20-cuda-ubuntu24.04
docker pull ghcr.io/sdiehl/docker-mlir-cuda:mlir19-cuda-ubuntu24.04
# Without CUDA
docker pull ghcr.io/sdiehl/docker-mlir-cuda:mlir20-ubuntu24.04
docker pull ghcr.io/sdiehl/docker-mlir-cuda:mlir19-ubuntu24.04
# With CUDA
docker pull ghcr.io/sdiehl/docker-mlir-cuda:mlir20-cuda-ubuntu22.04
docker pull ghcr.io/sdiehl/docker-mlir-cuda:mlir19-cuda-ubuntu22.04
# Without CUDA
docker pull ghcr.io/sdiehl/docker-mlir-cuda:mlir20-ubuntu22.04
docker pull ghcr.io/sdiehl/docker-mlir-cuda:mlir19-ubuntu22.04
To run any of these images:
docker run -it ghcr.io/sdiehl/docker-mlir-cuda:<tag> bash
Or in your Dockerfile:
FROM ghcr.io/sdiehl/docker-mlir-cuda:<tag>
This repository includes a devcontainer.json
file in the .devcontainer
directory. This allows you to use Visual Studio Code's Remote - Containers extension to develop inside a container.
- Install Visual Studio Code.
- Install the Remote - Containers extension.
- Clone this repository.
- Open the repository in Visual Studio Code.
- When prompted, reopen the repository in a container.
This will build and start a development container using the settings specified in the devcontainer.json
file.
You can use this development environment directly in GitHub Codespaces:
- Navigate to the repository on GitHub
- Click the "Code" button
- Select the "Codespaces" tab
- Click "Create codespace on main"
- In the options dialog, select "MLIR CUDA Dev Container" as the base image
- Wait for the codespace to build and start
CUDA binaries are installed to /usr/local/cuda/bin/
and the CUDA libraries are installed to /usr/local/cuda/lib64/
.
To append to your paths add the following to ~/.bashrc
:
export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH