Closed
Description
I think I found a bug.
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.