This repo holds multiple versions of images depending on the opencl implementation being used. The following set of commands shows how to build each one.
docker run --device /dev/dri -it aparapi/aparapi-amdgpu:latest bash
```
To run the NVIDIA based OpenCL implementation you can run the following command presuming you have the [NVIDIA Container Toolkit](https://github.com/NVIDIA/nvidia-docker) installed as well as the appropriate drivers.
```bash
docker run --runtime=nvidia -it aparapi/aparapi-nvidia:latest bash
```
### Using as a Gitlab Runner
If you wish to use this container as an image for use in a GitLab CI when setting up your own runner then the following config.toml will serve as an example. Ensure you select an AMI which has the
[NVIDIA Container Toolkit](https://github.com/NVIDIA/nvidia-docker) installed and the instance type is GPU-accelerated with NVIDIA hardware (most are). Both of which are the case in the below example. Don't forget
to also change the MachineOptions and other values to appropriate values.