-
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
external libraries #201
Comments
Have you set the option |
I try to make my own calculation applications and I see in Kompute a potential for my developments in complex numerical models (hydraulics and hydrology).But I am not familiar with cMake I don't use it. On the other hand I recently have a working 3D Digital Terrain model in Vulkan to which I want to add computational potential.
|
@grzavala the easiest way to address this as @unexploredtest suggests is to build with KOMPUTE_OPT_REPO_SUBMODULE_BUILD=1, this is a parameter that you have to add as part of your build configuration in visual studio |
You also need to make sure you clone the repo with the |
Best practice would be to change your visual studio parameters, but you can also change this on your file, specifically on this line: https://github.com/EthicalML/vulkan-kompute/blob/3aa2ca79c28aa4eb3a5101dffac3977314f439fd/CMakeLists.txt#L19 |
The cloning of the Kompute repository is complete on my computer, I checked the directories. I also did it several times.
But ... same error. |
You have to use the compile option -DKOMPUTE_OPT_OPT_REPO_SUBMODULE_BUILD=1, with -D at the beginning - you can also just change the 0 to 1 on the cmakelists.txt file. Could you try that? |
Resolved !!! Complete compilation. |
sorry, I misspelled above. It is: -DKOMPUTE_OPT_REPO_SUBMODULE_BUILD=1 |
Fantastic news - cmake can always be quite fiddly, but it does simplify complexity in the larger scale. Ok in this case I will close this issue. Please feel free to reopen or open a new one if you run into other issues. |
Good morning. The CMake project in Visual Studio 2019 Comunity loaded completely and did not throw errors with the addresses of the libraries with the indications provided. But for the next step, when I choose a program to run inside the structure (any *.cpp), I get errors in the #includes <kompute/Kompute.hpp>. (error) Cannot open the source file. How can I fix this? |
@grzavala are you able to run the tests? If so, you would just need to make sure your cmake file has a similar structure to that. Alternatively you can try running one of the examples like the logistic regression as they are semi-independent, as in they import the main project, and use the kompute.hpp header |
I cannot run the tests. I don't know how to do it. I would need an example of how to modify or adapt CMakeLists.txt |
@grzavala To enable tests, you have to enable the cmake option |
I cannot link to the project the fmt library+ias and those in the external directory.
The text was updated successfully, but these errors were encountered: