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

Related GL issues #4

Open
zichunxx opened this issue May 12, 2022 · 2 comments
Open

Related GL issues #4

zichunxx opened this issue May 12, 2022 · 2 comments

Comments

@zichunxx
Copy link

zichunxx commented May 12, 2022

Hi! It seems that there is no #include <GL/gl.h> and #include <GL/glext.h> in the env/lib/python3.7/site-packages/mujoco_py/gl/eglshim.c.

My mujoco_py version is 2.0.2.5 and the first 9 lines in eglshim.c are:

#define EGL_EGLEXT_PROTOTYPES
#include "egl.h"
#include "eglext.h"
#include <GL/glew.h>

#include "mujoco.h"
#include "mjrender.h"

#include "glshim.h"

Looking forward to your reply! Thx!

@junjungoal
Copy link
Collaborator

@QUIlToT
Hi, depending on the version of mujoco_py, it might be different. Could you please show me the error message happened during the compilation of mujoco-py?

@zichunxx
Copy link
Author

zichunxx commented Jun 1, 2022

@QUIlToT Hi, depending on the version of mujoco_py, it might be different. Could you please show me the error message happened during the compilation of mujoco-py?

I installed mujoco_py according to the requirements.txt and solve the error by following the issues of mujoco_py.

However, I still have some questions and hope to get your answers.

When the following code is executed, I can find Found 3 GPUs for rendering. Using device 0 in the Pycharm console window.

image = sim.render(width=300, height=300, camera_name = 'cam0', depth=False, device_id=0)

However, when I use pytorch to detect the number and name of GPU, the related codes and displays are shown below

print('Number of gpu: ', torch.cuda.device_count())
print('its name: ', torch.cuda.get_device_name(0))

Number of gpu: 1
its nameNVIDIA GeForce RTX 3070 Ti

Why the numbers of GPUs detected by the two methods are different?

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

2 participants