Commit a2b03d36 authored by Bartlomiej Wroblewski's avatar Bartlomiej Wroblewski
Browse files

Extend IsSupported to check for supported GPU gens

parent 42a3d8fc
......@@ -58,4 +58,10 @@ inline bool is_xdl_supported()
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
......@@ -205,6 +205,11 @@ struct DeviceGemmMultipleD_Xdl_CShuffle_LdsDirectLoad
return false;
}
if(!ck::is_direct_load_supported())
{
return false;
}
// Check vector load/store.
{
using Row = ck::tensor_layout::gemm::RowMajor;
......
......@@ -199,6 +199,11 @@ struct DeviceGemm_Xdl_CShuffle_LdsDirectLoad : public DeviceGemm<ALayout,
return false;
}
if(!ck::is_direct_load_supported())
{
return false;
}
// Check vector load/store.
{
using Row = ck::tensor_layout::gemm::RowMajor;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment