Skip to content

DLL load failed on Windows with CUDA 13.0 Toolkit #497

@Hniii98

Description

@Hniii98

Bug Description

On Windows 11 + CUDA 13.0 + Python 3.12, import pycuda.driver raises
ImportError: DLL load failed while importing _driver: The specified module could not be found.

Even though ...\CUDA\v13.0\bin\x64 is present in the system PATH.

Minimal Reproduction

  1. Install CUDA 13.0 Toolkit (default path)

  2. Verify system PATH contains ...\CUDA\v13.0\bin\x64

  3. Run the following Python code:

    import pycuda.driver as drv

    Error occurs every time.

Environment

OS Windows 11
Python 3.12
CUDA 13.0
PyCUDA 2025.1.2

Root Cause

CUDA 13.x relocates all 64-bit runtime DLLs from bin\ to bin\x64; this layout change applies to every 13.x release including 13.1.0/13.0.2/13.0.1/13.0.0 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions