400Ping commented on PR #706: URL: https://github.com/apache/mahout/pull/706#issuecomment-3640194412
> Thanks @400Ping for the patch! > > I got errors in local test please fix it. > > > > ``` > > cargo build --release > > Compiling pyo3-build-config v0.27.1 > > Compiling qdp-kernels v0.1.0 (/home/rich-wsl/mahout/qdp/qdp-kernels) > > Compiling pyo3-macros-backend v0.27.1 > > Compiling pyo3-ffi v0.27.1 > > Compiling pyo3 v0.27.1 > > Compiling qdp-core v0.1.0 (/home/rich-wsl/mahout/qdp/qdp-core) > > error[E0596]: cannot borrow `buffer` as mutable, as it is not declared as mutable > > --> qdp-core/src/gpu/encodings/amplitude.rs:200:22 > > | > > 200 | *buffer.device_ptr_mut() as *mut f64, > > | ^^^^^^ cannot borrow as mutable > > | > > help: consider changing this to be mutable > > | > > 190 | let mut buffer = device.alloc_zeros::<f64>(num_samples) > > | +++ > > > > error[E0596]: cannot borrow `norm_buffer` as mutable, as it is not declared as mutable > > --> qdp-core/src/gpu/encodings/amplitude.rs:399:18 > > | > > 399 | *norm_buffer.device_ptr_mut() as *mut f64, > > | ^^^^^^^^^^^ cannot borrow as mutable > > | > > help: consider changing this to be mutable > > | > > 390 | let mut norm_buffer = device.alloc_zeros::<f64>(1) > > | +++ > > > > For more information about this error, try `rustc --explain E0596`. > > error: could not compile `qdp-core` (lib) due to 2 previous errors > > warning: build failed, waiting for other jobs to finish... > > ``` Noted. I have a sync not long after, will fix this afterwards. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
