Add example and documentation for linking external NVIDIA libraries

Đang mở
#123 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
cpp, python

Hướng nghiên cứu

Start with the existing examples in the extension-cpp repository and how they build through torch.utils.cpp_extension.load and setup.py. Pick one external NVIDIA library, such as cuSOLVER, and add the -L, -l, include_dirs and library_dirs settings to a small example. Done means the example builds and runs on Linux, and a documentation section explains the flags and their conflicts with PyTorch's CUDA setup. The issue has no comments or linked pull request, so ask the maintainers which library they want before starting.

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

Mô tả

The current examples in extension-cpp focus on simple CUDA kernels or extensions that rely only on libraries already linked by PyTorch. It would be very helpful to include an example and documentation demonstrating how to link additional NVIDIA libraries that PyTorch does not automatically link (e.g., AmgX, cuSOLVER, OptiX).

This would clarify:

  • How to specify additional -L and -l flags in torch.utils.cpp_extension.load or setup.py-based builds
  • How to manage include paths (include_dirs, library_dirs) and potential conflicts with PyTorch’s existing CUDA setup
  • Platform-specific nuances
Ngôn ngữ chính
Python
Star
1.2k
Fork
250
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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pytorch/extension-cpp

Tất cả issue của pytorch/extension-cpp

Issue tương tự

Thêm issue về Python

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.