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
76818a8e
Unverified
Commit
76818a8e
authored
Nov 23, 2021
by
Chao Liu
Committed by
GitHub
Nov 23, 2021
Browse files
Update README.md
parent
4810105c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
example/2_gemm_xdl_bias_add/README.md
example/2_gemm_xdl_bias_add/README.md
+11
-6
No files found.
example/2_gemm_xdl_bias_add/README.md
View file @
76818a8e
# Instructions for ```gemm_xdl``` Example
# Instructions for ```gemm_xdl
_bias_add
``` Example
## Docker script
```
bash
...
...
@@ -13,7 +13,7 @@ rocm/tensorflow:rocm4.3.1-tf2.6-dev \
/bin/bash
```
## Build ``gemm_xdl```
## Build ``gemm_xdl
_bias_add
```
```
bash
mkdir
build
&&
cd
build
```
...
...
@@ -30,15 +30,16 @@ cmake \
```
```
bash
make
-j
gemm_xdl
make
-j
gemm_xdl
_bias_add
```
## Run ```gemm_xdl```
## Run ```gemm_xdl
_bias_add
```
```
bash
#arg1: verification (0=no, 1=yes)
#arg2: initialization (0=no init, 1=integer value, 2=decimal value)
#arg3: run kernel # of times (>1)
./example/gemm_xdl.sh 0 1 5
#arg4 to 9: M (256x), N(128x), K(32x), StrideA, StrideB, StrideC
./example/gemm_xdl_bias_add 0 1 5 3840 4096 4096 4096 4096 4096
```
Result (MI100 @ 1087Mhz, 133.5TFlops peak FP16)
...
...
@@ -46,11 +47,15 @@ Result (MI100 @ 1087Mhz, 133.5TFlops peak FP16)
a_m_k: dim 2, lengths {3840, 4096}, strides {4096, 1}
b_k_n: dim 2, lengths {4096, 4096}, strides {1, 4096}
c_m_n: dim 2, lengths {3840, 4096}, strides {4096, 1}
c0_m_n: dim 2, lengths {3840, 4096}, strides {4096, 1}
c1_m_n: dim 2, lengths {3840, 4096}, strides {1, 0}
arg.a_grid_desc_k0_m_k1_{512, 3840, 8}
arg.b_grid_desc_k0_n_k1_{512, 4096, 8}
arg.c_grid_desc_m_n_{ 3840, 4096}
arg.c0_grid_desc_m_n_{ 3840, 4096}
arg.c1_grid_desc_m_n_{ 3840, 4096}
launch_and_time_kernel: grid_dim {480, 1, 1}, block_dim {256, 1, 1}
Warm up
Start running 5 times...
Perf: 1.
19685
ms, 10
7.657
TFlops, 7
8.8501
GB/s
Perf: 1.
27583
ms, 10
0.992
TFlops, 7
3.9688
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