README.md 1012 Bytes
Newer Older
1
# Instructions for ```example_reduce_blockwise```
Qianfeng's avatar
Qianfeng committed
2

3
## Run ```example_reduce_blockwise```
Qianfeng's avatar
Qianfeng committed
4
5
6
```bash
# -D <xxx> : input 4-d tensor lengths
# -v <x> :   verification (0=no, 1=yes)
7
#arg1: initialization (0=no init, 1=single integer value, 2=scope integer value, 3=decimal value)
Qianfeng's avatar
Qianfeng committed
8
#arg2: run kernel # of times (>1)
9
./bin/example_reduce_blockwise -D 16,64,32,960 -v 1 1 10
Qianfeng's avatar
Qianfeng committed
10
11
12
13
14
15
16
17
18
19
```

Result
```
launch_and_time_kernel: grid_dim {240, 1, 1}, block_dim {256, 1, 1} 
Warm up
Start running 3 times...
Perf: 0.23536 ms, 267.32 GB/s, DeviceReduceBlockWise<256,M_C4_S1,K_C64_S1,InSrcVectorDim_0_InSrcVectorSize_1_OutDstVectorSize_1>
error: 0
max_diff: 0, 529, 529
20
root@dc-smc-18:/data/composable_kernel/Build3# bin/example_reduce_blockwise -D 16,64,32,960 -v 1 1 10
Qianfeng's avatar
Qianfeng committed
21
22
23
24
25
26
27
launch_and_time_kernel: grid_dim {240, 1, 1}, block_dim {256, 1, 1} 
Warm up
Start running 10 times...
Perf: 0.23392 ms, 268.966 GB/s, DeviceReduceBlockWise<256,M_C4_S1,K_C64_S1,InSrcVectorDim_0_InSrcVectorSize_1_OutDstVectorSize_1>
error: 0
max_diff: 0, 528, 528
```