From 56f78897a41884c9e022a8c5c8853baad3b613f1 Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Thu, 31 Jan 2019 15:18:37 -0500 Subject: [PATCH 1/2] Update hip_programming_guide.md --- docs/markdown/hip_programming_guide.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/markdown/hip_programming_guide.md b/docs/markdown/hip_programming_guide.md index 52d250cab5..b9ab362159 100644 --- a/docs/markdown/hip_programming_guide.md +++ b/docs/markdown/hip_programming_guide.md @@ -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. \ No newline at end of file +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-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. From c0d7a7ec31f282dce3a6e1af8132be64bf7f0138 Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Thu, 31 Jan 2019 16:26:30 -0500 Subject: [PATCH 2/2] Update hip_programming_guide.md --- docs/markdown/hip_programming_guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/markdown/hip_programming_guide.md b/docs/markdown/hip_programming_guide.md index b9ab362159..8922a7c4b3 100644 --- a/docs/markdown/hip_programming_guide.md +++ b/docs/markdown/hip_programming_guide.md @@ -113,4 +113,4 @@ 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-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. +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.