-
Notifications
You must be signed in to change notification settings - Fork 501
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
the method par_iter
exists for struct ChunkByMut<'_, BinF32, {[email protected]:207:78}>
, but its trait bounds were not satisfied
#1184
Comments
I found
But the performance is worse than the sequential counterpart. It seems like it keeps threads busy but uses only a single thread. Parallel: average cpu time: 20.0, average wall time: 10.3 |
There's a direct parallel method for this: https://docs.rs/rayon/latest/rayon/slice/trait.ParallelSliceMut.html#method.par_chunk_by_mut |
It doesn't allow zip or enumerate. |
I modified the Parallel: average cpu time: 19.6, average wall time: 10.5 |
You may need to run a profiler, like |
I am trying to mutate a slice in parallel. The slice is chunked before parallelization:
But I get the following error.
Is there any workaround to make this work?
I am trying to add parallelism to the following section:
https://github.com/perpetual-ml/perpetual/blob/a5b1a69aa96999835cd909981f53eaa662884fad/src/histogram.rs#L264
The text was updated successfully, but these errors were encountered: