Deprecate `Device.set_current()`?
@lijinf2 đang làm issue này rồi.
Từ ngày 29/5/2026.
- Ngôn ngữ chính
- Cython
- Star
- 3.4k
- Fork
- 329
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 116
Mô tả
I forgot to open an issue to track an offline discussion I had with @pciolkosz...
Currently, cuda.core diverges with cudax in a few places, and this is one of them. cuda.core focuses on enabling integration with existing Python projects, and having the cudart-like .set_current() method fills in the gap. However, the two projects also share many design principles, one of which is to favor explicitness, and therefore ideally we do not want any implicit/global states.
This issue tracks if there is any design opportunity to move away from the global device state, without breaking existing libraries. If such design exists, we should raise a deprecation warning asap while working toward the new design.
Hướng dẫn đóng góp
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.
Đánh giá
Issue này chưa được đánh giá.