-
Notifications
You must be signed in to change notification settings - Fork 50
buggy bswap implementation seems to assume unsigned arguments #169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
LegNeato
added a commit
to LegNeato/rust-gpu
that referenced
this issue
Dec 9, 2024
LegNeato
added a commit
to LegNeato/rust-gpu
that referenced
this issue
Dec 9, 2024
LegNeato
added a commit
to LegNeato/rust-gpu
that referenced
this issue
Dec 9, 2024
LegNeato
added a commit
that referenced
this issue
Dec 13, 2024
LegNeato
pushed a commit
to LegNeato/rust-gpu
that referenced
this issue
Mar 26, 2025
* Mark functions in float_ext.rs as gpu_only Different behavior between linux and windows linkers causes windows CI to fail when compiliing crates that need cuda_std. https://learn.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-error-lnk2019?view=msvc-170#you-call-intrinsic-functions-or-pass-argument-types-to-intrinsic-functions-that-arent-supported-on-your-target-architecture This link contains the exact reason for the error message. Compiling float_ext for an architecture other than nvptx caused the linker to fail with LNK2019, for the reason linked.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This snippet of Rust code:
causes a panic in
rust-gpu
:This seems to be caused by implementation of
bswap
assuming its argument is unsigned, which is not correct.rust-gpu/crates/rustc_codegen_spirv/src/builder/intrinsics.rs
Line 262 in 1932353
BTW: This bug is the very first boon of fuzzing
rustgpu
withrustlants
!The text was updated successfully, but these errors were encountered: