-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdependencies.yml
147 lines (121 loc) · 3.81 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
---
- hosts: localhost
tasks:
- name: Get GPG key for kitware repo (for cmake)
shell: wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
- name: Add deadsnakes PPA
apt_repository:
repo: ppa:deadsnakes/ppa
state: present
- name: Update apt cache
apt:
update_cache: yes
- name: Install Python 3.13
apt:
name: python3.13
state: present
- 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
- 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: 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