1#ifndef FREE_TENSOR_MEM_TYPE_H
2#define FREE_TENSOR_MEM_TYPE_H
30 "byvalue",
"cpu",
"gpu/global",
"gpu/shared",
31 "gpu/local",
"gpu/warp",
"cpu/heap",
"gpu/global/heap",
37template <
typename T, T... i>
39 return std::array{(
MemType)i...};
58 ERROR(
FT_MSG <<
"Unrecognized memory type \"" << _str
59 <<
"\". Candidates are (case-insensitive): "
#define ERROR(msg)
Definition: except.h:141
#define FT_MSG
Definition: except.h:23
constexpr auto createAllMemTypes(std::integer_sequence< T, i... >)
Definition: mem_type.h:38
Definition: allocator.h:9
std::string tolower(const std::string &s)
Definition: container_utils.h:142
constexpr std::array memTypeNames
Definition: mem_type.h:29
std::string join(Container &&c, const std::string &splitter)
Definition: container_utils.h:194
MemType parseMType(const std::string &_str)
Definition: mem_type.h:51
std::ostream & operator<<(std::ostream &os, const Dependence &dep)
Definition: deps.cc:1404
constexpr auto allMemTypes
Definition: mem_type.h:44
MemType
Definition: mem_type.h:14