Compute Library
 21.05
CLGEMMReshapedOnlyRHSKernelConfigurationFactory Class Referencefinal

CLGEMMReshapedOnlyRHS factory class. More...

#include <CLGEMMReshapedOnlyRHSKernelConfiguration.h>

Static Public Member Functions

static std::unique_ptr< ICLGEMMKernelConfigurationcreate (GPUTarget gpu)
 Static method to call the CLGEMMReshapedOnlyRHS kernel configuration class accordingly with the GPU target. More...
 

Detailed Description

CLGEMMReshapedOnlyRHS factory class.

Definition at line 38 of file CLGEMMReshapedOnlyRHSKernelConfiguration.h.

Member Function Documentation

◆ create()

static std::unique_ptr<ICLGEMMKernelConfiguration> create ( GPUTarget  gpu)
inlinestatic

Static method to call the CLGEMMReshapedOnlyRHS kernel configuration class accordingly with the GPU target.

Parameters
[in]gpuGPU target
Returns
CLGEMMReshapedOnlyRHS kernel configuration class

Definition at line 47 of file CLGEMMReshapedOnlyRHSKernelConfiguration.h.

48  {
49  switch(get_arch_from_target(gpu))
50  {
51  case GPUTarget::MIDGARD:
52  case GPUTarget::BIFROST:
53  return std::make_unique<CLGEMMDefaultConfigReshapedRHSOnlyBifrost>(gpu);
54  case GPUTarget::VALHALL:
55  return std::make_unique<CLGEMMDefaultConfigReshapedRHSOnlyValhall>(gpu);
56  default:
57  ARM_COMPUTE_ERROR("Not supported GPU target");
58  }
59  }
#define ARM_COMPUTE_ERROR(msg)
Print the given message then throw an std::runtime_error.
Definition: Error.h:352
GPUTarget get_arch_from_target(GPUTarget target)
Helper function to get the GPU arch.
Definition: GPUTarget.cpp:189

References ARM_COMPUTE_ERROR, arm_compute::BIFROST, arm_compute::get_arch_from_target(), arm_compute::MIDGARD, and arm_compute::VALHALL.

Referenced by arm_compute::cl_gemm::auto_heuristics::select_default_gemm_config_reshaped_only_rhs().


The documentation for this class was generated from the following file: