/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/docs-6.4.3/include/ck/tensor_operation/gpu/device/device_base.hpp File Reference

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/docs-6.4.3/include/ck/tensor_operation/gpu/device/device_base.hpp File Reference#

Composable Kernel: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/docs-6.4.3/include/ck/tensor_operation/gpu/device/device_base.hpp File Reference
device_base.hpp File Reference
#include <string>
#include <sstream>
#include <regex>
#include <optional>
#include "ck/stream_config.hpp"

Go to the source code of this file.

Classes

struct  ck::tensor_operation::device::BaseArgument
 
struct  ck::tensor_operation::device::BaseInvoker
 
struct  ck::tensor_operation::device::BaseOperator
 

Namespaces

 ck
 
 ck::tensor_operation
 
 ck::tensor_operation::device
 

Macros

#define GET_OBJECT_NAME_IMLP
 
#define GET_TEMPLATE_INFO_IMPL
 
#define REGISTER_EXTRA_PRINTING_METHODS   GET_OBJECT_NAME_IMLP GET_TEMPLATE_INFO_IMPL
 

Macro Definition Documentation

◆ GET_OBJECT_NAME_IMLP

#define GET_OBJECT_NAME_IMLP
Value:
std::optional<std::string> GetObjectName() const override \
{ \
std::string str = __PRETTY_FUNCTION__; \
static std::regex obj_name_expr{"<std::string> (.*)::GetObjectName"}; \
std::smatch match; \
if(!std::regex_search(str, match, obj_name_expr)) \
{ \
return str; \
} \
return std::string(match[1]) + ';'; \
}

◆ GET_TEMPLATE_INFO_IMPL

#define GET_TEMPLATE_INFO_IMPL
Value:
std::optional<std::string> GetTemplateInfo() const override \
{ \
std::string str = __PRETTY_FUNCTION__; \
static std::regex template_expr{"\\[(.*)\\]"}; \
std::smatch match; \
if(!std::regex_search(str, match, template_expr)) \
{ \
return std::nullopt; \
} \
return std::string(match[1]); \
}

◆ REGISTER_EXTRA_PRINTING_METHODS

#define REGISTER_EXTRA_PRINTING_METHODS   GET_OBJECT_NAME_IMLP GET_TEMPLATE_INFO_IMPL