You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Crash with par_apply_collect, debug, fortran order #899
use ndarray::{Array3, ShapeBuilder, Zip};
fn main() {
let data = Array3::<f32>::from_elem((5, 5, 5).f(), 1.0);
println!("{}", Zip::from(&data).par_apply_collect(|d| d));
}
It works flawlessly in --release, in 'c' order and with any size > 44. It crashes in 'f' order, debug and any array size from 1..45. The size part is really bizarre!
thread 'thread 'thread '<unnamed><unnamed>thread '<unnamed>thread '' panicked at '<unnamed>thread '' panicked at '' panicked at '<unnamed>assertion failed: `(left == right)`
left: `true`,
right: `false`'
... lot of scrambled text ...
Tested on Windows, WSL and Ubuntu. Latest version of ndarray and Rust.
Activity
bluss commentedon Jan 26, 2021
Yes, the bug is in the debug assertion here so it is indeed doing the right thing in release mode.