Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centos support #48

Closed
jiaxiangshang opened this issue Sep 26, 2021 · 9 comments
Closed

Centos support #48

jiaxiangshang opened this issue Sep 26, 2021 · 9 comments

Comments

@jiaxiangshang
Copy link

Hi all, really nice work and it is very convenient on ubuntu.
However, the online server always centos, will you update some support on centos?
Thanks.

@s-laine
Copy link
Collaborator

s-laine commented Sep 27, 2021

We don't currently have plans to support CentOS. But I didn't know there is an online service that uses only CentOS, can you tell me what it is?

@jiaxiangshang
Copy link
Author

Oh sorry i didn't make it clear,it is our servers rather than the online server(like Colab). But, it is really difficult to make nvdiffrast work on centos, looking forward to your further supporting.

@s-laine
Copy link
Collaborator

s-laine commented Oct 1, 2021

This was touched previously in issue #28 and the situation has not changed. We have no experience with CentOS and haven't developed nvdiffrast with it in mind, so providing support could be a significant undertaking if there are missing packages, obsolete drivers, and so on.

As such, we do not expect to actively support CentOS for the time being. I can only suggest trying to find a way to get all the required dependencies installed in CentOS, and if after that nvdiffrast still refuses to run, then it might be a problem in the code itself and potentially worth looking into.

@jiaxiangshang
Copy link
Author

Ok, thanks for your help.

@s-laine s-laine closed this as completed Oct 4, 2021
@wuneng
Copy link

wuneng commented Dec 1, 2021

I have installed nvdiffrast on centos successfully.

@s-laine
Copy link
Collaborator

s-laine commented Dec 1, 2021

Hi @wuneng! If you have the time, could you please briefly outline the (non-trivial) steps that were needed to get it working?

It would be great to be able to point here in the documentation, so that others can benefit from your solution too.

@o0Helloworld0o
Copy link

Hi @wuneng ! Can you share the installation steps briefly? This is a great help for beginners. Thank you.

@XinYu-Andy
Copy link

Hi @wuneng! If you have the time, could you please briefly outline the (non-trivial) steps that were needed to get it working?

It would be great to be able to point here in the documentation, so that others can benefit from your solution too.

Hi, have you solved this problem?

@wuneng
Copy link

wuneng commented Mar 1, 2023

@XinYu-Andy @o0Helloworld0o That's all, good luck.

RUN yum install -y mesa-libGLU mesa-libGLU-devel
RUN yum install -y mesa*
RUN yum install -y freeglut*
RUN yum install -y *GLEW*
RUN yum -y install glew glew-devel glfw glfw-devel
RUN yum install -y ninja-build
RUN unzip ninja.zip && mv ninja /usr/bin
RUN unzip nvdiffrast.zip && mv /nvdiffrast/docker/10_nvidia.json /usr/share/glvnd/egl_vendor.d/
RUN rm ninja.zip && rm nvdiffrast.zip
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV LD_LIBRARY_PATH /usr/lib64:$LD_LIBRARY_PATH
ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility,graphics
ENV PYOPENGL_PLATFORM egl
RUN cd /nvdiffrast && pip install .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants