inducer / inducer/arraycontext

How should lazy actx.compile interact with memoization (on the output end)?

Đang mở
#100 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
9
Fork
11
Merge trung bình
17 giờ 12 phút
Pull request đã merge (30 ngày)
2

Mô tả

This is a longer-shot companion issue to https://github.com/inducer/pytato/issues/164 (and https://github.com/inducer/arraycontext/issues/99).

Suppose an `actx.compile`d function evaluates something that's memoized (for the sake of argument, imagine a temperature in mirgecom). After the compiled evaluation concludes, the memoization of dependent data becomes unavailable, since we're now working on a different array (/array container) instance. It'd be nice if that weren't the case.

(This isn't immensely relevant for mirgecom, since the output of the `compile`d function will typically be fed into a time integrator, which would invalidate any memoized temperature anyhow.)

cc @kaushikcfd

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu bằng cách đọc các issue liên quan inducer/pytato#164 và inducer/arraycontext#99, sau đó theo dõi actx.compile qua một trường hợp trong đó hàm được đánh giá sử dụng memoized data. So sánh các thể hiện array hoặc array-container trước và sau khi đánh giá đã biên dịch. Được xem là hoàn thành khi việc ghi nhớ dữ liệu phụ thuộc vẫn khả dụng sau khi biên dịch, nếu hành vi đó khả thi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
backend
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.