-
Notifications
You must be signed in to change notification settings - Fork 8k
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
GPU not using gpu on Windows 10 #3658
Comments
I'm having the same issue, torch can use cuda and everything but for some reason it darknet doesnt use it |
|
I didn't know what files you were talking about, so I created a git with all the files after compilation. https://github.com/lucaspojo/darknet-yolo-again EDIT : Console log : https://gist.github.com/lucaspojo/d207a2743bae3b59334f530c2e5f1f82 Thx ! |
our .gitignore is made so no build artifacts can be pushed to a repository. From a quick glance there's nothing more in your repo than in a clean repo. What I mean is just copy-paste the messages that appear on console after you launch build.ps1, and also the CMakeCache.txt file that is created inside the build_win_release folder. Again, please launch build from a clean repository folder and do not modify any code |
Console log : https://gist.github.com/lucaspojo/d207a2743bae3b59334f530c2e5f1f82 I did start the build again with a new repo. I started from scratch. |
Your compiler version requires at least CUDA 10.1, if I remember exactly. |
these lines are key to understand. Visual Studio reports back that there's no CUDA integration installed. Since you have cuda installed ( |
I changed the version of cuda to 10.1. I have a new error. (compilation of zero at each attempt).
I tried to upgrade from version 3.0 to 4.1 of openCV but the error remains the same. |
Idk how build opencv. After several attempts by following instructions find on the opencv website and other forum. I can't do it. I think I'm going to have to go back to linux! Too bad |
nope, don't worry |
I made another attempt with Cuda 10.1, but the GPU still hasn't used. CMakeCache : https://gist.github.com/lucaspojo/d5068fd6552c13331f9f9ce82edfb94b I have the same :
|
Is the nvidia installer giving you any problem? Something bad must be going on there. The message indicates that for VS there is no cuda installed! |
Nvidia Cuda does not appear in the list when I want to create a new project. Nvcc --version return :
did I forget something? |
I found a solution by accident. I installed Cuda 8, restarted my PC, reinstalled cuda 10.1, launched GeforceExperience to update the graphics driver, restarted the compilation, and everything works! I hope it will help someone else. |
Ok good. Glad that you were able to fix your CUDA setup :) |
In case you find this problem again, we now have also another workaround that might help you
This procedure does not need VS at all, just the compiler (Build Tools are enough). It might work also in your previous "broken" CUDA status |
My environment: Win10 + cuda 10.1 + cuddn + Visual Studio 2019. I think I found the reason, this is problem between the cuda and Visual Studio. Because the cuda should be installed after the Visual Studio. When cuda is installed there will be a item for finding whether you have installed Visual Studio before, if you did then cuda adapting the environment, if you didn't you can ignore. Like #2971 (comment) You can reinstall the cuda to solve the problem. There is a way to test if cuda is satisfied to Visual Studio:
you will find a item named The cmake will like this: |
Hi !
I compiled darknet with vcpkg and build.ps1.
I have modified the Makefile like this before:
Unfortunately my CPU is used instead of the GPU.
I have the impression that the modification of the Makefile didn't change anything. Do you have a solution? Have I forgotten something?
Thx !
The text was updated successfully, but these errors were encountered: