Skip to content

Cannot compile under Windows with CUDA 13 and an RTX 5060. #3249

@the-pawn-2017

Description

@the-pawn-2017

MSVC is already installed; the PyTorch program works fine and CUDA is functional.
My project can running in CPU, but cannot using CUDA.
here is some log:

failed to run custom build command for `cudarc v0.16.6`

Caused by:
  process didn't exit successfully: `C:\pro\swinir-candle\target\debug\build\cudarc-86093bccd9836eba\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-changed=build.rs
  cargo:rerun-if-env-changed=CUDA_ROOT
  cargo:rerun-if-env-changed=CUDA_PATH
  cargo:rerun-if-env-changed=CUDA_TOOLKIT_ROOT_DIR
  cargo:rerun-if-env-changed=CUDARC_CUDA_VERSION

  --- stderr

  thread 'main' (17400) panicked at C:\Users\liu\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\cudarc-0.16.6\build.rs:128:14:
  Unsupported cuda toolkit version: `13.0`. Please raise a github issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions