SWDEV-436821 Update hip samples Readme files
Change-Id: I6bf3a72eac4a4242cb2dbf4e6eee73e0e1bef2ef
Tá an tiomantas seo le fáil i:
@@ -32,20 +32,21 @@ The macro supports specifying CLANG-specific, NVCC-specific compiler options usi
|
||||
Common options targeting both compilers can be specificed after the ```HIPCC_OPTIONS``` keyword.
|
||||
|
||||
## How to build and run:
|
||||
Use the following commands to build and execute the sample
|
||||
|
||||
- Build sample using cmake
|
||||
```
|
||||
$ mkdir build; cd build
|
||||
# For shared lib of hip rt,
|
||||
$ cmake ..
|
||||
# Or for static lib of hip rt,
|
||||
$ cmake -DCMAKE_PREFIX_PATH="/opt/rocm/llvm/lib/cmake" ..
|
||||
$ make
|
||||
```
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
For shared lib of hip rt,
|
||||
cmake ..
|
||||
Or for static lib of hip rt,
|
||||
cmake -DCMAKE_PREFIX_PATH="/opt/rocm/llvm/lib/cmake" ..
|
||||
|
||||
Then,
|
||||
make
|
||||
./MatrixTranspose
|
||||
- Execute the sample
|
||||
```
|
||||
$ ./MatrixTranspose
|
||||
Device name
|
||||
PASSED!
|
||||
```
|
||||
|
||||
## More Info:
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir