-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ansible): added the spconv installation to ansible (#5794)
Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
- Loading branch information
Showing
8 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- name: Download and install the cumm and spconv packages | ||
hosts: localhost | ||
roles: | ||
- autoware.dev_env.spconv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# spconv | ||
|
||
This role install the `cumm` and `spconv` libraries needed to perform sparse convolutions. | ||
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. | ||
|
||
## Run the playbook | ||
|
||
The following command will install a particular version of the packages using ansible. | ||
|
||
```bash | ||
export CUMM_VERSION=0.5.3 | ||
export SPCONV_VERSION=2.3.8 | ||
ansible-playbook autoware.dev_env.install_spconv.yaml -e cumm_version=${CUMM_VERSION} -e spconv_version=${SPCONV_VERSION} --ask-become-pass | ||
``` |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# cspell:ignore Bcumm | ||
- name: Normalize dpkg architecture | ||
ansible.builtin.set_fact: | ||
normalized_arch: "{{ ansible_architecture | regex_replace('aarch64', 'arm64') | regex_replace('x86_64', 'amd64') }}" | ||
|
||
- name: Download the cumm package | ||
ansible.builtin.get_url: | ||
mode: "0644" | ||
url: https://github.com/knzo25/spconv_cpp/releases/download/spconv_v{{ spconv_version }}%2Bcumm_v{{ cumm_version }}/cumm_{{ cumm_version }}_{{ normalized_arch }}.deb | ||
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 | ||
ansible.builtin.get_url: | ||
mode: "0644" | ||
url: https://github.com/knzo25/spconv_cpp/releases/download/spconv_v{{ spconv_version }}%2Bcumm_v{{ cumm_version }}/spconv_{{ spconv_version }}_{{ normalized_arch }}.deb | ||
dest: /tmp/spconv.deb | ||
|
||
- name: Install the spconv package | ||
become: true | ||
ansible.builtin.apt: | ||
deb: /tmp/spconv.deb | ||
state: present |