OmniSciDB  c07336695a
RenderAllocator.cpp
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 #include "../RenderAllocator.h"
18 #include "../../GpuInitGroups.h"
19 #include "Shared/Logger.h"
20 
21 RenderAllocator::RenderAllocator(int8_t* preallocated_ptr,
22  const size_t preallocated_size,
23  const size_t device_id,
24  const unsigned block_size_x,
25  const unsigned grid_size_x,
26  const RAExecutionPolicy execution_policy)
27  : preallocated_size_(preallocated_size), device_id_(device_id) {
28  CHECK(false);
29 }
30 
31 int8_t* RenderAllocator::alloc(const size_t bytes) {
32  CHECK(false);
33  return 0;
34 }
35 
37  CHECK(false);
38 }
39 
41  CHECK(false);
42  return 0;
43 }
44 
46  CHECK(false);
47  return 0;
48 }
49 
51  CHECK(false);
52  return 0;
53 }
54 
55 int8_t* RenderAllocator::getBasePtr() const {
56  CHECK(false);
57  return nullptr;
58 }
59 
61  CHECK(false);
63 }
64 
66  ::QueryRenderer::QueryRenderManager* render_manager,
67  const unsigned block_size_x,
68  const unsigned grid_size_x) {
69  CHECK(false);
70 }
71 
73 
75  CHECK(false);
76  return nullptr;
77 }
78 
80  CHECK(false);
81  return nullptr;
82 }
83 
85  const size_t num_data_bytes,
86  const size_t device_id) {
87  CHECK(false);
88 }
89 
91  const std::shared_ptr<::QueryRenderer::QueryDataLayout>& query_data_layout) {
92  CHECK(false);
93 }
94 
96  const std::shared_ptr<::QueryRenderer::QueryDataLayout>& query_data_layout) {
97  CHECK(false);
98 }
int8_t * alloc(const size_t bytes) final
RenderAllocator * getRenderAllocator(size_t device_id)
RAExecutionPolicy getExecutionPolicy() const
RenderAllocatorMap(::QueryRenderer::QueryRenderManager *render_manager, const unsigned block_size_x, const unsigned grid_size_x)
size_t getCurrentChunkSize() const
size_t getCurrentChunkOffset() const
RAExecutionPolicy
void bufferData(int8_t *data, const size_t num_data_bytes, const size_t device_id)
RenderAllocator * operator[](size_t device_id)
size_t getAllocatedSize() const
#define CHECK(condition)
Definition: Logger.h:187
RenderAllocator(int8_t *preallocated_ptr, const size_t preallocated_size, const size_t device_id, const unsigned block_size_x, const unsigned grid_size_x, const RAExecutionPolicy execution_policy=RAExecutionPolicy::Device)
void prepForRendering(const std::shared_ptr<::QueryRenderer::QueryDataLayout > &query_data_layout)
void setDataLayout(const std::shared_ptr<::QueryRenderer::QueryDataLayout > &query_data_layout)
int8_t * getBasePtr() const