Skip to content
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

LLVM instruction combine error triggered by while loop in reduce kernels #207

Closed
PhilipFackler opened this issue Mar 7, 2025 · 0 comments

Comments

@PhilipFackler
Copy link
Collaborator

Parallel reduce is creating an issue with recent LLVM/Julia code.
It throws a LLVM instruction combine error during run.

This error message indicates that LLVM’s optimizer is running into a bug when trying to combine instructions in our parallel_reduce kernel code. This is usually not an error in our logic but rather an artifact of how LLVM is optimizing our parallel_reduce code. The pattern of a while loop with dynamic shared memory can trigger this bug. This issue can be resolved by replacing the while loop with a for loop that computes the reduction in fixed steps.

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

No branches or pull requests

1 participant