ViennaCL - The Vienna Computing Library
1.5.2
|
Some helper routines for reading/writing/printing scheduler expressions. More...
#include <iostream>
#include <sstream>
#include "viennacl/forwards.h"
#include "viennacl/scheduler/forwards.h"
Go to the source code of this file.
Namespaces | |
namespace | viennacl |
Main namespace in ViennaCL. Holds all the basic types such as vector, matrix, etc. and defines operations upon them. | |
namespace | viennacl::scheduler |
Contains the scheduling functionality which allows for dynamic kernel generation as well as the fusion of multiple statements into a single kernel. | |
namespace | viennacl::scheduler::detail |
Implementation details for the scheduler. | |
Defines | |
#define | VIENNACL_TRANSLATE_OP_TO_STRING(NAME) case NAME: return #NAME; |
#define | VIENNACL_TRANSLATE_ELEMENT_TO_STRING(NAME, ELEMENT) case NAME: ss << "(" << element.ELEMENT << ")"; return #NAME + ss.str(); |
Functions | |
std::string | to_string (viennacl::scheduler::op_element op_elem) |
Helper routine for converting the operation enums to string. | |
std::string | to_string (viennacl::scheduler::lhs_rhs_element element) |
Helper routine converting the enum and union values inside a statement node to a string. | |
std::ostream & | operator<< (std::ostream &os, viennacl::scheduler::statement_node const &s_node) |
Print a single statement_node. Non-recursive. | |
void | print_node (std::ostream &os, viennacl::scheduler::statement const &s, vcl_size_t node_index, vcl_size_t indent=0) |
Recursive worker routine for printing a whole statement. | |
std::ostream & | operator<< (std::ostream &os, viennacl::scheduler::statement const &s) |
Writes a string identifying the scheduler statement to an output stream. |
Some helper routines for reading/writing/printing scheduler expressions.
#define VIENNACL_TRANSLATE_ELEMENT_TO_STRING | ( | NAME, | |
ELEMENT | |||
) | case NAME: ss << "(" << element.ELEMENT << ")"; return #NAME + ss.str(); |
#define VIENNACL_TRANSLATE_OP_TO_STRING | ( | NAME | ) | case NAME: return #NAME; |