SWDEV-436821 Update hip samples Readme files
Change-Id: I6bf3a72eac4a4242cb2dbf4e6eee73e0e1bef2ef
[ROCm/hip-tests commit: 76dd8ea569]
这个提交包含在:
1 父节点
91c9372c33
当前提交
b299b79a77
29 个文件已更改
+471
-237
没有与搜索条件相匹配的文件
@@ -4,3 +4,26 @@ Show an application written directly in HIP which uses platform-specific check o
|
||||
an instruction that only exists on the AMD platform.
|
||||
|
||||
See related [blog](http://gpuopen.com/platform-aware-coding-inside-hip/) demonstrating platform specialization.
|
||||
|
||||
- Steps to build this sample:
|
||||
```
|
||||
$ mkdir build; cd build
|
||||
$ cmake .. -DCMAKE_PREFIX_PATH=/opt/rocm
|
||||
$ make
|
||||
```
|
||||
|
||||
- Execute File
|
||||
```
|
||||
$ ./bit_extract
|
||||
|
||||
pch size: 11743288
|
||||
__hipGetPCH succeeded!
|
||||
info: running on device #0
|
||||
info: allocate host mem ( 7.63 MB)
|
||||
info: allocate device mem ( 7.63 MB)
|
||||
info: copy Host2Device
|
||||
info: launch 'bit_extract_kernel'
|
||||
info: copy Device2Host
|
||||
info: check result
|
||||
PASSED!
|
||||
```
|
||||
在新工单中引用
屏蔽一个用户