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

Update hip_programming_guide.md about long double type #890

Merged
merged 2 commits into from
Feb 7, 2019

Conversation

yxsamliu
Copy link
Contributor

This is for a review for clang https://reviews.llvm.org/D57527

## Use of Long Double Type

In HCC and HIP-Clang, long double type is 80-bit extended precision format for x86_64, which is not supported by AMDGPU. HCC and HIP-Cang treat long double type as IEEE double type for AMDGPU. Using long double type in HIP source code will not cause issue as long as data of long double type is not transferred between host and device. However, long double type should not be used as kernel argument type.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HIP-Cang --> HIP-clang

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Thanks.

llvm-git-migration pushed a commit to llvm/llvm-project that referenced this pull request Jan 31, 2019
rC352620 caused regressions because it copied floating point format from
aux target.

floating point format decides whether extended long double is supported.
It is x86_fp80 on x86 but IEEE double on amdgcn.

Document usage of long doubel type in HIP programming guide 
ROCm/HIP#890

Differential Revision: https://reviews.llvm.org/D57527

llvm-svn: 352801
dtzWill pushed a commit to llvm-mirror/clang that referenced this pull request Jan 31, 2019
rC352620 caused regressions because it copied floating point format from
aux target.

floating point format decides whether extended long double is supported.
It is x86_fp80 on x86 but IEEE double on amdgcn.

Document usage of long doubel type in HIP programming guide 
ROCm/HIP#890

Differential Revision: https://reviews.llvm.org/D57527


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352801 91177308-0d34-0410-b5e6-96231b3b80d8
spurious pushed a commit to spurious/clang-mirror that referenced this pull request Jan 31, 2019
rC352620 caused regressions because it copied floating point format from
aux target.

floating point format decides whether extended long double is supported.
It is x86_fp80 on x86 but IEEE double on amdgcn.

Document usage of long doubel type in HIP programming guide 
ROCm/HIP#890

Differential Revision: https://reviews.llvm.org/D57527


git-svn-id: http://llvm.org/svn/llvm-project/cfe/trunk@352801 91177308-0d34-0410-b5e6-96231b3b80d8
@mangupta mangupta merged commit 564af0e into master Feb 7, 2019
@mangupta mangupta deleted the yxsamliu-patch-2 branch February 13, 2019 08:40
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.

3 participants