# Singularity

## Install Singularity image from a Docker image

To convert the Docker image to a Singularity image, type

```console
singularity pull docker://hepcce2/larwire-kokkos:2.2
```

### Start Singularity container

```console
singularity exec larwirekokkos:2.2.sif env -i bash --rcfile singularity-login.rc
```

At this point, you should have the `wire-cell` and `lar` executables available for you

```console
$ type lar
lar is /products/art/v3_09_03/slf7.x86_64.e20.prof/bin/lar
$ type wire-cell
wire-cell is /products/wirecell/v0_17_0/Linux64bit+3.10-2.17-e20-prof/bin/wire-cell
```

In order to enable the Kokkos libraries (located at `/opt/kokkos_omp`
and `/opt/kokkos_cuda`), type:

```console
$ enable_kokkos_omp
 -> or
$ enable_kokkos_cuda
```
