Mutation Support
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- julia
- Lĩnh vực
- distributed-systems
Hướng nghiên cứu
Bắt đầu với entry point hiện có spawn_datadeps và công việc được mô tả trong #454, sau đó xem xét frontend, scheduler, quản lý cache và các không gian bộ nhớ liên kết với processor sẽ cần thay đổi như thế nào. Công việc được xem là hoàn tất khi có một thiết kế đã được thống nhất, bao quát quyền sở hữu mutation, đồng bộ hóa, sao chép và versioning, các đối số không phải là Chunk, và đặc tả dependency.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Dagger has previously been a purely-functional model, expecting that new values are calculated by applying a function to a set of existing values, without allowing for arguments to be mutated or changed in any way. This model is convenient from an optimization perspective (as we can do aggressive caching and duplication of data, memoization of results, etc.), but it's also quite limiting for users operating in an imperative language like Julia.
I've long desired to find a way to relax this model, and in the course of working on #454, I've found that the simple In/Out model of OpenMP's data dependency system (that spawn_datadeps implements) is quite powerful and allows for a very convenient programming interface, while utilizing a variety of powerful performance optimizations. It also seems to leave room for more fine-grained synchronization and mutation systems going forward.
Of course, spawn_datadeps is rather limiting if we want to optimize over a larger region of code, including nested datadeps regions, which aren't trivial to support with the current implementation. Therefore, I'd like to consider what would be required to move support for the same programming model and optimizations directly into Dagger, to see what that would look like.
Here are the basic set of high-level changes that we'll need to support this model:
In/Outunwrapping and propagation in the frontend- Data ownership tracking (exclusive (write) vs. shared (read)) in the scheduler
- Careful cache management in the face of mutating values (i.e. proper alternative to https://github.com/JuliaParallel/Dagger.jl/pull/465)
- Awareness of processor-associated memory spaces and their aliasing properties
copyto!alternative which integrates with Dagger's synchronization (required for GPU support)- Relaxed semantics w.r.t writing data into the original user-provided data containers (lazy writing allows for reduced data transfers and better parallelism), similar to Tapir's sync regions
- (Speculative) Data copying and versioning system in the scheduler, to make copies of data for reading and track which copies are up-to-date w.r.t last write
- A plan on how to deal with non-
Chunkarguments, w.r.t what we'll need to do to ensure we can still track them appropriately and enable distributed parallelism - A system for utilizing Julia's compiler to determine dependencies automatically, when unspecified
- A system for specifying dependencies ahead-of-time for a given dispatch signature
- Ngôn ngữ chính
- Julia
- Star
- 734
- Fork
- 94
- Merge trung bình
- 4 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 2
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 JuliaParallel/Dagger.jl
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
JuliaParallel/Dagger.jl#786 · 1 bình luận ·
-
MPI: tasks with acceleration=DistributedAcceleration() go missing when ranks spawn them independentlyCó thể đã có người làm @AnnaLena77 đã nhận 39 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
JuliaParallel/Dagger.jl#778 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
JuliaParallel/Dagger.jl#759 · 3 bình luận ·
-
bug datadeps
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
JuliaParallel/Dagger.jl#665 · 3 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
JuliaParallel/Dagger.jl#661 · 1 bình luận ·
Tất cả issue của JuliaParallel/Dagger.jl
Issue tương tự
-
docs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
path: splitext treats directory references and leading dots as extensionsCó thể đã có người làm @Hiten0305l đã nhận hôm nay. Đang mở
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
JuliaRegistries/RegistryCI.jl#758 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
JuliaParallel/Hwloc.jl#93 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày