Determining how cuda was installed

is there any way to know how cuda was installed on a system - whether run file or package manager?

I think main question is CUDA actually used when you run your program, for example I’m trying to run face recognition library with dlib and CUDA, in python console I can run:

import dlib
dlib.DLIB_USE_CUDA

it should say “True” if it’s using cuda actually.

But it says False for me so it’s not using cuda :(

While installation dlib log said: DLIB WILL USE 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

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 ‘dlib_init_.py’ not found (or not a regular file)
reading manifest file ‘dlib.egg-info\SOURCES.txt’
reading manifest template ‘MANIFEST.in’
no previously-included directories found matching ‘tools\python\build*’
writing manifest file ‘dlib.egg-info\SOURCES.txt’
installing library code to build\bdist.win-amd64\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\lib.win-amd64-3.7 -DPYTHON_EXECUTABLE=D:\Documents\Python_project\venv\Scripts\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=D:
Downloads\ML_Training\dlib-19.19\build\lib.win-amd64-3.7 -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/temp.win-amd64-3.7/Release
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/dlib_generated_cuda_dlib.cu.obj
cuda_dlib.cu
cuda_dlib.cu
Building NVCC (Device) object dlib_build/CMakeFiles/dlib.dir/cuda/Release/dlib_generated_cusolver_dlibapi.cu.obj
cusolver_dlibapi.cu
cusolver_dlibapi.cu
Building Custom Rule D:/Downloads/ML_Training/dlib-19.19/dlib/CMakeLists.txt
dlib.vcxproj -> D:\Downloads\ML_Training\dlib-19.19\build\temp.win-amd64-3.7\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/temp.win-amd64-3.7/Release/Release/dlib.lib and object D:/Downloads/ML_Training/dlib-19.19/build/temp.win-amd64-3.7/Release/Release/dlib.exp
dlib_python.vcxproj -> D:\Downloads\ML_Training\dlib-19.19\build\lib.win-amd64-3.7\dlib.cp37-win_amd64.pyd
Building Custom Rule D:/Downloads/ML_Training/dlib-19.19/tools/python/CMakeLists.txt
creating build\bdist.win-amd64\egg
copying build\lib.win-amd64-3.7\dlib.cp37-win_amd64.pyd -> build\bdist.win-amd64\egg
creating stub loader for dlib.cp37-win_amd64.pyd
byte-compiling build\bdist.win-amd64\egg\dlib.py to dlib.cpython-37.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying dlib.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying dlib.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying dlib.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying dlib.egg-info\not-zip-safe -> build\bdist.win-amd64\egg\EGG-INFO
copying dlib.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
writing build\bdist.win-amd64\egg\EGG-INFO\native_libs.txt
creating ‘dist\dlib-19.19.99-py3.7-win-amd64.egg’ and adding ‘build\bdist.win-amd64\egg’ to it
removing ‘build\bdist.win-amd64\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