-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can’t build GPU docker for Nvidia Jetson devices #1685
Comments
Strange that the build fails, in any case, to test stuff you shouldn't need to rebuild the image, use Edit: ah, never mind, I see that you're running on ARM, not Intel (and we don't publish gpu images for ARM). I'm not really sure, but I'm guessing the build might have issues with the CPU architecture rather than the GPU. I'd start by figuring out why libavcodec is missing or why it can't be installed. |
Hi @pierotofy , I got the same error on amd64 machine. 66.83 from opendm.photo import find_largest_photo_dims
66.83 File "/code/opendm/photo.py", line 17, in <module>
66.83 from opendm import get_image_size
66.83 File "/code/opendm/get_image_size.py", line 2, in <module>
66.83 import cv2
66.83 File "/code/SuperBuild/install/lib/python3.8/dist-packages/cv2/__init__.py", line 96, in <module>
66.83 bootstrap()
66.83 File "/code/SuperBuild/install/lib/python3.8/dist-packages/cv2/__init__.py", line 86, in bootstrap
66.83 import cv2
66.83 ImportError: libavcodec.so.58: cannot open shared object file: No such file or directory I finally found the reason (at least in my case). I am new to the automated building of ODM and maybe it is wrong. I am just sharing the steps on how to find and fix the bug.
We can also find the first stage (build) is using The default version of Lines 58 to 63 in 38af615
Go back to the log again. I found an output: #10 29.87 Cannot add PPA: 'ppa:~ubuntugis/ubuntu/ubuntugis-unstable'.
#10 29.87 The team named '~ubuntugis' has no PPA named 'ubuntu/ubuntugis-unstable'
#10 29.87 Please choose from the following available PPAs:
#10 29.87 * 'ppa': ubuntugis-stable
#10 29.87 * 'ubuntugis-experimental': ubuntugis-experimental
#10 29.87 * 'ubuntugis-testing': ubuntugis-testing
#10 29.87 * 'ubuntugis-unstable': ubuntugis-unstable I am not sure why this happened. It is weird. Then I created a docker container using if [[ "$UBUNTU_VERSION" == *"20.04"* ]]; then
echo "Enabling PPA for Ubuntu GIS"
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 089EBE08314DF160
sudo $APT_GET install -y -qq --no-install-recommends software-properties-common ca-certificates apt-transport-https gnupg
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
sudo $APT_GET update
fi @Dennis-Johnson Can you try this to see if works for you? |
How did you install ODM? (Docker, installer, natively, ...)?
Docker: tried using the original gpu.Dockerfile and a modified dockerfile (included below) as well.
What is the problem?
I can't build ODM on a Nvidia Jetson (Tegra SoC) device using the default gpu.Dockerfile.
What should be the expected behavior? If this is a feature request, please describe in detail the changes you think should be made to the code, citing files and lines where changes should be made, if possible.
I want to test ODM on Nvidia Jetson devices. These devices have an integrated GPU on the SoC unlike the PCIe connected GPUs on x86 desktops. This implies that
nvidia-smi
does not work to detect presence of a GPU. Typicallytegrastats
util is used to find GPU and CUDA info.My use case is to accelerate SIFT feature detection on the GPU. Is the OpenCV dependency needed for this in the first place? Can someone suggest parts of the code-base to modify to test whether the SIFT bits have been built with CUDA support properly?
How can we reproduce this? What steps did you do to trigger the problem?
On trying to build the original gpu.Dockerfile, this error is shown.
I tried apt install
libavutil-dev
before this step in the dockerfile, but it's not found.Since the CUDA version is coupled with the OS for the Tegra devices, I installed what I assumed is a similar base image which has the required CUDA runtime and libraries.
Still no luck, I got a different error during the OpenCV build step using this modified Dockerfile.
System Info
The text was updated successfully, but these errors were encountered: