Hey all!
I am on Jetpack 3.1 with a TX2 that I can flash and clone (so I think my TX2 and JetPack 3,1 are correctly installed and working)
I was trying the tutorial here: GitHub - dusty-nv/jetson-inference: Hello AI World guide to deploying deep-learning inference networks and deep vision primitives with TensorRT and NVIDIA Jetson., but got stuck with making the CUDA samples. I downloaded nvidia-384, but have been able to see anything from “lsmod | grep nvidia” also,
sudo make
returned the error below, which I have shortened for brevity.
make[1]: Leaving directory ‘/usr/local/cuda-8.0/samples/1_Utilities/bandwidthTest’
make[1]: Entering directory ‘/usr/local/cuda-8.0/samples/1_Utilities/deviceQueryDrv’
make[1]: Nothing to be done for ‘all’.
make[1]: Leaving directory ‘/usr/local/cuda-8.0/samples/1_Utilities/deviceQueryDrv’
make[1]: Entering directory ‘/usr/local/cuda-8.0/samples/1_Utilities/p2pBandwidthLatencyTest’
make[1]: Nothing to be done for ‘all’.
make[1]: Leaving directory ‘/usr/local/cuda-8.0/samples/1_Utilities/p2pBandwidthLatencyTest’
make[1]: Entering directory ‘/usr/local/cuda-8.0/samples/2_Graphics/simpleGLES_screen’
WARNING - simpleGLES_screen is not supported on Linux x86_64 - waiving sample <<<
[@] /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -I…/…/common/inc -m64 -DUSE_CUDAINTEROP -DGRAPHICS_SETUP_EGL -DUSE_GLES -DWIN_INTERFACE_CUSTOM -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_60,code=compute_60 -o simpleGLES_screen.o -c simpleGLES_screen.cu
[@] /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_60,code=compute_60 -o simpleGLES_screen simpleGLES_screen.o -lGLESv2 -lEGL -lscreen
[@] mkdir -p …/…/bin/x86_64/linux/release
[@] cp simpleGLES_screen …/…/bin/x86_64/linux/release
make[1]: Leaving directory ‘/usr/local/cuda-8.0/samples/2_Graphics/simpleGLES_screen’
make[1]: Entering directory ‘/usr/local/cuda-8.0/samples/2_Graphics/simpleGLES_EGLOutput’
WARNING - simpleGLES_EGLOutput is not supported on Linux x86_64 - waiving sample <<<
[@] /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -I…/…/common/inc -m64 -DUSE_CUDAINTEROP -DGRAPHICS_SETUP_EGL -DUSE_GLES -I/usr/include/libdrm -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_60,code=compute_60 -o simpleGLES_EGLOutput.o -c simpleGLES_EGLOutput.cu
[@] /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_60,code=compute_60 -o simpleGLES_EGLOutput simpleGLES_EGLOutput.o -lGLESv2 -lEGL -ldrm
[@] mkdir -p …/…/bin/x86_64/linux/release
[@] cp simpleGLES_EGLOutput …/…/bin/x86_64/linux/release
make[1]: Leaving directory ‘/usr/local/cuda-8.0/samples/2_Graphics/simpleGLES_EGLOutput’
make[1]: Entering directory ‘/usr/local/cuda-8.0/samples/2_Graphics/volumeRender’
make[1]: Nothing to be done for ‘all’.
make[1]: Leaving directory ‘/usr/local/cuda-8.0/samples/2_Graphics/volumeRender’
make[1]: Entering directory ‘/usr/local/cuda-8.0/samples/2_Graphics/Mandelbrot’
make[1]: Nothing to be done for ‘all’.
make[1]: Leaving directory ‘/usr/local/cuda-8.0/samples/2_Graphics/Mandelbrot’
make[1]: Entering directory ‘/usr/local/cuda-8.0/samples/2_Graphics/volumeFiltering’
make[1]: Nothing to be done for ‘all’.
make[1]: Leaving directory ‘/usr/local/cuda-8.0/samples/2_Graphics/volumeFiltering’
make[1]: Entering directory ‘/usr/local/cuda-8.0/samples/2_Graphics/simpleGLES’
WARNING - simpleGLES is not supported on Linux x86_64 - waiving sample <<<
[@] /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -I…/…/common/inc -m64 -DUSE_CUDAINTEROP -DGRAPHICS_SETUP_EGL -DUSE_GLES -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_60,code=compute_60 -o simpleGLES.o -c simpleGLES.cu
[@] /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_60,code=compute_60 -o simpleGLES simpleGLES.o -lGLESv2 -lEGL -lX11
[@] mkdir -p …/…/bin/x86_64/linux/release
[@] cp simpleGLES …/…/bin/x86_64/linux/release
make[1]: Leaving directory ‘/usr/local/cuda-8.0/samples/2_Graphics/simpleGLES’
make[1]: Entering directory ‘/usr/local/cuda-8.0/samples/2_Graphics/simpleTexture3D’
make[1]: Nothing to be done for ‘all’.
make[1]: Leaving directory ‘/usr/local/cuda-8.0/samples/2_Graphics/simpleTexture3D’
make[1]: Entering directory ‘/usr/local/cuda-8.0/samples/2_Graphics/marchingCubes’
make[1]: Nothing to be done for ‘all’.
make[1]: Leaving directory ‘/usr/local/cuda-8.0/samples/3_Imaging/HSOpticalFlow’
make[1]: Entering directory ‘/usr/local/cuda-8.0/samples/3_Imaging/EGLStreams_CUDA_Interop’
WARNING - EGLStreams_CUDA_Interop is not supported on Linux x86_64 - waiving sample <<<
[@] /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -I…/…/common/inc -m64 -gencode arch=compute_32,code=sm_32 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_62,code=compute_62 -o cuda_consumer.o -c cuda_consumer.cpp
[@] /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -I…/…/common/inc -m64 -gencode arch=compute_32,code=sm_32 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_62,code=compute_62 -o cuda_producer.o -c cuda_producer.cpp
[@] /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -I…/…/common/inc -m64 -gencode arch=compute_32,code=sm_32 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_62,code=compute_62 -o eglstrm_common.o -c eglstrm_common.cpp
[@] /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -I…/…/common/inc -m64 -gencode arch=compute_32,code=sm_32 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_62,code=compute_62 -o main.o -c main.cpp
[@] /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_32,code=sm_32 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_62,code=compute_62 -o EGLStreams_CUDA_Interop cuda_consumer.o cuda_producer.o eglstrm_common.o main.o -lEGL -lcuda
[@] mkdir -p …/…/bin/x86_64/linux/release
[@] cp EGLStreams_CUDA_Interop …/…/bin/x86_64/linux/release
make[1]: Leaving directory ‘/usr/local/cuda-8.0/samples/3_Imaging/EGLStreams_CUDA_Interop’
make[1]: Entering directory ‘/usr/local/cuda-8.0/samples/3_Imaging/imageDenoising’
make[1]: Nothing to be done for ‘all’.
make[1]: Leaving directory ‘/usr/local/cuda-8.0/samples/3_Imaging/imageDenoising’
make[1]: Entering directory ‘/usr/local/cuda-8.0/samples/3_Imaging/simpleCUDA2GL’
make[1]: Nothing to be done for ‘all’.
make[1]: Leaving directory ‘/usr/local/cuda-8.0/samples/3_Imaging/dxtc’
make[1]: Entering directory ‘/usr/local/cuda-8.0/samples/3_Imaging/cudaDecodeGL’
/usr/local/cuda-8.0/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_20,code=compute_20 -o cudaDecodeGL FrameQueue.o ImageGL.o VideoDecoder.o VideoParser.o VideoSource.o cudaModuleMgr.o cudaProcessFrame.o videoDecodeGL.o -L/usr/lib/“nvidia-384” -lGL -lGLU -lX11 -lglut -lcuda -lcudart -lnvcuvid
nvcc warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
/usr/bin/ld: warning: libnvidia-tls.so.384.111, needed by /usr/lib/nvidia-384/libGL.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnvidia-glcore.so.384.111, needed by /usr/lib/nvidia-384/libGL.so, not found (try using -rpath or -rpath-link)
/usr/lib/nvidia-384/libGL.so: undefined reference to_nv018tls' /usr/lib/nvidia-384/libGL.so: undefined reference to
_nv017glcore’
/usr/lib/nvidia-384/libGL.so: undefined reference to_nv023tls' /usr/lib/nvidia-384/libGL.so: undefined reference to
_nv016glcore’
/usr/lib/nvidia-384/libGL.so: undefined reference to_nv015tls' /usr/lib/nvidia-384/libGL.so: undefined reference to
_nv019tls’
/usr/lib/nvidia-384/libGL.so: undefined reference to_nv000glcore' /usr/lib/nvidia-384/libGL.so: undefined reference to
_nv017tls’
/usr/lib/nvidia-384/libGL.so: undefined reference to_nv013tls' /usr/lib/nvidia-384/libGL.so: undefined reference to
_nv018glcore’
/usr/lib/nvidia-384/libGL.so: undefined reference to_nv024tls' /usr/lib/nvidia-384/libGL.so: undefined reference to
_nv022tls’
/usr/lib/nvidia-384/libGL.so: undefined reference to_nv007tls' /usr/lib/nvidia-384/libGL.so: undefined reference to
_nv009tls’
/usr/lib/nvidia-384/libGL.so: undefined reference to_nv020tls' /usr/lib/nvidia-384/libGL.so: undefined reference to
_nv014glcore’
/usr/lib/nvidia-384/libGL.so: undefined reference to_nv015glcore' /usr/lib/nvidia-384/libGL.so: undefined reference to
_nv016tls’
/usr/lib/nvidia-384/libGL.so: undefined reference to_nv001glcore' /usr/lib/nvidia-384/libGL.so: undefined reference to
_nv024glcore’
/usr/lib/nvidia-384/libGL.so: undefined reference to_nv008tls' /usr/lib/nvidia-384/libGL.so: undefined reference to
_nv006tls’
/usr/lib/nvidia-384/libGL.so: undefined reference to_nv021tls' /usr/lib/nvidia-384/libGL.so: undefined reference to
_nv023glcore’
/usr/lib/nvidia-384/libGL.so: undefined reference to_nv011tls' /usr/lib/nvidia-384/libGL.so: undefined reference to
_nv020glcore’
/usr/lib/nvidia-384/libGL.so: undefined reference to_nv022glcore' /usr/lib/nvidia-384/libGL.so: undefined reference to
_nv027glcore’
/usr/lib/nvidia-384/libGL.so: undefined reference to `_nv014tls’
collect2: error: ld returned 1 exit status
Makefile:381: recipe for target ‘cudaDecodeGL’ failed
make[1]: *** [cudaDecodeGL] Error 1
make[1]: Leaving directory ‘/usr/local/cuda-8.0/samples/3_Imaging/cudaDecodeGL’
Makefile:52: recipe for target ‘3_Imaging/cudaDecodeGL/Makefile.ph_build’ failed
make: *** [3_Imaging/cudaDecodeGL/Makefile.ph_build] Error 2
I have tried changing the “nvidia-xxx” to match “nvidia-384” for samples/3-Imaging/cudaDecodeGL/findgllib.mk but didnt fix the error.
I’m using a MacBook Pro 2014 with Ubuntu 16.04 native. Maybe it dosent have any Nvidia things inside?