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

Extern HIP device function #1294

Merged
merged 1 commit into from
Aug 21, 2020
Merged

Conversation

WeiqunZhang
Copy link
Member

Summary

We now need to use attribute((weak)) for extern HIP device function,
otherwise we get undefined hidden symbol error.

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • are described in the proposed changes to the AMReX documentation, if appropriate

We now need to use __attribute__((weak)) for extern HIP device function,
otherwise we get undefined hidden symbol error.
@WeiqunZhang WeiqunZhang requested review from atmyers and kngott August 21, 2020 01:13
@WeiqunZhang WeiqunZhang merged commit 1aef797 into AMReX-Codes:development Aug 21, 2020
@WeiqunZhang WeiqunZhang deleted the hip_weak branch August 21, 2020 03:19
dwillcox pushed a commit to dwillcox/amrex that referenced this pull request Oct 3, 2020
## Summary

We now need to use __attribute__((weak)) for extern HIP device function,
otherwise we get undefined hidden symbol error.

## Checklist

The proposed changes:
- [ ] fix a bug or incorrect behavior in AMReX
- [ ] add new capabilities to AMReX
- [ ] changes answers in the test suite to more than roundoff level
- [ ] are likely to significantly affect the results of downstream AMReX users
- [ ] are described in the proposed changes to the AMReX documentation, if appropriate
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