SWDEV-436821 Update hip samples Readme files
Change-Id: I6bf3a72eac4a4242cb2dbf4e6eee73e0e1bef2ef
[ROCm/hip-tests commit: 76dd8ea569]
Цей коміт міститься в:
@@ -66,8 +66,21 @@ Here the first parameter will store the time taken value, second parameter is th
|
||||
We can print the value of time take comfortably since eventMs is float variable.
|
||||
|
||||
## 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
|
||||
```
|
||||
$ ./hipEvent
|
||||
Device name Navi 14 [Radeon Pro W5500]
|
||||
hipMemcpyHostToDevice time taken = 0.981ms
|
||||
kernel Execution time = 0.539ms
|
||||
hipMemcpyDeviceToHost time taken = 1.220ms
|
||||
PASSED!
|
||||
```
|
||||
|
||||
## More Info:
|
||||
- [HIP FAQ](https://github.com/ROCm-Developer-Tools/HIP/blob/master/docs/markdown/hip_faq.md)
|
||||
|
||||
Посилання в новій задачі
Заблокувати користувача