-
Notifications
You must be signed in to change notification settings - Fork 158
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
Getting a undefined reference error while creating a Kompute Manager #100
Comments
Thank you for trying out Vulkan Kompute @aliPMPAINT - no need to provide further information at this point as the issue is basically that your current build process doesn't link the kompute shared/static library (which is hence why you get an undefined reference). You have various ways of doing this - the easiest way is by using Let me know if you have any further questions - happy to provide pointers or further links. |
@axsaucedo Thank you for your response. Sorry for bothering again. I did follow the guide provided on colab but now, I'm facing another issue. after the compilation of
I'm a total beginner, what am I doing wrong?
|
@aliPMPAINT is this error happening in the Colab when running the cells in order? Or is this after doing further additions/changes in the example? I can see that from the warning message this may be run in a radeon card, so I assume this is running on your local device. My initial guess woudl be that you may be attempting to read a shader file as a raw string (as opposed to SPIRV bytes) - if this is the case, I suggest for you to convert into SPIRV bytes and read that instead, as it may just be that the underlying libraries required to read from raw strings may be required. Alternatively let me know further details as well as the code you're running to have further insights on the context. |
@axsaucedo Yeah, I ran it on my local machine and followed the guide. The code I used is the code provided in Colab. |
Ok I see @aliPMPAINT, I believe if you just change this part |
@axsaucedo I do get the same thing. I tried running a (simpler code)[https://github.com/EthicalML/vulkan-kompute#your-first-kompute-simple-version] instead, and got more explicit error outputs while compiling:
Also, I should point out that the python package worked without any flaw. |
Ok I need to update the example as the OpMult class is no longer a template since Ok one more ask to try on the same code as before (the Colab example). Could you remove the whole parameter For complenetess (and context), as you suggest given that the python works it's indeed that your computer doesn't have the |
As a sidenote I've updated readme docs example via #101 |
@axsaucedo Oh yeah, now it works:
Thanks you so much and sorry for asking silly questions |
Great! No worries, at least we also found that the readme needed updating. Yes it seems we can now close the issue :) let me know if any further issues arise. |
Sorry if this is a silly problem. I'm just a beginner in c++ and just learned about vulkan kompute.
So, I'm using 'Kompute.hpp' release version v0.5.1, have installed (vulkan-headers)[https://archlinux.org/packages/extra/any/vulkan-headers/] and using g++ compiler (version 10.2.0)
When I try to create a Kompute Manager with the following code:
I get this error:
Are there any other information or logs I should share?
The text was updated successfully, but these errors were encountered: