Skip to content
Snippets Groups Projects
Commit 0baf3ff6 authored by olga's avatar olga
Browse files

Adding intel-oriented container for simpletrack

parent 10772993
No related branches found
No related tags found
1 merge request!2Adding intel-oriented container for simpletrack
...@@ -14,3 +14,4 @@ build:image: ...@@ -14,3 +14,4 @@ build:image:
script: script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/lhc/simpletrack/Dockerfile.nvidia --destination ${CI_REGISTRY_IMAGE}/lhc/simpletrack:nvidia-latest - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/lhc/simpletrack/Dockerfile.nvidia --destination ${CI_REGISTRY_IMAGE}/lhc/simpletrack:nvidia-latest
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/lhc/simpletrack/Dockerfile.intel --destination ${CI_REGISTRY_IMAGE}/lhc/simpletrack:intel-latest
FROM docker.io/intelopencl/intel-opencl:centos-7-copr
ENV PARTICLES 20000
ENV TURNS 15
ENV DEVICE "0.0"
RUN yum install -y python3 python3-devel python3-pip git gcc && pip3 install pyopencl \
&& mkdir /.cache && chmod -R 777 /.cache/ \
&& git clone https://github.com/rdemaria/simpletrack \
&& cd simpletrack && pip3 install -e .
ENTRYPOINT [ "/bin/bash", "-c", "cd /simpletrack/examples/lhc/ && python3 benchmark_opencl.py -p $PARTICLES -t $TURNS -d $DEVICE" ]
# SimpleTrack
Docker images meant to build versions with the simpletrack benchmark for nvidia GPU and intel runtimes.
* __Nvidia__: To run the benchmark through the container image entrypoint make sure to enable GPU passthrough.
```
~$ docker run --rm --gpus all gitlab-registry.cern.ch/hep-benchmarks/hep-workloads-gpu/lhc/simpletrack:nvidia-latest
```
* __Intel__: Make sure to passthrough the /dev/dri into the container.
```
~$ docker run --rm --device /dev/dri:/dev/dri gitlab-registry.cern.ch/hep-benchmarks/hep-workloads-gpu/lhc/simpletrack:intel-latest
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment