SWDEV-436821 Update hip samples Readme files
Change-Id: I6bf3a72eac4a4242cb2dbf4e6eee73e0e1bef2ef
[ROCm/hip-tests commit: 76dd8ea569]
This commit is contained in:
@@ -38,9 +38,18 @@ In the same sourcecode, we used for MatrixTranspose. We'll add the following:
|
||||
With the help of this application, we can say that kernel code can be converted into multi-dimensional threads with ease.
|
||||
|
||||
## How to build and run:
|
||||
Use the make command and execute it using ./exe
|
||||
Use hipcc to build the application, which is using hcc on AMD and nvcc on nvidia.
|
||||
|
||||
- Build the sample using cmake
|
||||
```
|
||||
$ mkdir build; cd build
|
||||
$ cmake .. -DCMAKE_PREFIX_PATH=/opt/rocm
|
||||
$ make
|
||||
```
|
||||
- Execute the sample
|
||||
```
|
||||
$ ./2dshfl
|
||||
Device name Navi 14 [Radeon Pro W5500]
|
||||
PASSED!
|
||||
```
|
||||
## requirement for nvidia
|
||||
please make sure you have a 3.0 or higher compute capable device in order to use warp shfl operations and add `-gencode arch=compute=30, code=sm_30` nvcc flag in the Makefile while using this application.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user