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
CUDA compile error #26
Comments
You must not use latest VS 2017 for CUDA 9.2, Therefore, I use VS 2015 when using CUDA for DlibDotNet. Nvidia does not already resolve this issue :( |
I made the following modification as stated in the page you pointed. I already had VS2015 C++ compiler installed. C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include\crt\host_config.h DlibDotNet.Native DLL compiled successfully. However I got the following error for DlibDotNet.Native.Dnn DLL:
Do I have to change anything in the cmake command line?
IMPORTANT NOTE: I get the same error with the latest master branch when I try to build without CUDA support, too! However I could compile an older version of your library with CUDA support without any problems. |
In the first your report, you specified,
I already wrote the wiki how to compile DlibDotNet.Native.Dnn. It indicates the a certain flag nnceremoniously.
-T host=x64 flags commands to compiler for using x64 tool chain. |
Sorry, I've missed that flag in the cmake command. Now I've compiled both native libraries with CUDA support using the latest master branch. I looked at the dependencies of the dlls and found 2 CUDA libraries: I copied the native libraries and the 2 CUDA libraries to the binary folder of the DnnFaceRecognition sample but I get an error at the following line:
Are there any missing CUDA dependencies? What am I missing? |
It is weird. I just tested DnnFaceRecognition for cuda 9.1 and it has no error. LossMetric.Deserialize is simple wrap method. If you will face same issue, I may have to install CUDA 9.2 and test it. |
I tested the DnnMmodFaceDetection sample. It gives an exception at the same place:
This is the contents of the bin directory of the project:
I'm using dlib 19.13 and CUDA 9.2. When I compile DlibDotNet.Native.Dnn.dll without CUDA support its size is 1.052 KB. When I compile DlibDotNet.Native.dll without CUDA support its size is 6.006 KB. Is this normal? Note: I'm working on a Dell Precision laptop and it has 2 display adapters: |
I compiled dlib examples with CUDA support and tried to run dnn_face_recognition_ex.exe application. I got the following error:
Can this be the reason for the error in your library? |
Ok, I finally solved it. While installing CUDA, I had unchecked the graphics driver installation option. I reinstalled CUDA and installed the driver this time. Now everything works fine and FAST with the latest master branch. Thanks for your time and support. 👍 Note: I still think there's a problem with the HUGE FILE SIZE of the DlibDotNet.Native.Dnn.dll file with CUDA support. It may be a good idea to check it. |
I downloaded the latest master branch and tried to generate build files with CUDA support.
Below you can find the output of the cmake command:
https://pastebin.com/ifjik7wX
Can you please tell me what the problem may be?
I can successfully generate build files without CUDA support.
The text was updated successfully, but these errors were encountered: