-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdependencies.yml
156 lines (128 loc) · 4.32 KB
/
dependencies.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
---
- hosts: localhost
tasks:
- name: Install Dependencies (Apt)
apt:
pkg:
- libhdf5-dev
- docker.io
- mosquitto-clients
- host
- dnsutils
- screen
- telnet
- chrony
- telegraf
- influxdb
- influxdb-client
- vim
- nano
- less
- file
- telnet
- iptables
- python3-pip
- xrdp
- cmake
- xorg-dev
- libboost-all-dev
- minicom
- net-tools
- iftop
- backport-iwlwifi-dkms
- firefox
- cuda-nvtx-12-2
- libcufft-dev-12-2
- libcusolver-dev-12-2
- libcurand-dev-12-2
- holoscan
- libpcap0.8-dev
- meson
- python3-pyelftools
state: present
update_cache: yes
- name: Remove gnome-initial-setup
apt:
pkg:
- gnome-initial-setup
state: absent
# - name: Install Utilities (Pip)
# pip:
# name:
# - jetson-stats
# async: 120
# poll: 5
# register: jetson_stats_watcher
# - name: Check jetson-stats install
# async_status:
# jid: "{{ jetson_stats_watcher.ansible_job_id }}"
# register: jetson_stats_result
# until: jeton_status_result.finished
# retries: 60 # Adjust based on your needs
# delay: 10
# failed_when: jetson_status_result.rc is not defined and retries == 60
# - name: Handle jetson-stats timeout
# command: /usr/sbin/service jtop stop
# when: jeton_status_result.rc is not defined
# - name: Install uv
# shell: "files/uv-install.sh"
- name: Check if Mellanox tools are installed
ansible.builtin.command:
cmd: dpkg-query -W -f='${Status}' mlnx-ofed-kernel-dkms
register: mft_check
ignore_errors: yes
- name: Extract the Mellanox firmware tools archive
ansible.builtin.command:
cmd: wget https://github.com/spectrumx/ansible/releases/download/deps-20241112/MLNX_OFED_LINUX-24.07-0.6.1.0-ubuntu22.04-aarch64.tgz -O /tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-ubuntu22.04-aarch64.tgz
warn: false
when: mft_check.rc != 0
- name: Extract the Mellanox firmware tools archive
ansible.builtin.command:
cmd: tar -xzf /tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-ubuntu22.04-aarch64.tgz -C /tmp/
warn: false
when: mft_check.rc != 0
- name: Install the Mellanox Drivers
command:
cmd: /tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-ubuntu22.04-aarch64/mlnxofedinstall --basic --with-mstflint --with-python3-pyverbs --force --without-fw-update
when: mft_check.rc != 0
- name: Clone holohub repository
git:
repo: 'https://github.com/ryanvolz/holohub.git'
dest: /opt/holohub
update: yes
version: "mep"
accept_hostkey: yes
register: run_holohub_setup
- name: Add git safe.directory to holohub repo
shell: GIT_DIR=/opt/holohub/.git GIT_WORK_TREE=/opt/holohub git config --add safe.directory "/opt/holohub"
when: not run_holohub_setup.before
- name: Setup holohub
command:
cmd: ./run setup
chdir: /opt/holohub
when: run_holohub_setup
- name: Check if dpdk is installed
ansible.builtin.command:
cmd: dpkg-query -W -f='${Version}' dpdk-for-jetson
register: dpdk_check
ignore_errors: yes
- name: Download dpdk
ansible.builtin.command:
cmd: wget https://github.com/spectrumx/ansible/releases/download/deps-20241112/dpdk-for-jetson_22.11.6-1ubuntu2_arm64.deb -O /tmp/dpdk-for-jetson_22.11.6-1ubuntu2_arm64.deb
warn: false
when: dpdk_check.stdout != "22.11.6-1ubuntu2"
- name: Install dpdk
apt:
deb: /tmp/dpdk-for-jetson_22.11.6-1ubuntu2_arm64.deb
state: present
when: dpdk_check.stdout != "22.11.6-1ubuntu2"
- name: Install holohub (long)
command:
cmd: './run build mimo_radar_pipeline --configure-args "-DMATX_EN_PYBIND11=ON -DPYBIND11_FINDPYTHON=ON -DPython_EXECUTABLE=/usr/bin/python3 -DPython_ROOT_DIR=/usr/lib/python3"'
chdir: /opt/holohub
when: run_holohub_setup
- name: Holohub setcap
command:
cmd: 'setcap cap_net_raw,cap_dac_override,cap_dac_read_search,cap_ipc_lock,cap_sys_admin+ep ./build/applications/mimo_radar_pipeline/cpp/mimo_radar_pipeline'
chdir: /opt/holohub
when: run_holohub_setup