Skip to content

build error on compiling with cuda features #29

@venusarathy

Description

@venusarathy

`(base)  venu  ~/cake git-[ main]-  cargo build --release --features cuda

Compiling cudarc v0.11.8
Compiling candle-kernels v0.6.0
error: failed to run custom build command for cudarc v0.11.8

Caused by:
process didn't exit successfully: /home/venu/cake/target/release/build/cudarc-598151fba6f81340/build-script-build (exit status: 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

--- stderr
thread 'main' panicked at /home/venu/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cudarc-0.11.8/build.rs:82:14:
Unsupported cuda toolkit version: 12.6. Please raise a github issue.
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...`

I am new to this cargo build in rust, please help me out compiling this code with cuda features.

Some useful information about my system:

rustc --version
rustc 1.81.0 (eeb90cda1 2024-09-04)
cargo --version
cargo 1.81.0 (2dbb1af80 2024-08-20)
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Wed_Aug_14_10:10:22_PDT_2024
Cuda compilation tools, release 12.6, V12.6.68
Build cuda_12.6.r12.6/compiler.34714021_0
(base)  venu  ~/cake git-[ main]-  nvidia-smi --query-gpu=compute_cap --format=csv,noheader
8.6

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions