SWDEV-271416 - Remove HIP_DYNAMIC_SHARED macro in hip

Change-Id: I12f39ea8438eb7ce76d8ffb2151b4faa93689048


[ROCm/hip commit: 090b2829b9]
이 커밋은 다음에 포함됨:
Julia Jiang
2021-02-04 16:22:01 -05:00
부모 138ac37a70
커밋 ef396373ec
12개의 변경된 파일23개의 추가작업 그리고 57개의 파일을 삭제
+6 -3
파일 보기
@@ -19,10 +19,13 @@ We will be using the Simple Matrix Transpose application from the previous tutor
## Shared Memory
Shared memory is way more faster than that of global and constant memory and accessible to all the threads in the block. For In the same sourcecode, we will use the `HIP_DYNAMIC_SHARED` keyword to declare dynamic shared memory as follows:
Shared memory is way more faster than that of global and constant memory and accessible to all the threads in the block.
Previously, it was essential to declare dynamic shared memory using the HIP_DYNAMIC_SHARED macro for accuracy, as using static shared memory in the same kernel could result in overlapping memory ranges and data-races.
Now, the HIP-Clang compiler provides support for extern shared declarations, and the HIP_DYNAMIC_SHARED option is no longer required. You may use the standard extern definition:
extern __shared__ type var[];
` HIP_DYNAMIC_SHARED(float, sharedMem) `
here the first parameter is the data type while the second one is the variable name.
The other important change is:
```