9 #include <hip/hip_runtime.h> 
   13 constexpr 
unsigned int fnv1a_hash(std::string_view str, 
unsigned int h = 2166136261u)
 
   15     return str.empty() ? h
 
   17                                     (h ^ 
static_cast<unsigned char>(str.front())) * 16777619u);
 
   21     hipDeviceProp_t props{};
 
   23     auto status = hipGetDevice(&device);
 
   24     if(status != hipSuccess)
 
   28     status = hipGetDeviceProperties(&props, device);
 
   29     if(status != hipSuccess)
 
   33     const std::string raw_name(props.gcnArchName);
 
   34     const auto name = raw_name.substr(0, raw_name.find(
':')); 
 
   50     case fnv1a_hash(
"10.3.0 Sienna_Cichlid 18"): 
return "gfx1030";
 
   75 template <
typename ADataType, 
typename BDataType, index_t MPerXDL, index_t NPerXDL>
 
   85         if constexpr((MPerXDL != 16) || (NPerXDL != 16))
 
   89         if constexpr(
sizeof(ADataType) > 2 || 
sizeof(BDataType) > 2)
 
constexpr unsigned int fnv1a_hash(std::string_view str, unsigned int h=2166136261u)
Definition: device_prop.hpp:13
 
bool is_lds_direct_load_supported()
Definition: device_prop.hpp:101
 
bool is_xdl_supported()
Definition: device_prop.hpp:68
 
bool is_wmma_supported()
Definition: device_prop.hpp:127
 
std::string get_device_name()
Definition: device_prop.hpp:19
 
bool is_gfx12_supported()
Definition: device_prop.hpp:55
 
bool is_xdl_wmma_supported()
Definition: device_prop.hpp:76
 
bool is_gfx103_supported()
Definition: device_prop.hpp:120
 
bool is_tf32_supported()
Definition: device_prop.hpp:132
 
bool is_gfx101_supported()
Definition: device_prop.hpp:114
 
bool is_gfx11_supported()
Definition: device_prop.hpp:60
 
bool is_bf16_atomic_supported()
Definition: device_prop.hpp:108