Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create docker image for KataGo Jetson Nano build #189

Closed
Terkwood opened this issue Mar 10, 2020 · 0 comments · Fixed by #191
Closed

Create docker image for KataGo Jetson Nano build #189

Terkwood opened this issue Mar 10, 2020 · 0 comments · Fixed by #191
Labels
research Something to tinker with

Comments

@Terkwood
Copy link
Owner

Terkwood commented Mar 10, 2020

Goal

We would like to take a pre-built version of the KataGo executable and wrap it in a dockerfile, then simply execute some basic commands. Simply COPY the KataGo executable into the container and make sure it can run.

Getting started

This section details basics on connecting to the GPU hardware from within a docker container.

Follow this example. You'll need the compiled executable deviceQuery

Dockerfile

FROM arm64v8/ubuntu:16.04

ENV LD_LIBRARY_PATH=/usr/lib/aarch64-linux-gnu/tegra
RUN mkdir /cudaSamples
COPY deviceQuery /cudaSamples/

CMD /cudaSamples/deviceQuery

Running the device query

#!/bin/bash

docker run --device=/dev/nvhost-ctrl --device=/dev/nvhost-ctrl-gpu --device=/dev/nvhost-prof-gpu --device=/dev/nvmap --device=/dev/nvhost-gpu --device=/dev/nvhost-as-gpu -v /usr/lib/aarch64-linux-gnu/tegra:/usr/lib/aarch64-linux-gnu/tegra device_query
@Terkwood Terkwood added the research Something to tinker with label Mar 10, 2020
This was referenced Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
research Something to tinker with
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant