Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
composable_kernel
Commits
a8b539da
Unverified
Commit
a8b539da
authored
Dec 02, 2021
by
Chao Liu
Committed by
GitHub
Dec 02, 2021
Browse files
Update README.md
parent
4361cffd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
example/4_conv_xdl_bias_relu_add/README.md
example/4_conv_xdl_bias_relu_add/README.md
+18
-18
No files found.
example/4_conv_xdl_bias_relu_add/README.md
View file @
a8b539da
# Instructions for ```
gemm
_xdl_bias_add``` Example
# Instructions for ```
conv
_xdl_bias_
relu_
add``` Example
## Docker script
## Docker script
```
bash
```
bash
...
@@ -13,7 +13,7 @@ rocm/tensorflow:rocm4.3.1-tf2.6-dev \
...
@@ -13,7 +13,7 @@ rocm/tensorflow:rocm4.3.1-tf2.6-dev \
/bin/bash
/bin/bash
```
```
## Build ```
gemm
_xdl_bias_add```
## Build ```
conv
_xdl_bias_
relu_
add```
```
bash
```
bash
mkdir
build
&&
cd
build
mkdir
build
&&
cd
build
```
```
...
@@ -30,32 +30,32 @@ cmake \
...
@@ -30,32 +30,32 @@ cmake \
```
```
```
bash
```
bash
make
-j
gemm
_xdl_bias_add
make
-j
conv
_xdl_bias_
relu_
add
```
```
## Run ```
gemm
_xdl_bias_add```
## Run ```
conv
_xdl_bias_
relu_
add```
```
bash
```
bash
#arg1: verification (0=no, 1=yes)
#arg1: verification (0=no, 1=yes)
#arg2: initialization (0=no init, 1=integer value, 2=decimal value)
#arg2: initialization (0=no init, 1=integer value, 2=decimal value)
#arg3: run kernel # of times (>1)
#arg3: run kernel # of times (>1)
#arg4 to
9: M (256x), N(128x), K(32x), StrideA, StrideB, StrideC
#arg4 to
18: N, K, C, Y, X, Hi, Wi, Sy, Sx, Dy, Dx, LeftPy, LeftPx, RightPy, RightPx
./example/
gemm
_xdl_bias_add 0 1 5
3840 4096 4096 4096 4096 4096
./example/
conv
_xdl_bias_
relu_
add 0 1 5
```
```
Result (MI100 @ 1087Mhz, 133.5TFlops peak FP16)
Result (MI100 @ 1087Mhz, 133.5TFlops peak FP16)
```
```
a_m_k
: dim
2
, lengths {
3840, 4096}, strides {4096, 1
}
in_n_c_hi_wi
: dim
4
, lengths {
128, 192, 71, 71}, strides {967872, 1, 13632, 192
}
b_k_n
: dim
2
, lengths {
4096, 4096}, strides {1, 4096
}
wei_k_c_y_x
: dim
4
, lengths {
256, 192, 3, 3}, strides {1728, 1, 576, 192
}
c_m_n
: dim
2
, lengths {
3840, 4096}, strides {4096, 1
}
out_n_k_ho_wo
: dim
4
, lengths {
128, 256, 36, 36}, strides {331776, 1, 9216, 256
}
c0_m_n
: dim
2
, lengths {
3840, 409
6}, strides {
4096,
1}
bias_k
: dim
1
, lengths {
25
6}, strides {1}
c1_m_n
: dim
2
, lengths {
3840, 4096}, strides {1, 0
}
resi_n_k_ho_wo
: dim
4
, lengths {
128, 256, 36, 36}, strides {331776, 1, 9216, 256
}
arg.a_grid_desc_k0_m_k1_{
512, 3840
, 8}
arg.a_grid_desc_k0_m_k1_{
216, 165888
, 8}
arg.b_grid_desc_k0_n_k1_{
512, 409
6, 8}
arg.b_grid_desc_k0_n_k1_{
216, 25
6, 8}
arg.c_grid_desc_m_n_{
3840, 409
6}
arg.c_grid_desc_m_n_{
165888, 25
6}
arg.c0_grid_desc_m_n_{
3840, 409
6}
arg.c0_grid_desc_m_n_{
165888, 25
6}
arg.c1_grid_desc_m_n_{
3840, 409
6}
arg.c1_grid_desc_m_n_{
165888, 25
6}
launch_and_time_kernel: grid_dim {
480
, 1, 1}, block_dim {256, 1, 1}
launch_and_time_kernel: grid_dim {
1296
, 1, 1}, block_dim {256, 1, 1}
Warm up
Warm up
Start running 5 times...
Start running 5 times...
Perf: 1.
27583 ms, 100.992
TFlops,
73.9688
GB/s
Perf: 1.
71779 ms, 85.4396
TFlops,
194.2
GB/s
```
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment