Closed akocabas closed 2 years ago
The problem doesn't occur if Nvidia driver and cuda versions are downgraded. Using Driver Version: 510.85.02 and CUDA Version: 11.6 solved the problem in my case. This is more like a Nvidia issue than a Zivid issure. Therefore i'm closing this.
I get the following error when I start the node in a docker container:
System
Nvidia GPU
Output of clinfo inside the container
NULL platform behavior clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) NVIDIA CUDA clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [NV] clCreateContext(NULL, ...) [default] Success [NV] clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) No platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) Invalid device type for platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No platform
ICD loader properties ICD loader Name OpenCL ICD Loader ICD loader Vendor OCL Icd free software ICD loader Version 2.2.11 ICD loader Profile OpenCL 2.1 NOTE: your OpenCL library only supports OpenCL 2.1, but some installed platforms support OpenCL 3.0. Programs using 3.0 features may crash or behave unexpectedly
+-----------------------------------------------------------------------------+ | NVIDIA-SMI 520.56.06 Driver Version: 520.56.06 CUDA Version: 11.8 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 Quadro RTX 3000 Off | 00000000:01:00.0 On | N/A | | N/A 48C P8 12W / N/A | 240MiB / 6144MiB | 28% Default | | | | N/A | +-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| +-----------------------------------------------------------------------------+
RUN apt-get install -y \ unzip \ tar \ curl \ xz-utils \ ocl-icd-libopencl1 \ opencl-headers \ clinfo
make opencl available in docker container (zivid)
RUN mkdir -p /etc/OpenCL/vendors && \ echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd ENV NVIDIA_VISIBLE_DEVICES all ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
Install Zivid SDK
RUN wget https://www.zivid.com/hubfs/softwarefiles/releases/2.8.0+891708ba-1/u20/zivid-telicam-driver_3.0.1.1-3_amd64.deb \ https://www.zivid.com/hubfs/softwarefiles/releases/2.8.0+891708ba-1/u20/zivid_2.8.0+891708ba-1_amd64.deb \ https://www.zivid.com/hubfs/softwarefiles/releases/2.8.0+891708ba-1/u20/zivid-studio_2.8.0+891708ba-1_amd64.deb \ https://www.zivid.com/hubfs/softwarefiles/releases/2.8.0+891708ba-1/u20/zivid-tools_2.8.0+891708ba-1_amd64.deb RUN apt install ./zivid-telicam-driver_3.0.1.1-3_amd64.deb \ ./zivid_2.8.0+891708ba-1_amd64.deb \ ./zivid-studio_2.8.0+891708ba-1_amd64.deb \ ./zivid-tools_2.8.0+891708ba-1_amd64.deb
RUN /bin/bash -c ". /opt/ros/noetic/setup.bash \ && cd catkin_ws/src \ && git clone https://github.com/zivid/zivid-ros.git \ && cd zivid-ros \ && git checkout a04aebf \ && cd ../.. \ && rosdep update \ && rosdep install --from-paths src --ignore-src -r -y \ && catkin build"