OmniSciDB  c07336695a
GpuInitGroups.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 /*
18  * @file GpuInitGroups.h
19  * @author Alex Suhan <alex@mapd.com>
20  *
21  * Copyright (c) 2015 MapD Technologies, Inc. All rights reserved.
22  */
23 
24 #ifndef GPUINITGROUPS_H
25 #define GPUINITGROUPS_H
26 #include <cstdint>
27 
28 void init_group_by_buffer_on_device(int64_t* groups_buffer,
29  const int64_t* init_vals,
30  const uint32_t groups_buffer_entry_count,
31  const uint32_t key_count,
32  const uint32_t key_width,
33  const uint32_t agg_col_count,
34  const bool keyless,
35  const int8_t warp_size,
36  const size_t block_size_x,
37  const size_t grid_size_x);
38 
39 void init_columnar_group_by_buffer_on_device(int64_t* groups_buffer,
40  const int64_t* init_vals,
41  const uint32_t groups_buffer_entry_count,
42  const uint32_t key_count,
43  const uint32_t agg_col_count,
44  const int8_t* col_sizes,
45  const bool need_padding,
46  const bool keyless,
47  const int8_t key_size,
48  const size_t block_size_x,
49  const size_t grid_size_x);
50 
51 void init_render_buffer_on_device(int64_t* render_buffer,
52  const uint32_t qw_count,
53  const size_t block_size_x,
54  const size_t grid_size_x);
55 #endif // GPUINITGROUPS_H
const int64_t const uint32_t const uint32_t const uint32_t agg_col_count
const int64_t const uint32_t const uint32_t const uint32_t const bool const int8_t warp_size
void init_render_buffer_on_device(int64_t *render_buffer, const uint32_t qw_count, const size_t block_size_x, const size_t grid_size_x)
void init_group_by_buffer_on_device(int64_t *groups_buffer, const int64_t *init_vals, const uint32_t groups_buffer_entry_count, const uint32_t key_count, const uint32_t key_width, const uint32_t agg_col_count, const bool keyless, const int8_t warp_size, const size_t block_size_x, const size_t grid_size_x)
const int64_t const uint32_t groups_buffer_entry_count
void init_columnar_group_by_buffer_on_device(int64_t *groups_buffer, const int64_t *init_vals, const uint32_t groups_buffer_entry_count, const uint32_t key_count, const uint32_t agg_col_count, const int8_t *col_sizes, const bool need_padding, const bool keyless, const int8_t key_size, const size_t block_size_x, const size_t grid_size_x)
const int64_t * init_vals
const int64_t const uint32_t const uint32_t const uint32_t const bool keyless