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

Rename __local variables to avoid conflict with macro defined by HIP #1398

Merged
merged 1 commit into from
Aug 17, 2024

Conversation

msimberg
Copy link
Contributor

When stdexec headers are included in a build with hipcc compilation fails because of a __local macro defined by HIP: https://github.com/ROCm/clr/blob/1e4c60f286cb056b4117c72358302a888e65a324/hipamd/include/hip/amd_detail/device_library_decls.h#L123. It's a rather unfortunate macro name, but it's been reported to AMD (ROCm/hipamd#68; though this particular repo is archived, and the replacement repo does not have the same issue reported) and the macro is still defined on the latest development branch of clr. I'm proposing to avoid the __local name in stdexec. I've changed existing uses to slightly more verbose names.

Copy link

copy-pr-bot bot commented Aug 16, 2024

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ericniebler
Copy link
Collaborator

/ok to test

@ericniebler ericniebler merged commit 8bc7c7f into NVIDIA:main Aug 17, 2024
18 checks passed
@msimberg msimberg deleted the __local-hip branch August 17, 2024 08:02
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.

2 participants