Skip to content

[Bug]: what cuda version dlib supports so far #2832

Open

Description

@flydragon2018

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

Linux (x86-64)

dlib version

latest

Python version

No response

Compiler

gcc

Expected Behavior

built from source and installation

Current Behavior

dlib/dlib/cuda/cusolver_dlibapi.cu:10:10: fatal error: cusolverDn.h: No such file or directory
10 | #include <cusolverDn.h>

Steps to Reproduce

cuda 11/cuda 12

Anything else?

none

Activity

  1. freecraver commented on Nov 14, 2023

    @freecraver

    Faintly related - Stumbled upon this when building dlib with base image pytorch/pytorch:1.13.1-cuda11.6-cudnn8-devel. Workaround was: ENV CPATH=/usr/local/cuda/include:$CPATH. (Based on deepspeedai/DeepSpeed#2684 (comment))

  2. lxt3 commented on Nov 10, 2025

    @lxt3

    I just installed it on WSL2 for CUDA 13.0 and cudnn 9.13.0

  3. alexandreofbh commented on Nov 10, 2025

    @alexandreofbh

    DLIB v20.0, on Ubuntu 24.04
    I am using the 570 driver, cuda 12.8.0 and cudnn-linux-x86_64-9.13.1.26 and it worked perfectly.
    Cuda 13 on drive 580 did not work.

  4. gregory112 commented on Jan 11, 2026

    @gregory112

    Also tried building python-dlib with CUDA 13 and driver 590, mine seems to fail to compile, with nvcc fatal : Unsupported gpu architecture 'sm_50'. Setting -DCMAKE_CUDA_ARCHITECTURES=86 does not work though, So I downgraded to CUDA 12.9. This builds, but with Enabling CUDA support for dlib. DLIB WILL USE CUDA, compute capabilities: 50.

  5. davisking commented on Jan 11, 2026

    @davisking
    Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions