davisking / dlib

A toolkit for making real world machine learning and data analysis applications in C++
http://dlib.net
Boost Software License 1.0
13.57k stars 3.38k forks source link

[Bug]: Segmentation fault (core dumped) on cuda 12.4 & cudnn 9.3.0 #2995

Closed mv2050arshad closed 2 months ago

mv2050arshad commented 3 months ago

What Operating System(s) are you seeing this problem on?

Linux (x86-64) 22.04

dlib version

19.24

Compiler

GCC

Expected Behavior

No response

Current Behavior

I build dlib (cuda-active) and i tried to build my application using dlib Face recognition(). Everything build successfully but i got run-time error : Segmentation fault (core dumped)

It was detected faces and gpu , but i think the problem was when it try to load model in gpu for faceDescriptor extraction. std::vector<matrix<float,0,1>> faceDescriptor = net(facesfiltered);

cout<< dlib::cuda::get_num_devices() ; // print 1
dlib::cuda::set_device(0); // without error run this also

Whats wrong? what is the last version of cuda/cudnn which supported by dlib?

I installed : Cuda 12.4 Cudnn 9.3.0 Gpu 4070

Steps to Reproduce

Install cuda , cudnn and build dlib with cuda active. Run-time error when run my code in c++ on faceDescriptor extraction.

Anything else?

No response