19 #include <unordered_map> 30 static std::unordered_map<std::string, Target const>
const map = { {
"cpu",
37 auto t = map.find(str);
48 if (t.second == target) {
56 std::stringstream list;
57 for (
auto target : map) {
58 list << target.first <<
", ";
61 return list.str().substr(0, list.str().length() - 2);
std::string get_string_from_target(Target const target)
Get a string representation of a given target.
vectorized CPU code generated with MLIR
bool is_gpu(Target const target)
Checks if this is a GPU target.
special value to handle unknown targets
std::string get_target_list_string()
Returns a string containing the list of available targets.
a token to indicate the maximum number of targets
bool is_concrete(Target const target)
Checks if target is a real, concrete target.
Defines valid targets for an ionic model to run on and an allocator for allocating memory on a specif...
baseline CPU model generated with the original opencarp code generator
CUDA code for NVIDIA GPUs generated with MLIR.
Target get_target_from_string(std::string const str)
Returns a value from the Target enum from a given string.
Target
enum that represents different targets to run ionic models on.
ROCM code for AMD GPUs generated with MLIR.