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
a2b03d36
"vscode:/vscode.git/clone" did not exist on "41955edc8dadb1456507cb6eaa8c6a5667b96e4b"
Commit
a2b03d36
authored
Nov 15, 2023
by
Bartlomiej Wroblewski
Browse files
Extend IsSupported to check for supported GPU gens
parent
42a3d8fc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
include/ck/host_utility/device_prop.hpp
include/ck/host_utility/device_prop.hpp
+6
-0
include/ck/tensor_operation/gpu/device/impl/device_gemm_multiple_d_xdl_cshuffle_lds_direct_load.hpp
...l/device_gemm_multiple_d_xdl_cshuffle_lds_direct_load.hpp
+5
-0
include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_lds_direct_load.hpp
.../device/impl/device_gemm_xdl_cshuffle_lds_direct_load.hpp
+5
-0
No files found.
include/ck/host_utility/device_prop.hpp
View file @
a2b03d36
...
@@ -58,4 +58,10 @@ inline bool is_xdl_supported()
...
@@ -58,4 +58,10 @@ inline bool is_xdl_supported()
ck
::
get_device_name
()
==
"gfx942"
;
ck
::
get_device_name
()
==
"gfx942"
;
}
}
inline
bool
is_direct_load_supported
()
{
return
ck
::
get_device_name
()
==
"gfx90a"
||
ck
::
get_device_name
()
==
"gfx940"
||
ck
::
get_device_name
()
==
"gfx941"
||
ck
::
get_device_name
()
==
"gfx942"
;
}
}
// namespace ck
}
// namespace ck
include/ck/tensor_operation/gpu/device/impl/device_gemm_multiple_d_xdl_cshuffle_lds_direct_load.hpp
View file @
a2b03d36
...
@@ -205,6 +205,11 @@ struct DeviceGemmMultipleD_Xdl_CShuffle_LdsDirectLoad
...
@@ -205,6 +205,11 @@ struct DeviceGemmMultipleD_Xdl_CShuffle_LdsDirectLoad
return
false
;
return
false
;
}
}
if
(
!
ck
::
is_direct_load_supported
())
{
return
false
;
}
// Check vector load/store.
// Check vector load/store.
{
{
using
Row
=
ck
::
tensor_layout
::
gemm
::
RowMajor
;
using
Row
=
ck
::
tensor_layout
::
gemm
::
RowMajor
;
...
...
include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_lds_direct_load.hpp
View file @
a2b03d36
...
@@ -199,6 +199,11 @@ struct DeviceGemm_Xdl_CShuffle_LdsDirectLoad : public DeviceGemm<ALayout,
...
@@ -199,6 +199,11 @@ struct DeviceGemm_Xdl_CShuffle_LdsDirectLoad : public DeviceGemm<ALayout,
return
false
;
return
false
;
}
}
if
(
!
ck
::
is_direct_load_supported
())
{
return
false
;
}
// Check vector load/store.
// Check vector load/store.
{
{
using
Row
=
ck
::
tensor_layout
::
gemm
::
RowMajor
;
using
Row
=
ck
::
tensor_layout
::
gemm
::
RowMajor
;
...
...
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