Dlib: CUDA not being used

Created on 9 Oct 2017  路  3Comments  路  Source: davisking/dlib

Hi @davisking I've compiled dlib, apparently successfully, in windows using MSVC. According to the output messages of cmake the CUDA is being detected and build too, but when I run the code in visual studio of dnn face detection it's taking almost 6s (716x556 resized bald_guys.jpg) and my nvidia gtx 1080 seems to be unused during the execution time.!
I'm compiling the project like specified in "Compiling on Windows Using Visual Studio 2015 or Newer" section.
Currently I'm not linking any BLAS/LAPACK how could it impact the process? Since I see there is something really wrong from my side.

thanks in advance ...

Most helpful comment

If you are using CUDA then you don't need BLAS.

All 3 comments

What does cmake say? Paste the output here.

Thanks for your precious help Davis, I think I fixed the things now. I was trying to build the app in VS, now i'm using the cmake script provided for building the examples (initially i just built the one that makes the "dlib.lib"), then i could see the correct settings for the commands to compile (i missed the DLIB_USE_CUDA macro for example...). Now i can achieve 60ms in a full hd image. But for sure I'm not using blas, would it affect even more the efeciency of the dnn? Can it really make some diference?

If you are using CUDA then you don't need BLAS.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

srikanthreddybethi picture srikanthreddybethi  路  4Comments

AeroClassics picture AeroClassics  路  4Comments

great-thoughts picture great-thoughts  路  5Comments

kalravibhor picture kalravibhor  路  5Comments

yourmailhacked picture yourmailhacked  路  3Comments