From dcb4a9291e2c8b3d5ffbc567c7a2a4dca4e34483 Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Fri, 14 Jul 2023 17:08:05 +0200 Subject: [PATCH] Expliciting how to enable cuda. --- README.md | 2 ++ candle-core/src/dummy_cuda_backend.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d21907bd..108dac6e 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,8 @@ cargo run --example llama --release cargo run --example falcon --release ``` +In order to use **CUDA** add `--features cuda` to the example command line. + ## Features diff --git a/candle-core/src/dummy_cuda_backend.rs b/candle-core/src/dummy_cuda_backend.rs index a81dda57..a9c11bf6 100644 --- a/candle-core/src/dummy_cuda_backend.rs +++ b/candle-core/src/dummy_cuda_backend.rs @@ -9,7 +9,7 @@ pub struct CudaStorage; macro_rules! fail { () => { - unimplemented!("cuda support has not been enabled") + unimplemented!("cuda support has not been enabled, add `cuda` feature to enable.") }; }