Skip to content

Conversation

@LegNeato
Copy link
Contributor

@LegNeato LegNeato commented Aug 8, 2025

LLVM 7.1 (and thus nvvm) lacks native 128-bit integer intrinsics, so emulate them using 64-bit operations or compiler-builtins.

I also added an example with sha2 to confirm it works and show folks that crates.io crates can often be used directly unmodified.

Fixes #207.

@LegNeato LegNeato force-pushed the sha branch 5 times, most recently from 38e4e99 to 544c592 Compare August 8, 2025 16:32
LLVM 7.1 (and thus nvvm) lacks native 128-bit integer intrinsics, so emulate them using 64-bit operations.

I also added an example with `sha2` to confirm it works and show
folks that crates.io crates can often be used directly unmodified.

Fixes Rust-GPU#207.
@LegNeato LegNeato merged commit 3ee57fe into Rust-GPU:main Aug 8, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sha2 crate = runtime error

1 participant