Adding Paralight to the Rust benchmarks?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- rust
- Lĩnh vực
- hpc, performance
Hướng nghiên cứu
Bắt đầu bằng cách xác định các entry point benchmark Rust hiện có của repository và comparison harness; issue không nêu tên các tệp cục bộ. Sử dụng cấu hình thread pool Paralight được cung cấp và tham khảo ví dụ benches/criterion.rs của Paralight, sau đó xác minh rằng các kết quả mới xuất hiện cùng với các benchmark sum hiện có.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Thanks for sharing your benchmarks and your thoughts on your blog.
Another framework you may want to consider in Rust is Paralight, which offers the best of both worlds: a functional API similar to Rayon together with a choice of strategies on the lightweight vs. work-stealing dimension (Rayon always operates in work-stealing mode, which may have its overhead depending on the workloads). See also this blog post that explains the inner workings of Rayon and the simpler parallelism strategy that ultimately became Paralight.
With Paralight, the following thread pool parameters should be low overhead, and close to the "manual" partitioning of the array items you've described in your post:
use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder};
use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt};
let mut thread_pool = ThreadPoolBuilder {
num_threads: ThreadCount::AvailableParallelism, // Or a manual fixed number if you prefer
range_strategy: RangeStrategy::Fixed, // Fixed, low-overhead partitioning of the input array among worker threads
cpu_pinning: CpuPinningPolicy::No, // I don't think it matters much for your example
}
.build();
// Functional style sum, nothing more.
let sum = data.par_iter().with_thread_pool(&mut thread_pool).sum::<f32>();
I'm curious how it fares in your benchmarks :)
Incidentally, Paralight already has sum reduction benchmarks: https://github.com/gendx/paralight/blob/main/benches/criterion.rs#L150.
Note: Paralight is still in alpha version because some more advanced APIs aren't fleshed out yet, but reducing values from an array is available and fairly straightforward to use.
- Ngôn ngữ chính
- C++
- Star
- 119
- Fork
- 10
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ashvardanian/ParallelReductionsBenchmark
-
Add Python benchmarks for the new CUDA DSL/JITCó thể làm lại được @AnshSinghSonkhia đã nhận 464 ngày trước và không có pull request nào đang mở. Đang mởgood first issue help wanted
ashvardanian/ParallelReductionsBenchmark#9 · 2 bình luận · 1 người được giao ·
-
POSIX thread-pool for NUMAĐang mởenhancement good first issue
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
ashvardanian/ParallelReductionsBenchmark#7 · 1 reaction ·
-
good first issue
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 18/100
ashvardanian/ParallelReductionsBenchmark#2 · 5 bình luận · 1 reaction ·
-
Add support for partial buildsĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
ashvardanian/ParallelReductionsBenchmark#1 · 1 bình luận · 1 reaction ·
Tất cả issue của ashvardanian/ParallelReductionsBenchmark
Issue tương tự
-
.NET ep:WebGPU platform:web
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
microsoft/onnxruntime#33755 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
grumpycoders/pcsx-redux#2530 ·
-
A-tools P-medium S-ready-to-start studio task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Status: Needs confirmation Status: Needs triage Type: Code Quality
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Image.resolveAssetSource's TypeScript declaration drops the null it returns for an unknown assetĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
react/react-native#59648 ·
Maintainer thường phản hồi trong vòng 2 ngày