Compute Library
 21.05
CLGEMMHeuristicsHandle Class Reference

Handle for loading and retrieving GEMM heuristics. More...

#include <CLGEMMHeuristicsHandle.h>

Public Member Functions

 CLGEMMHeuristicsHandle ()
 Constructor. More...
 
 ~CLGEMMHeuristicsHandle ()
 Destructor. More...
 
 CLGEMMHeuristicsHandle (const CLGEMMHeuristicsHandle &)=delete
 Prevent Copy Construct. More...
 
CLGEMMHeuristicsHandleoperator= (const CLGEMMHeuristicsHandle &)=delete
 Prevent Copy Assignment. More...
 
 CLGEMMHeuristicsHandle (CLGEMMHeuristicsHandle &&)=default
 Default Move Constructor. More...
 
CLGEMMHeuristicsHandleoperator= (CLGEMMHeuristicsHandle &&)=default
 Default Move Assignment. More...
 
bool reload_from_file (const std::string &filename)
 (Re)Load the heuristics from reading a dotmlgo file More...
 
const mlgo::MLGOHeuristicsget () const
 Return a pointer to underlying heuristics for querying purposes. More...
 

Detailed Description

Handle for loading and retrieving GEMM heuristics.

Definition at line 38 of file CLGEMMHeuristicsHandle.h.

Constructor & Destructor Documentation

◆ CLGEMMHeuristicsHandle() [1/3]

Constructor.

Definition at line 30 of file CLGEMMHeuristicsHandle.cpp.

31  : _heuristics(std::make_unique<mlgo::MLGOHeuristics>())
32 {
33 }

◆ ~CLGEMMHeuristicsHandle()

~CLGEMMHeuristicsHandle ( )
default

Destructor.

◆ CLGEMMHeuristicsHandle() [2/3]

Prevent Copy Construct.

◆ CLGEMMHeuristicsHandle() [3/3]

Default Move Constructor.

Member Function Documentation

◆ get()

◆ operator=() [1/2]

CLGEMMHeuristicsHandle& operator= ( const CLGEMMHeuristicsHandle )
delete

Prevent Copy Assignment.

◆ operator=() [2/2]

CLGEMMHeuristicsHandle& operator= ( CLGEMMHeuristicsHandle &&  )
default

Default Move Assignment.

◆ reload_from_file()

bool reload_from_file ( const std::string &  filename)

(Re)Load the heuristics from reading a dotmlgo file

Parameters
[in]filenamePath to the dotmlgo file
Returns
bool Signals if the reload succeeded or failed

Definition at line 36 of file CLGEMMHeuristicsHandle.cpp.

37 {
38  return _heuristics->reload_from_file(filename);
39 }

Referenced by main(), and CLDeviceBackend::setup_backend_context().


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