Closed JTylerBoylan closed 3 months ago
Hi @JTylerBoylan, to help with debugging this, can you check that you are able to run other containers successfully and use CUDA in them, like l4t-jetpack (try running some CUDA samples like deviceQuery/bandwidthTest/vectorAdd) and l4t-pytorch ?
I tried the deviceQuery sample and it failed:
root@jetson-nano:/# cp -r /usr/local/cuda/samples /tmp
root@jetson-nano:/# cd /tmp/samples/1_Utilities/deviceQuery
root@jetson-nano:/tmp/samples/1_Utilities/deviceQuery# make
/usr/local/cuda-11.4/bin/nvcc -ccbin g++ -I../../common/inc -m64 --threads 0 --std=c++11 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_72,code=sm_72 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_87,code=sm_87 -gencode arch=compute_87,code=compute_87 -o deviceQuery.o -c deviceQuery.cpp
/usr/local/cuda-11.4/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_72,code=sm_72 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_87,code=sm_87 -gencode arch=compute_87,code=compute_87 -o deviceQuery deviceQuery.o
mkdir -p ../../bin/aarch64/linux/release
cp deviceQuery ../../bin/aarch64/linux/release
root@jetson-nano:/tmp/samples/1_Utilities/deviceQuery# ./deviceQuery
./deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
cudaGetDeviceCount returned 3
-> initialization error
Result = FAIL
Another note that may be relevant is that when upgrading (sudo apt upgrade -y
), I was asked about overriding some files with the package maintainer's version, which I entered 'Y' to override. And then later in the upgrade I got some warnings and errors that looked like this:
WARNING: missing /lib/modules/4.9.253-tegra Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.9.253-tegra: No such file or directory
Not sure if that could be part of the issue.
OK yea, if you did an apt upgrade
it probably broke your docker daemon due to this recent issue upstream: https://github.com/dusty-nv/jetson-inference/issues/1795
Ok I will try re-flashing, and not upgrading.
Also another note, the deviceQuery test passed when I used base image nvcr.io/nvidia/l4t-base:r32.7.1
Host release:
nvidia@jetson-nano:~$ cat /etc/nv_tegra_release
# R32 (release), REVISION: 7.4, GCID: 33514132, BOARD: t210ref, EABI: aarch64, DATE: Fri Jun 9 04:25:08 UTC 2023
In container:
root@jetson-nano:/samples/1_Utilities/deviceQuery# ./deviceQuery
./deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
Detected 1 CUDA Capable device(s)
Device 0: "NVIDIA Tegra X1"
CUDA Driver Version / Runtime Version 10.2 / 10.2
CUDA Capability Major/Minor version number: 5.3
Total amount of global memory: 3956 MBytes (4148043776 bytes)
( 1) Multiprocessors, (128) CUDA Cores/MP: 128 CUDA Cores
GPU Max Clock rate: 922 MHz (0.92 GHz)
Memory Clock rate: 13 Mhz
Memory Bus Width: 64-bit
L2 Cache Size: 262144 bytes
Maximum Texture Dimension Size (x,y,z) 1D=(65536), 2D=(65536, 65536), 3D=(4096, 4096, 4096)
Maximum Layered 1D Texture Size, (num) layers 1D=(16384), 2048 layers
Maximum Layered 2D Texture Size, (num) layers 2D=(16384, 16384), 2048 layers
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 49152 bytes
Total number of registers available per block: 32768
Warp size: 32
Maximum number of threads per multiprocessor: 2048
Maximum number of threads per block: 1024
Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)
Maximum memory pitch: 2147483647 bytes
Texture alignment: 512 bytes
Concurrent copy and kernel execution: Yes with 1 copy engine(s)
Run time limit on kernels: Yes
Integrated GPU sharing Host Memory: Yes
Support host page-locked memory mapping: Yes
Alignment requirement for Surfaces: Yes
Device has ECC support: Disabled
Device supports Unified Addressing (UVA): Yes
Device supports Compute Preemption: No
Supports Cooperative Kernel Launch: No
Supports MultiDevice Co-op Kernel Launch: No
Device PCI Domain ID / Bus ID / location ID: 0 / 0 / 0
Compute Mode:
< Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >
deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 10.2, CUDA Runtime Version = 10.2, NumDevs = 1
Result = PASS
That's interesting about l4t-base, didn't put it together you were on JetPack 4. All the CUDA stuff is mounted from host into l4t-base on JP4. I'm not sure why that works and the others don't though.
The re-flashing didn't work, but I found the solution. The container works when I specify the container directly without autotag:
./run.sh dustynv/opencv:r32.7.1
I guess autotag didn't pick up the correct version.
Thanks for the help!
ooo, okay thanks - you're right, it tried to run dustynv/opencv:4.8.1-r36.2.0
for some reason, here autotag works correctly on JP4 still...will look into it
I am trying to run the opencv jetson container on my brand new Jetson Nano Developer Kit.
The exact steps I took from flashing the Jetson:
jetson-containers
repo and installed dependenciesnvidia
./run.sh $(./autotag opencv)
python3 -c "import cv2"
Output:
The library does exist in the container:
How do I fix this?
Thank you!