SWDEV-436821 Update hip samples Readme files

Change-Id: I6bf3a72eac4a4242cb2dbf4e6eee73e0e1bef2ef
Tento commit je obsažen v:
Rahul Manocha
2023-12-11 03:43:30 +00:00
rodič f5deb13ce3
revize 76dd8ea569
29 změnil soubory, kde provedl 471 přidání a 237 odebrání
+9 -5
Zobrazit soubor
@@ -56,12 +56,16 @@ Finally, using the system linker, hipcc, or clang, link the host and device obje
```
## How to build and run this sample:
Use these make commands to compile into assembly, compile assembly into executable, and execute it.
- To compile the HIP application into host and device assembly: `make src_to_asm`.
- To compile the assembly files into an executable: `make asm_to_exec`.
- To execute, run
- Build the sample using cmake
```
./square_asm.out
$ mkdir build; cd build
$ cmake .. -DCMAKE_PREFIX_PATH=/opt/rocm
$ make
```
- Execute sample
```
$ ./square_asm.out
info: running on device AMD Radeon Graphics
info: allocate host mem ( 7.63 MB)
info: allocate device mem ( 7.63 MB)