Giter Site home page Giter Site logo

Comments (4)

adujardin avatar adujardin commented on June 14, 2024

Hi,

Could you specify the exact commands used to get this error?
This is not an error we encountered before.

In the meantime, you could try to ask the Nvidia developers at https://forums.developer.nvidia.com/c/accelerated-computing/gpu-accelerated-libraries/12 if they have any idea on the possible root cause.

from zed-docker.

phamdat09 avatar phamdat09 commented on June 14, 2024

Hello, i use this docker file to build an image!!

FROM nvidia/cuda:11.1-devel-ubuntu18.04
RUN apt-get update -y && apt-get install --no-install-recommends lsb-release wget less udev sudo build-essential cmake -y && \
    wget -qO ZED_SDK.run https://download.stereolabs.com/zedsdk/3.3/cu111/ubuntu18_full && \
    chmod +x ZED_SDK.run ; ./ZED_SDK.run silent && \
    rm ZED_SDK.run && \
    rm -rf /var/lib/apt/lists/*

ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/lib64/stubs:/usr/lib/x86_64-linux-gnu
ENV CMAKE_LIBRARY_PATH=$CMAKE_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/lib64/stubs:/usr/lib/aarch64-linux-gnu
WORKDIR /usr/local/zed/

After, i use this commands:
sudo docker run --gpus all -e NVIDIA_DRIVER_CAPABILITIES=all -ti zed_devel:latest bash with zed_devel:latest is the name of docker imgae.
Then, I will build the object detection sample with C++.It raises an error which I mentioned when the model optimizea!!

Thanks for your supports

from zed-docker.

adujardin avatar adujardin commented on June 14, 2024

OK, I have the same message and I found the issue. You shouldn't add the stubs folder to the ld library path. It's dummy libraries only meant for building.

Your Dockerfile should be like (notice the LD_LIBRARY_PATH):

FROM nvidia/cuda:11.1-devel-ubuntu18.04
RUN apt-get update -y && apt-get install --no-install-recommends lsb-release wget less udev sudo build-essential cmake -y && \
    wget -qO ZED_SDK.run https://download.stereolabs.com/zedsdk/3.3/cu111/ubuntu18_full && \
    chmod +x ZED_SDK.run ; ./ZED_SDK.run silent && \
    rm ZED_SDK.run && \
    rm -rf /var/lib/apt/lists/*

ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/lib/x86_64-linux-gnu
ENV CMAKE_LIBRARY_PATH=$CMAKE_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/lib64/stubs:/usr/lib/aarch64-linux-gnu
WORKDIR /usr/local/zed/

To test this I used your original Dockerfile and removed the stubs folder (rm -rf /usr/local/cuda/lib64/stubs/) in interactive mode to make sure, and the optimization worked.

from zed-docker.

phamdat09 avatar phamdat09 commented on June 14, 2024

Thank you so much!!

Your solution works well on my side !!

from zed-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.