It says: DLIB WILL USE CUDA but it's not

While installation dlib log said: DLIB WILL USE CUDA, but it’s not.
Checking that with commands:

import dlib

it should say “True” if it’s using cuda but it says False for me so it’s not using cuda :(

Any way I can check/correct something?
I was following official CuDNN installation for Windows 10.

On both Windows 10 laptops it’s the same, first one with GTX 1050, second one with MX150.

  • installed latest drivers
  • installed CUDA 10.2
  • copied cuDNN into CUDA 10.2 folders as in instruction
  • installed dlib 19.19

I did not make step 5. Include cudnn.lib in your Visual Studio project. I can’t do that, my “Property Pages” in VS menu is not active, I haven’t opened project in VS. Why I even want to use VS if I’m running different editor like PyCharm or Sublime… is it necessary to do something in Visual Studio to make it work?

Full log is here:

running install
running bdist_egg
running egg_info
writing dlib.egg-info\PKG-INFO
writing dependency_links to dlib.egg-info\dependency_links.txt
writing top-level names to dlib.egg-info\top_level.txt
package init file ‘’ not found (or not a regular file)
reading manifest file ‘dlib.egg-info\SOURCES.txt’
reading manifest template ‘’
no previously-included directories found matching ‘tools\python\build*’
writing manifest file ‘dlib.egg-info\SOURCES.txt’
installing library code to build\\egg
running install_lib
running build_py
running build_ext
Building extension for Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)]
Invoking CMake setup: ‘cmake D:\Downloads\ML_Training\dlib-19.19\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\Downloads\ML_Training\dlib-19.19\build\ -DPYTHON_EXECUTABLE=D:\Documents\Python_project\venv\Scripts\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=D:
Downloads\ML_Training\dlib-19.19\build\ -A x64’
– pybind11 v2.2.2
– Using CMake version: 3.16.3
– Compiling dlib version: 19.19.99
– SSE4 instructions can be executed by the host processor.
– AVX instructions can be executed by the host processor.
– Enabling AVX instructions
– Looking for cuDNN install…
– Found cuDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2/lib/x64/cudnn.lib
– Enabling CUDA support for dlib. DLIB WILL USE CUDA
– C++11 activated.
– Configuring done
– Generating done
– Build files have been written to: D:/Downloads/ML_Training/dlib-19.19/build/
Invoking CMake build: ‘cmake --build . --config Release – /m’
Microsoft ® Build Engine version 16.4.0+e901037fe for .NET Framework
Copyright © Microsoft Corporation. All rights reserved.

Checking Build System
Building NVCC (Device) object dlib_build/CMakeFiles/dlib.dir/cuda/Release/
Building NVCC (Device) object dlib_build/CMakeFiles/dlib.dir/cuda/Release/
Building Custom Rule D:/Downloads/ML_Training/dlib-19.19/dlib/CMakeLists.txt
dlib.vcxproj -> D:\Downloads\ML_Training\dlib-19.19\build\\Release\dlib_build\Release\dlib19.19.99_release_64bit_msvc1924.lib
Building Custom Rule D:/Downloads/ML_Training/dlib-19.19/tools/python/CMakeLists.txt
Creating library D:/Downloads/ML_Training/dlib-19.19/build/ and object D:/Downloads/ML_Training/dlib-19.19/build/
dlib_python.vcxproj -> D:\Downloads\ML_Training\dlib-19.19\build\\dlib.cp37-win_amd64.pyd
Building Custom Rule D:/Downloads/ML_Training/dlib-19.19/tools/python/CMakeLists.txt
creating build\\egg
copying build\\dlib.cp37-win_amd64.pyd -> build\\egg
creating stub loader for dlib.cp37-win_amd64.pyd
byte-compiling build\\egg\ to dlib.cpython-37.pyc
creating build\\egg\EGG-INFO
copying dlib.egg-info\PKG-INFO -> build\\egg\EGG-INFO
copying dlib.egg-info\SOURCES.txt -> build\\egg\EGG-INFO
copying dlib.egg-info\dependency_links.txt -> build\\egg\EGG-INFO
copying dlib.egg-info\not-zip-safe -> build\\egg\EGG-INFO
copying dlib.egg-info\top_level.txt -> build\\egg\EGG-INFO
writing build\\egg\EGG-INFO\native_libs.txt
creating ‘dist\dlib-19.19.99-py3.7-win-amd64.egg’ and adding ‘build\\egg’ to it
removing ‘build\\egg’ (and everything under it)
Processing dlib-19.19.99-py3.7-win-amd64.egg
removing ‘d:\documents\python_project\venv\lib\site-packages\dlib-19.19.99-py3.7-win-amd64.egg’ (and everything under it)
creating d:\documents\python_project\venv\lib\site-packages\dlib-19.19.99-py3.7-win-amd64.egg
Extracting dlib-19.19.99-py3.7-win-amd64.egg to d:\documents\python_project\venv\lib\site-packages
dlib 19.19.99 is already the active version in easy-install.pth

Installed d:\documents\python_project\venv\lib\site-packages\dlib-19.19.99-py3.7-win-amd64.egg
Processing dependencies for dlib==19.19.99
Finished processing dependencies for dlib==19.19.99