-
Notifications
You must be signed in to change notification settings - Fork 154
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
Examples segfault (Linux / mesa / amdgpu) #84
Comments
Thank you for the update @Kezii - just to make sure I understand your issue, you are saying that you have been able to confirm that it works with NVIDIA graphics cad but not with AMD? In the example looking at the logs it seems that it fails when calling the createPipeline - this coudl be debugged in various ways. Initially it would be good to understand if the erro may be coming due to the format of the shader. Could you try the example using the SPIR-V bytes instead of the string? |
More specifically, this would be reading from the shader header files for the shaderopmult.hpp converted using the Kompute shader-to-cpp-header script, which would be similar to how the android example provides the option to load the shader: |
Yes, I told a friend with my same OS and a nvidia card and it worked for him, not really sure about the conditions since I do not have control on his pc (though he used my same aur package)
I tried your code on the last comment and it worked! Thanks for the quick reply |
Awesome! Thank you for confirming @Kezii - I have noticed that only a few devices support provisioning of shaders in their raw string format. I do suspect this is less due to the graphics card itself, as normally the compilation of shaders from raw stirng into SPIR-V bytes would be done by a library like I will open an issue in the Vulkan forums to find more about this, and will track it via #85 Thank you very much for rerporting this tho, in regards to your points about the example, I will update the example to have the same macro guard so it actually loads the shader from the spir-v format by default, so it's more robust. |
Yeah I'm surprised that this worked, I was assuming that it was compiling the shaders under the hood (like rust's vulkano library) Indeed if I point the shader to the .comp file it segfaults, but if I compile the shader and put the path of the .v file it works perfectly Thanks for addressing this issue |
I'm still trying to run this library
I am not able to run any of the examples, they fail with SEGV
My gpu:
Gdb points here: https://github.com/EthicalML/vulkan-kompute/blob/7b9f84f0abf1156fd2806957012093b19e126e22/single_include/kompute/Kompute.hpp#L1845
Apparently with a nvidia gpu it works, with the same aur package I made before
Steps to reproduce:
log: (I may have configured the logging library wrong?)
The text was updated successfully, but these errors were encountered: