Hallo
dir fehlt libcudart.so.xx.xx Das ist die Runtime Lib für CUDA und wird gebraucht.
Bei mir ist es die libcudart.so.10.1 je nachdem welche cudaversion du installierst ist es hinten eine andere Nummer.
Ich muss zugeben, da stehe ich auf dem schlauch. ldd zeigt diese library nicht an, das ist fakt. Ich verstehe aber nicht warum: linker greift auf diese library, gefunden wird sie auch, s Anlage. Hier relevante Zeilen:
---------
g++ -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -O3 -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/opt/cuda/include -I./opengl -I./ -DPLUGIN_NAME_I18N='"softhdcuvid"' -D_GNU_SOURCE -DCUVID -DHAVE_GL -DAV_INFO -DAV_INFO_TIME=3000 -DUSE_PIP -DUSE_MPEG_COMPLETE -DH264_EOS_TRICKSPEED -DUSE_VDR_SPU -DUSE_ALSA -DUSE_OPENGLOSD -DUSE_GLX -DUSE_SCREENSAVER -DUSE_SWRESAMPLE -DGIT_REV='"fae0d3a"' -g -Wextra -Winit-self -Werror=overloaded-virtual -std=c++0x -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -shared softhdcuvid.o softhddev.o video.o audio.o codec.o ringbuffer.o openglosd.o -lasound -lva-glx -lva -lGLEW -lGLU -lGL -lGLEW -lGLU -lGL -lfreetype -lavutil -lswscale -lavcodec -lavfilter -lxcb-screensaver -lxcb-dpms -lswresample -lrt -lX11-xcb -lX11 -lxcb-icccm -lxcb -L/usr/lib64 -L/usr/local/cuda/lib64 -lGLEW -lGLX -ldl -lcuda -Xlinker -verbose -L/opt/cuda/lib64 -lcudart -lnvcuvid -o libvdr-softhdcuvid.so
------- cut -------
attempt to open /usr/lib64/libcudart.so failed
attempt to open /usr/lib64/libcudart.a failed
attempt to open /usr/local/cuda/lib64/libcudart.so failed
attempt to open /usr/local/cuda/lib64/libcudart.a failed
attempt to open /opt/cuda/lib64/libcudart.so succeeded
/opt/cuda/lib64/libcudart.so
attempt to open /usr/lib64/libnvcuvid.so succeeded
/usr/lib64/libnvcuvid.so
----------------
zur Laufzeit muss diese lib auch auffindbar sein:
---------------
[andrey@vdrmain vdr-softhdcuvid]$ ldconfig -p | grep cudart
libcudart.so.10.1 (libc6,x86-64) => /opt/cuda/lib64/libcudart.so.10.1
libcudart.so (libc6,x86-64) => /opt/cuda/lib64/libcudart.so
----------------
cuda test läuft auch:
-----------------
[root@vdrmain samples]# bin/x86_64/linux/release/deviceQuery
bin/x86_64/linux/release/deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
Detected 1 CUDA Capable device(s)
Device 0: "GeForce GT 1030"
CUDA Driver Version / Runtime Version 10.1 / 10.1
CUDA Capability Major/Minor version number: 6.1
Total amount of global memory: 1998 MBytes (2095251456 bytes)
( 3) Multiprocessors, (128) CUDA Cores/MP: 384 CUDA Cores
GPU Max Clock rate: 1468 MHz (1.47 GHz)
Memory Clock rate: 3004 Mhz
Memory Bus Width: 64-bit
L2 Cache Size: 524288 bytes
Maximum Texture Dimension Size (x,y,z) 1D=(131072), 2D=(131072, 65536), 3D=(16384, 16384, 16384)
Maximum Layered 1D Texture Size, (num) layers 1D=(32768), 2048 layers
Maximum Layered 2D Texture Size, (num) layers 2D=(32768, 32768), 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: 65536
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 2 copy engine(s)
Run time limit on kernels: Yes
Integrated GPU sharing Host Memory: No
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: Yes
Supports Cooperative Kernel Launch: Yes
Supports MultiDevice Co-op Kernel Launch: Yes
Device PCI Domain ID / Bus ID / location ID: 0 / 1 / 0
Compute Mode:
< Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >
deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 10.1, CUDA Runtime Version = 10.1, NumDevs = 1
Result = PASS
---------
Ich verstehe echt nicht was da los sein soll. Was kann ich übersehen haben?