Skip to content

Commit

Permalink
chore: added the spconv installation to ansible
Browse files Browse the repository at this point in the history
Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
  • Loading branch information
knzo25 committed Feb 17, 2025
1 parent 4374782 commit 122e0b2
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions amd64.env
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ cuda_version=12.4
cudnn_version=8.9.7.29-1+cuda12.2
tensorrt_version=10.8.0.43-1+cuda12.8
pre_commit_clang_format_version=17.0.5
cumm_version=0.5.3

Check warning on line 10 in amd64.env

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (cumm)
spconv_version=2.3.8

Check warning on line 11 in amd64.env

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (spconv)
2 changes: 2 additions & 0 deletions ansible/playbooks/universe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
when: rosdistro != 'rolling'
- role: autoware.dev_env.tensorrt
when: prompt_install_nvidia == 'y'
- role: autoware.dev_env.spconv

Check warning on line 57 in ansible/playbooks/universe.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (spconv)
when: prompt_install_nvidia == 'y'

# Autoware devel dependencies
- role: autoware.dev_env.dev_tools
Expand Down
8 changes: 8 additions & 0 deletions ansible/roles/spconv/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# spconv

Check warning on line 1 in ansible/roles/spconv/README.md

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (spconv)

This role install the `cumm` and `spconv` libraries needed to perform sparse convolutions.

Check warning on line 3 in ansible/roles/spconv/README.md

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (cumm)

Check warning on line 3 in ansible/roles/spconv/README.md

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (spconv)
The [original implementation](https://github.com/traveller59/spconv) did not provide a shared library, which is pre-generated c++ code and pre-compiled libraries were prepared [separatedly](https://github.com/knzo25/spconv_cpp).

## Manual Installation

For manual installation, please follow the instructions in [this](https://github.com/knzo25/spconv_cpp) repository.
Empty file.
Empty file.
21 changes: 21 additions & 0 deletions ansible/roles/spconv/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
- name: Download the cumm package

Check failure on line 1 in ansible/roles/spconv/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / pre-commit-ansible

risky-file-permissions

File permissions unset or incorrect.

Check warning on line 1 in ansible/roles/spconv/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (cumm)
ansible.builtin.get_url:
url: https://github.com/knzo25/spconv_cpp/releases/download/spconv_v{{ spconv_version }}%2Bcumm_v{{ cumm_version }}/cumm_{{ cumm_version }}_amd64.deb

Check warning on line 3 in ansible/roles/spconv/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (spconv)

Check warning on line 3 in ansible/roles/spconv/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (Bcumm)

Check warning on line 3 in ansible/roles/spconv/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (cumm)
dest: /tmp/cumm.deb

- name: Install the cumm package
become: true
ansible.builtin.apt:
deb: /tmp/cumm.deb
state: present

- name: Download the spconv package

Check failure on line 12 in ansible/roles/spconv/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / pre-commit-ansible

risky-file-permissions

File permissions unset or incorrect.
ansible.builtin.get_url:
url: https://github.com/knzo25/spconv_cpp/releases/download/spconv_v{{ spconv_version }}%2Bcumm_v{{ cumm_version }}/spconv_{{ spconv_version }}_amd64.deb
dest: /tmp/spconv.deb

- name: Install the spconv package
become: true
ansible.builtin.apt:
deb: /tmp/spconv.deb
state: present

0 comments on commit 122e0b2

Please sign in to comment.