OmniSciDB  c1a53651b2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CompilationOptions.h File Reference
#include <vector>
#include <ostream>
+ Include dependency graph for CompilationOptions.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CompilationOptions
 
struct  ExecutionOptions
 

Enumerations

enum  ExecutorDeviceType { ExecutorDeviceType::CPU = 0, ExecutorDeviceType::GPU }
 
enum  ExecutorOptLevel { ExecutorOptLevel::Default, ExecutorOptLevel::ReductionJIT }
 
enum  ExecutorExplainType { ExecutorExplainType::Default, ExecutorExplainType::Optimized }
 
enum  ExecutorDispatchMode { ExecutorDispatchMode::KernelPerFragment, ExecutorDispatchMode::MultifragmentKernel }
 
enum  ExecutorType { ExecutorType::Native, ExecutorType::Extern, ExecutorType::TableFunctions }
 

Functions

std::ostream & operator<< (std::ostream &os, ExecutorDeviceType const dt)
 
std::string toString (const ExecutorDeviceType &device_type)
 

Enumeration Type Documentation

enum ExecutorDeviceType
strong
Enumerator
CPU 
GPU 

Definition at line 25 of file CompilationOptions.h.

enum ExecutorDispatchMode
strong
Enumerator
KernelPerFragment 
MultifragmentKernel 

Definition at line 41 of file CompilationOptions.h.

enum ExecutorExplainType
strong
Enumerator
Default 
Optimized 

Definition at line 39 of file CompilationOptions.h.

enum ExecutorOptLevel
strong
Enumerator
Default 
ReductionJIT 

Definition at line 37 of file CompilationOptions.h.

enum ExecutorType
strong
Enumerator
Native 
Extern 
TableFunctions 

Definition at line 78 of file CompilationOptions.h.

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
ExecutorDeviceType const  dt 
)
inline

Definition at line 27 of file CompilationOptions.h.

27  {
28  constexpr char const* strings[]{"CPU", "GPU"};
29  return os << strings[static_cast<int>(dt)];
30 }
std::string toString ( const ExecutorDeviceType device_type)
inline

Definition at line 32 of file CompilationOptions.h.

References CPU.

Referenced by anonymous_namespace{SerializeToSql.cpp}::agg_to_string(), TableFunctionManager::allocate_output_buffers(), WindowFunctionContext::buildAggregationTreeForPartition(), org.apache.calcite.sql.validate.SqlValidatorImpl::checkRollUp(), DBHandler::clear_gpu_memory(), DBHandler::clearRenderMemory(), DBHandler::clone_session(), StringDictionaryTranslationMgr::codegen(), CodeGenerator::codegenCastNonStringToString(), CodeGenerator::codegenFunctionOperCastArgs(), CodeGenerator::codegenHoistedConstantsLoads(), CodeGenerator::codegenPerRowStringOper(), WindowFunctionContext::compute(), WindowFunctionContext::computeAggregateTreeCacheKey(), WindowFunctionContext::computePartitionBuffer(), Column< Array< T > >::concatItem(), DBHandler::connect(), DBHandler::connect_impl(), DBHandler::create_custom_expression(), DBHandler::create_dashboard(), DBHandler::create_link(), DBHandler::create_table(), dateTimeParse(), DBHandler::delete_custom_expressions(), DBHandler::delete_dashboards(), DBHandler::detect_column_types(), DBHandler::disconnect(), anonymous_namespace{ResultSetReductionJIT.cpp}::emit_aggregate_one_nullable_value(), Parser::CopyTableStmt::execute(), QueryPlanDagExtractor::extractQueryPlanDagImpl(), DBHandler::get_all_files_in_archive(), DBHandler::get_custom_expressions(), DBHandler::get_dashboard(), DBHandler::get_dashboard_grantees(), DBHandler::get_dashboards(), DBHandler::get_databases(), DBHandler::get_device_parameters(), DBHandler::get_first_geo_file_in_archive(), DBHandler::get_hardware_info(), DBHandler::get_internal_table_details(), DBHandler::get_internal_table_details_for_database(), DBHandler::get_layers_in_geo_file(), DBHandler::get_link_view(), anonymous_namespace{TableFunctionCompilationContext.cpp}::get_llvm_type_from_sql_column_type(), DBHandler::get_memory(), get_node_output(), DBHandler::get_physical_tables(), DBHandler::get_result_row_for_pixel(), DBHandler::get_server_status(), DBHandler::get_session_info(), DBHandler::get_status(), DBHandler::get_table_details(), DBHandler::get_table_details_for_database(), DBHandler::get_table_epoch(), DBHandler::get_table_epoch_by_name(), DBHandler::get_table_epochs(), DBHandler::get_tables(), DBHandler::get_tables_for_database(), DBHandler::get_tables_meta(), DBHandler::get_users(), DBHandler::get_views(), Column< Array< T > >::getItem(), DBHandler::getQueries(), QueryPlanDagExtractor::handleLeftDeepJoinTree(), DBHandler::import_table(), DBHandler::import_table_status(), import_export::Importer::importGDALGeo(), import_export::Importer::importGDALRaster(), DBHandler::importGeoTableSingle(), DBHandler::interrupt(), DBHandler::invalidate_cur_session(), Column< Array< T > >::isNull(), DBHandler::load_table(), DBHandler::load_table_binary(), DBHandler::loadTableBinaryColumnarInternal(), org.apache.calcite.rel.rules.OuterJoinOptViaNullRejectionRule::onMatch(), operator<<(), ColumnList< T >::operator[](), anonymous_namespace{Datum.cpp}::parseInteger(), com.mapd.parser.server.CalciteServerHandler::process(), ra_exec_unit_desc_for_caching(), ResultSetStorage::reduceOneSlot(), DBHandler::register_runtime_extension_functions(), org.apache.calcite.sql.validate.SqlValidatorImpl::registerFrom(), QueryPlanDagExtractor::registerNodeToDagCache(), DBHandler::render_vega(), DBHandler::replace_dashboard(), DBHandler::set_cur_session(), DBHandler::set_execution_mode(), DBHandler::set_table_epoch(), DBHandler::set_table_epoch_by_name(), DBHandler::set_table_epochs(), Column< Array< T > >::setItem(), Column< Array< T > >::setNull(), DBHandler::shareOrUnshareDashboards(), DBHandler::sql_execute(), DBHandler::sql_validate(), spatial_type::suffix(), DBHandler::switch_database(), com.mapd.calcite.parser.HeavyDBParser::tableAliasFinder(), toString(), Analyzer::WindowFrame::toString(), toStringImpl(), RelAlgTranslator::translateWindowFunction(), tree_string(), DBHandler::update_custom_expression(), Executor::update_extension_modules(), org.apache.calcite.sql.validate.SqlValidatorImpl::validateAccess(), and ScalarExprToSql::visitWindowFunction().

32  {
33  return (device_type == ExecutorDeviceType::CPU) ? "CPU" : "GPU";
34 }