SWDEV-436821 Update hip samples Readme files

Change-Id: I6bf3a72eac4a4242cb2dbf4e6eee73e0e1bef2ef


[ROCm/hip-tests commit: 76dd8ea569]
This commit is contained in:
Rahul Manocha
2023-12-11 03:43:30 +00:00
parent 91c9372c33
commit b299b79a77
29 changed files with 471 additions and 237 deletions
@@ -0,0 +1,24 @@
# occupancy
- Build the sample using cmake
```
$ mkdir build; cd build
$ cmake .. -DCMAKE_PREFIX_PATH=/opt/rocm
$ make
```
- Execute the sample
```
$ ./occupancy
Manual Configuration with block size 32
kernel Execution time = 0.433ms
Theoretical Occupancy is 40%
Automatic Configuation based on hipOccupancyMaxPotentialBlockSize
Suggested blocksize is 1024, Minimum gridsize is 128
kernel Execution time = 0.037ms
Theoretical Occupancy is 80%
Manual Test PASSED!
Automatic Test PASSED!
```