Merge pull request #890 from ROCm-Developer-Tools/yxsamliu-patch-2

Update hip_programming_guide.md about long double type

[ROCm/clr commit: 2729b252c2]
Этот коммит содержится в:
Maneesh Gupta
2019-02-07 05:55:23 +05:30
коммит произвёл GitHub
родитель 0f880f9ed6 beb5b247fc
Коммит 52723f6e3b
+5 -1
Просмотреть файл
@@ -109,4 +109,8 @@ freed.
The memory are allocated in pages. Users can define macro
`__HIP_SIZE_OF_PAGE` for controlling the page size in bytes and macro
`__HIP_NUM_PAGES` for controlling the total number of pages that can be
allocated.
allocated.
## 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-Clang 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.