Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.3.2 #891 build failure on Windows 11 #896

Open
misureaudio opened this issue Oct 29, 2024 · 6 comments
Open

0.3.2 #891 build failure on Windows 11 #896

misureaudio opened this issue Oct 29, 2024 · 6 comments
Labels
bug Something isn't working build Issues relating to building mistral.rs

Comments

@misureaudio
Copy link

Minimum reproducible example

cargo build --release --features cuda

Error

Compiling windows-core v0.52.0
error[E0063]: missing field seed_value in initializer of cuda_backend::device::CudaDevice
--> C:\Users\MATTIA.cargo\git\checkouts\candle-c6a149c3b35a488f\629ec72\candle-core\src\cuda_backend\device.rs:203:12
|
203 | Ok(Self {
| ^^^^ missing seed_value

Compiling csv-core v0.1.11
Compiling base64 v0.13.1
Compiling arrayvec v0.7.6
Compiling allocator-api2 v0.2.18
Compiling indenter v0.3.3
Compiling overload v0.1.1
Compiling macro_rules_attribute-proc_macro v0.2.0
For more information about this error, try rustc --explain E0063.
error: could not compile candle-core (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

Other information

Windows 11

C:\Users\MATTIA>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Wed_Aug_14_10:26:51_Pacific_Daylight_Time_2024
Cuda compilation tools, release 12.6, V12.6.68
Build cuda_12.6.r12.6/compiler.34714021_0

C:\Users\MATTIA>nvidia-smi
Tue Oct 29 09:24:23 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.94 Driver Version: 560.94 CUDA Version: 12.6 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Driver-Model | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+=============|
| 0 NVIDIA RTX A2000 WDDM | 00000000:21:00.0 On | 0 |
| 30% 32C P8 7W / 70W | 391MiB / 5754MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+

Latest commit or version

0.3.2 #891

@misureaudio misureaudio added bug Something isn't working build Issues relating to building mistral.rs labels Oct 29, 2024
@misureaudio
Copy link
Author

Possible remedy:

Correction, proposed:

impl CudaDevice {
pub fn new_with_stream(ordinal: usize) -> Result {
let device = cudarc::driver::CudaDevice::new_with_stream(ordinal).w()?;
let blas = cudarc::cublas::CudaBlas::new(device.clone()).w()?;
let curand = cudarc::curand::CudaRng::new(299792458, device.clone()).w()?;
Ok(Self {
id: DeviceId::new(),
device,
blas: Arc::new(blas),
curand: Arc::new(Mutex::new(CudaRng(curand))),
-----> seed_value: Arc::new(RwLock::new(299792458)),
})
}
}

It builds, after copying the absent seed_value from the following rust code, Ok(Self...

@misureaudio
Copy link
Author

Please verify if the proposed correction is appropriate, not limited to the fact that it allows to complete the build process.

Thank You!

@EricLBuehler
Copy link
Owner

@misureaudio this should be fixed now, I just pushed a fix. Can you please confirm?

@misureaudio
Copy link
Author

misureaudio commented Oct 29, 2024

@misureaudio this should be fixed now, I just pushed a fix. Can you please confirm?
@EricLBuehler
Confirmed.

Build & install OK.

Thank You!

@wingrunr21
Copy link

@EricLBuehler this also caused the v0.3.2 docker cuda build to fail.

@EricLBuehler
Copy link
Owner

@wingrunr21 thanks. Will be taking a look to fix this in the upcoming v0.3.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build Issues relating to building mistral.rs
Projects
None yet
Development

No branches or pull requests

3 participants