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

VulkanMakie? #700

Closed
VarLad opened this issue Sep 9, 2020 · 22 comments
Closed

VulkanMakie? #700

VarLad opened this issue Sep 9, 2020 · 22 comments

Comments

@VarLad
Copy link
Contributor

VarLad commented Sep 9, 2020

Any chance if we'll get a VulkanMakie? Many users are facing trouble with OpenGL as backend... Installation not working and other issues. Also, Vulcan will give a better performance and is cross-platform too.

@SimonDanisch
Copy link
Member

Those installation errors are a very specific issue with Julia + some very specific linux + intel/amd drivers - nvidia seems to be without any issue.
I hope they'll get fixed - Before those got introduced, OpenGL support has been pretty stable.
Believe me, Vulkan will in no way make this easier, since it will likely bring many other new issues - and the llvm problem that is behind those intel/amd driver issues likely will also happen for Vulkan, since it builds upon the same tech stack for those vendors.

Regardless, a Vulkan backend is still planned, although with low priority.
I hope to switch soon to some abstractions, that will work across WebGL, OpenGL & Vulkan and at that point it should just be a matter of implementing the abstraction for Vulkan.

@VarLad
Copy link
Contributor Author

VarLad commented Sep 9, 2020

I am using Nvidia though...
Glad to know the Vulcan backend is in your list.
Its low priority so I'm guessing it'll take a lot of time...?

@SimonDanisch
Copy link
Member

Yeah likely... What problems did you have with nvidia?

@VarLad
Copy link
Contributor Author

VarLad commented Sep 9, 2020

The building of GLMakie failed because it couldn't find drivers in the dri folder. There're dozens of those issues! I did resolve the issue, but the second plot made my system go slow motion. It felt like it was not using my GPU at all. I closed and reopened julia and it stopped plotting due to some issue in libGL. I did post the issues but it was closed immediately marked as duplicate
There're dozens of complains over GLMakie, either directly or mentioned, and they're the exact same complain.
Also, when I ran ]test GLFW, it gave the same error as above, leading me to believe there's some problem with that package.

@VarLad
Copy link
Contributor Author

VarLad commented Sep 9, 2020

Makie is an awesome production level package and it's almost in pure Julia. But it must even run to allow the users to even complete the tutorial. Whats the status on GRMakie? Will it use the GPU and will it require opengl dependencies?

@mkborregaard
Copy link
Contributor

GRMakie does not use the GPU and does not require openGL. Check also CairoMakie.

@VarLad
Copy link
Contributor Author

VarLad commented Sep 10, 2020

Does CairoMakie make use of the GPU?

@mkborregaard
Copy link
Contributor

No, only GLMakie does that.

@VarLad
Copy link
Contributor Author

VarLad commented Sep 10, 2020

Thanks for the information
Cairo is really slow.
I hope the Vulkan backend comes along soon. I'll keep installing Makie and updating GLFW from time to time, hoping for the issue of GLMakie to get resolved in one of the updates!

@mkborregaard
Copy link
Contributor

You are still very vague about what the issues actually are. I have no problems with GlMakie myself.

@VarLad
Copy link
Contributor Author

VarLad commented Sep 10, 2020

#699

@VarLad
Copy link
Contributor Author

VarLad commented Sep 10, 2020

There are many solutions as many people got this exact same problem and opened issues.
None of the solutions worked for me!
The exact same error as #699 showed up when I ran ]test GLFW too
Which led me to think if we'll get another backend which can use the GPU. For cross-platform, Vulkan was the first thing which came to my mind

@mkborregaard
Copy link
Contributor

Ah OK thanks. And you upgraded your nvidia drivers?

@VarLad
Copy link
Contributor Author

VarLad commented Sep 10, 2020

All my drivers are already up to date!
Is there something you'd like me to type into the terminal and post the result here?
Fedora 32 64-bit NVIDIA GEFORCE MX130, intel i5, intel UHD

@SimonDanisch
Copy link
Member

Yeah, so that's not an NVIDIA problem as I pointed out - NVIDIA (almost) never made any problems as far as I'm informed...

failed to open iris

That's exactly the INTEL + Linux problem I'm talking about, and I'm 99% sure, that Vulkan will show exactly the same issue ;)

Did you try:
#630 (comment)

Btw, this is a new issue (last couple of months) coming from some Intel/AMD & Linux & Julia updates, that I can absolutely do nothing about, which is pretty annoying...

You should complain to Linux GPU support ;)

@VarLad
Copy link
Contributor Author

VarLad commented Sep 11, 2020

I solved it by (on Fedora/GNOME)

  1. Right-click on your Terminal/Editor/IDE and click on "Launch using Dedicated graphics card"
  2. (in your terminal) DRI_PRIME=1 Editor/IDE
  3. (in your terminal) DRI_PRIME=1 Terminal/julia IS A BAD IDEA
    If you want to, the above solution can be put to the Troubleshooting section.
    Anyway, thanks a lot for helping and listening @SimonDanisch and @mkborregaard! My issue is officially resolved!

@VarLad
Copy link
Contributor Author

VarLad commented Sep 11, 2020

Also, StatsMakie downgrades my Optim.jl and its dependencies heavily.
Should I open a new issue for it? It looks like a problem with tags, if so, it could be resolved quickly...
Screenshot from 2020-09-11 23-19-29

@VarLad VarLad closed this as completed Sep 11, 2020
@SimonDanisch
Copy link
Member

StatsMakie is deprecated in favor of AlgebraOfGraphics.jl!

@VarLad
Copy link
Contributor Author

VarLad commented Sep 11, 2020

Kindly update the docs then!

@VarLad
Copy link
Contributor Author

VarLad commented Sep 11, 2020

Also, AlgebraOfGraphics.jl is a part of Makie too?

@jkrumbiegel
Copy link
Member

No it is a separate package, as statsmakie was

@SimonDanisch
Copy link
Member

We updated the docs, I'll check if it's already deployed!

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

4 participants