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
6573f19c
Commit
6573f19c
authored
May 26, 2023
by
Astha Rai
Browse files
edited README, added device_gemm_dl op with extra gfx908 to support the GEMM example
parent
7b9d9fc0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
include/ck/tensor_operation/gpu/device/impl/device_gemm_dl.hpp
...de/ck/tensor_operation/gpu/device/impl/device_gemm_dl.hpp
+1
-1
python/README.md
python/README.md
+8
-4
No files found.
include/ck/tensor_operation/gpu/device/impl/device_gemm_dl.hpp
View file @
6573f19c
...
@@ -485,7 +485,7 @@ struct DeviceGemmDl : public DeviceGemm<ALayout,
...
@@ -485,7 +485,7 @@ struct DeviceGemmDl : public DeviceGemm<ALayout,
static
bool
IsSupportedArgument
(
const
Argument
&
arg
)
static
bool
IsSupportedArgument
(
const
Argument
&
arg
)
{
{
if
(
ck
::
get_device_name
()
==
"gfx906"
||
ck
::
get_device_name
()
==
"gfx1030"
)
if
(
ck
::
get_device_name
()
==
"gfx906"
||
ck
::
get_device_name
()
==
"gfx1030"
||
ck
::
get_device_name
()
==
"gfx908"
)
{
{
return
GridwiseGemm
::
CheckValidity
(
return
GridwiseGemm
::
CheckValidity
(
arg
.
a_grid_desc_k0_m_k1_
,
arg
.
b_grid_desc_k0_n_k1_
,
arg
.
c_grid_desc_m_n_
);
arg
.
a_grid_desc_k0_m_k1_
,
arg
.
b_grid_desc_k0_n_k1_
,
arg
.
c_grid_desc_m_n_
);
...
...
python/README.md
View file @
6573f19c
...
@@ -4,17 +4,21 @@ There are 2 directories: shared and normal. The normal directory contains one in
...
@@ -4,17 +4,21 @@ There are 2 directories: shared and normal. The normal directory contains one in
generates multiple instances and compiles them into a shared library.
generates multiple instances and compiles them into a shared library.
## Normal
## Normal
To generate the cpp file and executable:
To generate the cpp file and executable:
`python3 gemm_ex.py`
`python3 gemm_ex.py`
Run the executable (same layout as CK examples: verification, initialization, run kernel # of times)
Run the executable (same layout as CK examples: verification, initialization, run kernel # of times):
`./ex 0 1 5`
`./ex 0 1 5`
## Shared
## Shared
Generate all instances, make shared library and executable
Generate all instances, make shared library and executable:
`python3 driver.py`
`python3 driver.py`
Run the executable (same layout as CK examples)
Run the executable (same layout as CK examples):
`./example 0 1 5`
`./example 0 1 5`
*
There's a main.cpp file needed for the executable included, so be careful when deleting the generated cpp files for the instances
*
There's a main.cpp file needed for the executable included, so be careful when deleting the generated cpp files for the instances
...
...
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