Skip to content

Commit c62ce2c

Browse files
committed
fix(docker): Preload libgomp for gisnav service
Needed when importing torch on Jetson Nano. See See https://bugzilla.redhat.com/show_bug.cgi?id=1722181#c6 for more information.
1 parent c29409d commit c62ce2c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docker-compose.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ services:
7070
- driver: nvidia
7171
count: 1
7272
capabilities: [ gpu ]
73-
command: bash -c "source /opt/ros/foxy/setup.bash && source ~/colcon_ws/install/setup.bash && ros2 launch gisnav px4.launch.py"
73+
command: >
74+
bash -c "source /opt/ros/foxy/setup.bash && source ~/colcon_ws/install/setup.bash &&
75+
export LD_PRELOAD=$(find $(pip3 show torch |grep Location: |cut -d' ' -f 2)/torch/lib -name 'libgomp*') &&
76+
ros2 launch gisnav px4.launch.py"
7477
7578
px4:
7679
build:

docker/gisnav/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ RUN apt-get update --fix-missing && \
1111
USER $USERNAME
1212

1313
# Install GDAL
14-
RUN sudo apt-get -y install software-properties-common && \
14+
RUN sudo apt-get -y upgrade && \
15+
sudo apt-get -y update && \
16+
sudo apt-get -y install software-properties-common && \
1517
sudo add-apt-repository ppa:ubuntugis/ppa && \
1618
sudo apt-get update && \
1719
sudo apt-get -y install gdal-bin libgdal-dev

0 commit comments

Comments
 (0)