Skip to content

Commit

Permalink
Jetson AGX Xavier Developer Kit
Browse files Browse the repository at this point in the history
  • Loading branch information
helmut-hoffer-von-ankershoffen committed Sep 9, 2019
1 parent fd7124f commit 21c4ef9
Show file tree
Hide file tree
Showing 89 changed files with 14,262 additions and 352 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ workflow/provision/image/*

.ipynb_checkpoints
.nvcr.auth
.docker-hub.auth
.docker-hub.auth
233 changes: 160 additions & 73 deletions Makefile

Large diffs are not rendered by default.

124 changes: 84 additions & 40 deletions README.md

Large diffs are not rendered by default.

Binary file added doc/assets/setup.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 2 additions & 7 deletions workflow/deploy/device-query/kustomize/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
hostname: device-query
containers:
- name: device-query
image: max-one.local:5001/jetson/device-query
image: max-one.local:5001/jetson/nano/device-query
volumeMounts:
- mountPath: /dev/nvhost-ctrl
name: nvhost-ctrl
Expand All @@ -31,8 +31,6 @@ spec:
name: nvhost-gpu
- mountPath: /dev/nvhost-as-gpu
name: nvhost-as-gpu
- mountPath: /usr/lib/aarch64-linux-gnu/tegra
name: drivers
securityContext:
privileged: true
volumes:
Expand All @@ -54,8 +52,5 @@ spec:
- name: nvhost-as-gpu
hostPath:
path: /dev/nvhost-as-gpu
- name: drivers
hostPath:
path: /usr/lib/aarch64-linux-gnu/tegra
nodeSelector:
jetson: "true"
jetson_model: "nano"

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: device-query
namespace: jetson-device-query
spec:
selector:
matchLabels:
app: device-query
template:
metadata:
name: device-query
labels:
app: device-query
spec:
containers:
- name: device-query
image: max-one.local:5001/jetson/xavier/device-query
nodeSelector:
jetson_model: "xavier"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bases:
- ../../base/
patches:
- deployment.yaml
18 changes: 13 additions & 5 deletions workflow/deploy/device-query/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build:
tagPolicy:
sha256: {}
artifacts:
- image: max-one.local:5001/jetson/device-query
- image: max-one.local:5001/jetson/nano/device-query
custom:
buildCommand: ../tools/builder device-query
dependencies:
Expand All @@ -20,18 +20,26 @@ deploy:
global:
- "--namespace=jetson-device-query"
profiles:
- name: max
- name: xavier
activation:
- env: JETSON_MODEL=xavier
patches:
- op: replace
path: /build/artifacts/0/image
value: max-one.local:5001/jetson/xavier/device-query
- op: replace
path: /build/artifacts/0/custom/buildCommand
value: ../tools/builder device-query xavier max-one.local:5001/jetson/xavier/ml-base
- op: replace
path: /deploy/kustomize/path
value: kustomize/overlays/max
value: kustomize/overlays/xavier
- name: docker-hub-parent
patches:
- op: replace
path: /build/artifacts/0/custom/buildCommand
value: ../tools/builder jupyter helmuthva/jetson-ml-base
value: ../tools/builder jupyter nano helmuthva/jetson-nano-ml-base
- name: docker-hub
patches:
- op: replace
path: /build/artifacts/0/image
value: helmuthva/jetson-device-query
value: helmuthva/jetson-nano-device-query
8 changes: 4 additions & 4 deletions workflow/deploy/device-query/src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base=max-one.local:5001/jetson/ml-base
FROM ${base}
ARG FROM=max-one.local:5001/jetson/nano/ml-base
FROM ${FROM}

MAINTAINER Helmut Hoffer von Ankershoffen <helmuthva@googlemail.com>

Expand All @@ -8,7 +8,7 @@ RUN cd /usr/local/cuda/samples/1_Utilities/deviceQuery && \
make clean && \
make && \
mkdir /app && \
cp deviceQuery /app/deviceQuery
cp -f deviceQuery /app/deviceQuery

# Execute deviceQuery to validate cuda and driver access on boot than sleep
CMD exec /bin/bash -c "trap : TERM INT; /app/deviceQuery; echo \"Sleeping until terminated - press ctrl+c...\"; sleep infinity & wait"
CMD exec /bin/bash -c "trap : TERM INT; /app/deviceQuery; echo \"Sleeping until terminated so you can see the log - press ctrl+c...\"; sleep infinity & wait"
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
hostname: jupyter
containers:
- name: jupyter
image: max-one.local:5001/jetson/jupyter
image: max-one.local:5001/jetson/nano/jupyter
volumeMounts:
- mountPath: /dev/nvhost-ctrl
name: nvhost-ctrl
Expand All @@ -31,8 +31,6 @@ spec:
name: nvhost-gpu
- mountPath: /dev/nvhost-as-gpu
name: nvhost-as-gpu
- mountPath: /usr/lib/aarch64-linux-gnu/tegra
name: drivers
securityContext:
privileged: true
ports:
Expand Down Expand Up @@ -67,8 +65,5 @@ spec:
- name: nvhost-as-gpu
hostPath:
path: /dev/nvhost-as-gpu
- name: drivers
hostPath:
path: /usr/lib/aarch64-linux-gnu/tegra
nodeSelector:
jetson: "true"
jetson_model: "nano"
2 changes: 1 addition & 1 deletion workflow/deploy/jupyter/kustomize/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
resources:
- ingresses.yaml
- services.yaml
- deployments.yaml
- deployment.yaml
- pvcs.yaml
1 change: 0 additions & 1 deletion workflow/deploy/jupyter/kustomize/base/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ spec:
app: jupyter
type: LoadBalancer
loadBalancerIP: 12.0.0.208

This file was deleted.

21 changes: 21 additions & 0 deletions workflow/deploy/jupyter/kustomize/overlays/xavier/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: jupyter
namespace: jetson-jupyter
spec:
replicas: 1
selector:
matchLabels:
app: jupyter
template:
metadata:
name: jupyter
labels:
app: jupyter
spec:
containers:
- name: jupyter
image: max-one.local:5001/jetson/xavier/jupyter
nodeSelector:
jetson_model: "xavier"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bases:
- ../../base/
patches:
- deployment.yaml
21 changes: 17 additions & 4 deletions workflow/deploy/jupyter/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build:
tagPolicy:
sha256: {}
artifacts:
- image: max-one.local:5001/jetson/jupyter
- image: max-one.local:5001/jetson/nano/jupyter
custom:
buildCommand: ../tools/builder jupyter
dependencies:
Expand All @@ -20,13 +20,26 @@ deploy:
global:
- "--namespace=jetson-jupyter"
profiles:
- name: max
- name: xavier
activation:
- env: JETSON_MODEL=xavier
patches:
- op: replace
path: /build/artifacts/0/image
value: max-one.local:5001/jetson/xavier/jupyter
- op: replace
path: /build/artifacts/0/custom/buildCommand
value: ../tools/builder jupyter xavier max-one.local:5001/jetson/xavier/ml-base
- op: replace
path: /deploy/kustomize/path
value: kustomize/overlays/max
value: kustomize/overlays/xavier
- name: docker-hub-parent
patches:
- op: replace
path: /build/artifacts/0/custom/buildCommand
value: ../tools/builder jupyter helmuthva/jetson-ml-base
value: ../tools/builder jupyter nano helmuthva/jetson-nano-ml-base
- name: docker-hub
patches:
- op: replace
path: /build/artifacts/0/image
value: helmuthva/jetson-nano-jupyter
10 changes: 3 additions & 7 deletions workflow/deploy/jupyter/src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
ARG base=max-one.local:5001/jetson/ml-base
FROM ${base}
ARG FROM=max-one.local:5001/jetson/nano/ml-base
FROM ${FROM}

MAINTAINER Helmut Hoffer von Ankershoffen <helmuthva@googlemail.com>

# Install Jupyter
RUN conda install -y jupyter && \
conda install -y ipywidgets
RUN pip uninstall -y tornado && \
pip uninstall -y nbconvert
RUN pip install tornado==4.2
RUN pip install nbconvert==5.3.1

# Install packages for data science
RUN conda install -y seaborn

# Install Matlab clone Octave as alternative Jupyter kernel
RUN apt-get update && \
apt-get install -y \
gnuplot \
octave \
octave-optim \
gnuplot \
&& \
apt-get clean
RUN conda install -y octave_kernel && \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
hostname: l4t
containers:
- name: l4t
image: max-one.local:5001/jetson/l4t
image: max-one.local:5001/jetson/nano/l4t
volumeMounts:
- mountPath: /dev/nvhost-ctrl
name: nvhost-ctrl
Expand Down Expand Up @@ -69,4 +69,4 @@ spec:
hostPath:
path: /usr/lib/aarch64-linux-gnu/tegra
nodeSelector:
jetson: "true"
jetson_model: "nano"
2 changes: 1 addition & 1 deletion workflow/deploy/l4t/kustomize/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
resources:
- ingresses.yaml
- services.yaml
- deployments.yaml
- deployment.yaml
- pvcs.yaml
3 changes: 1 addition & 2 deletions workflow/deploy/l4t/kustomize/base/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ spec:
selector:
app: l4t
type: LoadBalancer
loadBalancerIP: 12.0.0.209

loadBalancerIP: 12.0.0.210
3 changes: 0 additions & 3 deletions workflow/deploy/l4t/kustomize/overlays/max/kustomization.yaml

This file was deleted.

21 changes: 21 additions & 0 deletions workflow/deploy/l4t/kustomize/overlays/xavier/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: l4t
namespace: jetson-l4t
spec:
selector:
matchLabels:
app: l4t
template:
metadata:
name: l4t
labels:
app: l4t
spec:
hostname: l4t
containers:
- name: l4t
image: max-one.local:5001/jetson/xavier/l4t
nodeSelector:
jetson_model: "xavier"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bases:
- ../../base/
patches:
- deployment.yaml
8 changes: 5 additions & 3 deletions workflow/deploy/l4t/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build:
tagPolicy:
sha256: {}
artifacts:
- image: max-one.local:5001/jetson/l4t
- image: max-one.local:5001/jetson/nano/l4t
custom:
buildCommand: ./builder.mac
dependencies:
Expand All @@ -20,8 +20,10 @@ deploy:
global:
- "--namespace=jetson-l4t"
profiles:
- name: max
- name: xavier
activation:
- env: JETSON_MODEL=xavier
patches:
- op: replace
path: /deploy/kustomize/path
value: kustomize/overlays/max
value: kustomize/overlays/xavier
Loading

0 comments on commit 21c4ef9

Please sign in to comment.