-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Can't import taichi (from 0.5.15) using Ubuntu 20.04 in VM #958
Comments
Thank for the patient! This issue is because of the recent added OpenGL backend in v0.5.15. |
While Taichi requires 4.3 to work. taichi/taichi/backends/opengl/opengl_api.cpp Lines 517 to 519 in e0ef399
But the problem comes:
Possible temporary solution: remove L455-L456 from if ti_core.with_opengl():
supported_archs.append('opengl') A related issue: glfw/glfw#766 |
Thanks for the reply. I know it probably requires the compute shader for OpenGL to really shine. However, having OpenGL 4.3 is almost impossible currently for most VMs at my best knowledge, so I'd like to fall back on x64 for now. |
Thank for the information, I found another if ti_core.with_opengl():
archs.append(opengl)
Note that def with_opengl():
try:
return initialize_opengl()
except SegmentFault:
return False taichi/taichi/core/logging.cpp Lines 157 to 162 in e0ef399
https://docs.python.org/3/library/faulthandler.html#module-faulthandler This also applies to CUDA backend, which is commonly reported to be crash on start up (@yuanming-hu), what do you think? Btw, you can run |
BTW, is it possible to detect OpenGL version inside |
Thank for the suggestion, I hope so, but we can't call
|
A probably easier solution: can we simply have a |
Yes, we can, if you mean, users without environment manually add |
Oh, making use of environment variables does sound like a good solution for *nix users! Let's use something like We should also consider how to make taichi work out-of-box without setting anything like an envvar. On the other hand, we don't want to set |
Thanks for all the timely replies. You guys are amazing! |
You're welcome, thank you for pointing out the bug and valuable informations! @yuanming-hu Can we release #962 with v0.6.4 tonight? So that @TroyZhai could try out |
Sure - I have meetings in the morning but I'll release v0.6.4 in a couple of hours. |
@TroyZhai We just now released v0.6.4. When you get a chance, could you upgrade and run with No rush on this at all. Thank you! |
Great news! I can confirm that it works as expected on my VMs when I set "export TI_ENABLE_OPENGL=0". Thanks all! |
Awesome! I'm closing this thanks to the hard work by @archibate. |
Cool! But how about to add this usage to doc? Potentially a chapter called |
Sounds good! Should we mode the following items in the README file there as well?
A chapter named These text in
|
Taichi fail to load in Ubuntu 20.04 using VM since 0.5.15, tried with both VMware Player and VirtualBox. Version 0.5.14 and before are fine.
The text was updated successfully, but these errors were encountered: