OmniSciDB  8fa3bf436f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CompilationOptions.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017 MapD Technologies, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef QUERYENGINE_COMPILATIONOPTIONS_H
18 #define QUERYENGINE_COMPILATIONOPTIONS_H
19 
20 #include <vector>
21 
22 enum class ExecutorDeviceType { CPU, GPU };
23 
25 
27 
29 
36  bool filter_on_deleted_column{true}; // if false, ignore the delete column during table
37  // scans. Primarily disabled for delete queries.
40 
43  in.hoist_literals,
44  in.opt_level,
48  in.explain_type,
50  }
51 
55  true,
57  false,
58  true,
59  true,
61  false};
62  }
63 };
64 
65 enum class ExecutorType { Native, Extern };
66 
70  bool just_explain; // return the generated IR for the first step
72  bool with_watchdog; // Per work unit, not global.
73  bool jit_debug;
75  bool with_dynamic_watchdog; // Per work unit, not global.
76  unsigned dynamic_watchdog_time_limit; // Dynamic watchdog time limit, in milliseconds.
79  double gpu_input_mem_limit_percent; // punt to CPU if input memory exceeds this
84  std::vector<size_t> outer_fragment_indices{};
85 
87  return ExecutionOptions{false,
88  true,
89  false,
90  false,
91  true,
92  false,
93  false,
94  false,
95  0,
96  false,
97  false,
98  1.0,
99  false,
100  0.5,
101  1000};
102  }
103 };
104 
105 #endif // QUERYENGINE_COMPILATIONOPTIONS_H
ExecutorDeviceType
std::vector< size_t > outer_fragment_indices
ExecutorOptLevel opt_level
double running_query_interrupt_freq
ExecutorOptLevel
ExecutorDispatchMode
ExecutorType
static CompilationOptions makeCpuOnly(const CompilationOptions &in)
ExecutorType executor_type
ExecutorExplainType explain_type
unsigned pending_query_interrupt_freq
ExecutorDeviceType device_type
static CompilationOptions defaults(const ExecutorDeviceType device_type=ExecutorDeviceType::GPU)
double gpu_input_mem_limit_percent
unsigned dynamic_watchdog_time_limit
static ExecutionOptions defaults()
ExecutorExplainType