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

Missing some warp cross lane functions #25

Closed
ueqri opened this issue Jul 11, 2021 · 2 comments
Closed

Missing some warp cross lane functions #25

ueqri opened this issue Jul 11, 2021 · 2 comments
Assignees

Comments

@ueqri
Copy link
Contributor

ueqri commented Jul 11, 2021

According to HIP programming guides, Warp Cross Lane Functions are well supported in HIP. But I couldn't build the HIP code with some of these wrap functions e.g. int __all(int predicate) and int __any(int predicate) using HIP-CPU library.

Since those APIs are widely used in warp-level programing, I was wondering if there are some plans for these functions, __all and __any (__ballot is already implemented in HIP-CPU).

@AlexVlx AlexVlx self-assigned this Jun 17, 2022
@AlexVlx
Copy link
Collaborator

AlexVlx commented Jun 18, 2022

Thank you for filing this @ueqri . I will add them, but please note that there's a caveat with Cross Lane Functions (it's one of the divergence points between CPU and GPU), in that on CPU these'll carry barrier semantics (as if calling __syncthreads). I think that @MathiasMagnus ran into it, so he might have something to add.

@AlexVlx
Copy link
Collaborator

AlexVlx commented Sep 1, 2023

Fixed (modulo lack of lockstep behaviour).

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

2 participants