Giter Club home page Giter Club logo

Comments (5)

sudhirpratapyadav avatar sudhirpratapyadav commented on July 17, 2024 1

Sorry for my mistake, I rechecked after your comment, image was fxiangucsd/sapien-rl-env and not fxiangucsd/sapien-build-env.

But yes fxiangucsd/sapien-rl-env this image works fine, only thing required is just to install sapien using pip install sapien.

from sapien.

fbxiang avatar fbxiang commented on July 17, 2024

Here are the minimal steps I found to enable offscreen rendering.

First, make sure at least graphics,utility,compute are added to NVIDIA_DRIVER_CAPABILITIES when building the Docker.

ENV NVIDIA_DRIVER_CAPABILITIES graphics,utility,compute,display

Next, install the libglvnd-dev package. (in fact, libegl1 + libxext6 should also work)

Next, you need to make sure both /usr/share/vulkan/icd.d/nvidia_icd.json and /usr/share/glvnd/egl_vendor.d/10_nvidia.json exist. If not, copy it from the corresponding location on the host machine into the Docker. These files should be provided by the driver, but many servers seem to miss them somehow.

Let me know if this works for you.

from sapien.

sudhirpratapyadav avatar sudhirpratapyadav commented on July 17, 2024

Thanks for the reply, I will try the solution and update.

Also I tried to use fxiangucsd/sapien-build-env image to create a docker container and when I installed sapien in it using pip it worked. I got output.png when running offline example.

So I guess issue is with adding graphics to NVIDIA_DRIVER_CAPABILITIES. I will check the above things and then revert back.

Also please add these instructions somewhere in the readme or documentation.

from sapien.

fbxiang avatar fbxiang commented on July 17, 2024

I am quite surprised that sapien-build-env docker works, as it is not designed to run SAPIEN but for compiling only.

I just figured out the capability thing yesterday, and it is now in the readme on the dev branch. I'll also provide the ICD files with SAPIEN in the next release (as a temporary hack for people with a partial driver installation).

from sapien.

FeiiYin avatar FeiiYin commented on July 17, 2024

Here are the minimal steps I found to enable offscreen rendering.

First, make sure at least graphics,utility,compute are added to NVIDIA_DRIVER_CAPABILITIES when building the Docker.

ENV NVIDIA_DRIVER_CAPABILITIES graphics,utility,compute,display

Next, install the libglvnd-dev package. (in fact, libegl1 + libxext6 should also work)

Next, you need to make sure both /usr/share/vulkan/icd.d/nvidia_icd.json and /usr/share/glvnd/egl_vendor.d/10_nvidia.json exist. If not, copy it from the corresponding location on the host machine into the Docker. These files should be provided by the driver, but many servers seem to miss them somehow.

Let me know if this works for you.

Thx, this works for me. I did not use docker.
I used sudo find / -name nvidia_icd.json to locate and copy the file and used export to append the nvidia environment variables.

from sapien.

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.