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

Platform::WindowlessEglApplication::tryCreateContext(): unable to find CUDA device 0 among 2 EGL devices in total #2424

Open
28dvd28 opened this issue Jul 8, 2024 · 2 comments
Labels
support User support requested (e.g. specific issue or API usage question)

Comments

@28dvd28
Copy link

28dvd28 commented Jul 8, 2024

Hello, I'm trying to use habitat-sim for my project, but when i'm running it i'm getting the error:
Platform::WindowlessEglApplication::tryCreateContext(): unable to find CUDA device 0 among 2 EGL devices in total
I've looked in some other already opened issue, but I can't find a solution, maybe also because i'm working on a WSL and not directly on linux machine.

The fact that i am using the WSL can it be the reason of why I'm getting the error? If yes can you help me solving this?

@aclegg3
Copy link
Contributor

aclegg3 commented Jul 10, 2024

Hey @28dvd28

I assume this can work, but it sounds like you'll need to do some work to expose and setup the GPU correctly.

I saw this: https://canonical-ubuntu-wsl.readthedocs-hosted.com/en/latest/tutorials/gpu-cuda/

Also take a look at our troubleshooting guide for graphics issues.

Once you've dug in a bit and can provide some more info maybe myself or @0mdc can help with any questions.

@aclegg3 aclegg3 added the support User support requested (e.g. specific issue or API usage question) label Jul 10, 2024
@28dvd28
Copy link
Author

28dvd28 commented Jul 11, 2024

Hello,

many thanks for the resources that you gave me.

I've looked at both the link that you have sent to me. From the first one I have a question. I need to download the nvidia driver for windows. But i've already done it for gaming, so i downloaded the game ready driver (I think, it has been i while). Do I need to download the Studio Driver?

I've looked to the second link and i've followed the instruction, but i don't know if i have the right output, so:

  • running eglinfo I get
    image
    Above is a lot of more output, similar to the last lines and then I get Device platofrom without nothing, is it a problem?
    -apt list --installed | grep libglvnd get me
    image
    is it ok?
    -I had to create the file 10_nvidia.json in /usr/share/glvnd/egl_vendor.d/, the path that i have to put in "library_path" must be like "../../../../lib/x86_64-linux-gnu/libEGL.so.1" or like "lib/x86_64-linux-gnu/libEGL.so.1"?

In any case i am still having the issue also testing it in the habitat-lab reposotory with the command python examples/example.py. Hope you will be able to help me.

Kind regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support User support requested (e.g. specific issue or API usage question)
Projects
None yet
Development

No branches or pull requests

2 participants