Adding support in the hipify-perl tool for the HIP_SYMBOL macro, which is required for hip API calls involving a device symbol. Added more explicit mention of the HIP_SYMBOL macro in the porting guide.
[ROCm/hip commit: 6531262126]
이 커밋은 다음에 포함됨:
1 부모
3417a3492e
커밋
4d7b8ce2d6
2 파일이 변경됨
+6
-3
검색과 일치하는 파일 없음
@@ -418,6 +418,8 @@ HIP support for hipMemcpyToSymbol is complete. This feature allows a kernel
|
||||
to define a device-side data symbol which can be accessed on the host side. The symbol
|
||||
can be in __constant or device space.
|
||||
|
||||
Note that the symbol name needs to be encased in the HIP_SYMBOL macro, as shown in the code example below. This also applies to hipMemcpyFromSymbol, hipGetSymbolAddress, and hipGetSymbolSize.
|
||||
|
||||
For example:
|
||||
|
||||
Device Code:
|
||||
|
||||
새 이슈에서 참조
사용자 차단