exec/async_scope.hpp: "invalid use of void expression" in on_empty() with nvcc 12.9 and gcc-12 host compiler
Maintainer thường phản hồi trong vòng 1 ngày
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
- 54/100
Hướng nghiên cứu
Start by reading exec/async_scope.hpp around lines 823–825, especially on_empty(), and compare the related inline_scheduler fix in #2288. Run the standalone repro.cu compile command with nvcc 12.9 and gcc-12 to confirm the failure. Done means establishing whether this compiler combination is supported and whether the issue can be resolved in async_scope.hpp.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Including <exec/async_scope.hpp> fails to compile under nvcc with gcc-12 as the host compiler. We observed this in HPX's CUDA CI, where a .cu test pulls in the header through hpx/execution.hpp.
Environment
- nvcc: CUDA 12.9
- host compiler: gcc-12
- stdexec: main
Error
exec/async_scope.hpp:823-825
return when_empty(just());
error: invalid use of void expression
Observed in
- HPX CUDA CI: https://github.com/TheHPXProject/hpx/issues/7676
- HPX workaround (hides the async_scope include from nvcc): https://github.com/TheHPXProject/hpx/pull/7678
Standalone repro (not yet verified outside HPX CI)
// repro.cu
#include <exec/async_scope.hpp>
int main() {}
nvcc -std=c++20 -ccbin g++-12 -I<stdexec>/include -c repro.cu
Notes
- The same error on this line was reported as GCC bug 114393, so this may be a gcc-12 front-end problem that nvcc exposes.
- A similar nvcc failure in inline_scheduler (#2284) was fixed with a CUDACC guard in #2288. This looks like a separate problem in async_scope.
Questions
- Is nvcc with gcc-12 a supported combination for exec/async_scope.hpp?
- Would a CUDACC guard or a workaround in on_empty() (for example an explicit return type) be acceptable, as in #2288?
- Ngôn ngữ chính
- C++
- Star
- 2.5k
- Fork
- 276
- Merge trung bình
- 1 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 39
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 NVIDIA/stdexec
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
NVIDIA/stdexec#1751 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Sequence operation states that don't retain sender-owned data: `write_env` over a sequence (#2294) and `exec::iterate`Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
NVIDIA/stdexec#2305 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
continues_on: hop opstate not connected with secondary environmentCó thể đã có người làm @ericniebler đã nhận 18 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
NVIDIA/stdexec#2268 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
NVIDIA/stdexec#2240 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày 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
Tất cả issue của NVIDIA/stdexec
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/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 74/100
EsotericSoftware/spine-runtimes#3186 ·
-
Round video messages start gray and blocky with libx264: encoder is configured for 1,000,000 fpsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
telegramdesktop/tdesktop#31422 ·
Maintainer thường phản hồi trong vòng 9 ngày
-
Độ 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 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
zen-browser/desktop#15809 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày