huggingface / huggingface/candle

nvcc cannot target gpu arch 89.

Open
#720 3 comments 4 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
21k
Forks
1.8k
Avg merge
16h 42m
Merged PRs (30d)
25

Description

Following the [installation guide](https://huggingface.github.io/candle/guide/installation.html), I added candle via the following command:

```cargo add --git https://github.com/huggingface/candle.git candle-core --features "cuda"```

When compiling (no code yet) I get the following error:

```
error: failed to run custom build command for `candle-kernels v0.2.1 (https://github.com/huggingface/candle.git#84d003ff)`

Caused by:
process didn't exit successfully: `D:\dev\utils\target\release\build\candle-kernels-35c866481eb35d68\build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=build.rs
cargo:rustc-env=CUDA_INCLUDE_DIR=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include
cargo:rerun-if-changed=src/

--- stderr
thread 'main' panicked at 'nvcc cannot target gpu arch 89. Available nvcc targets are [35, 37, 50, 52, 53, 60, 61, 62, 70, 72, 75, 80, 86, 87].', C:\Users\jremb\.cargo\git\checkouts\candle-0c2b4fa9e5801351\84d003f\candle-kernels\build.rs:145:17
```
Cuda is correctly installed. Here is the output from running the command `nvcc --version`:
```
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Tue_May__3_19:00:59_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.7, V11.7.64
Build cuda_11.7.r11.7/compiler.31294372_0
```
And the output from `nvidia-smi --query-gpu=compute_cap --format=csv`
```
compute_cap
8.9
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.