aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compute/skc/platforms/cl_12/cq_pool_cl.h
blob: 0cc73a2f82c38a1c3f3a06ff55f8d504c02da35e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * Copyright 2017 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can
 * be found in the LICENSE file.
 *
 */

#pragma once

#include "types.h"

//
// Why we need to wrap command queue creation:
//
// - command queue creation is expensive
// 
// - the CL 1.2 function is deprecated in 2.0
//

struct skc_cq_pool
{
  skc_cq_type_e      type;
  skc_uint           size;
  skc_uint           reads;
  skc_uint           writes;
  cl_command_queue * cq;
};

//l
//
//

void
skc_cq_pool_create(struct skc_runtime * const runtime,
                   struct skc_cq_pool * const pool,
                   skc_uint             const type,
                   skc_uint             const size);

void
skc_cq_pool_dispose(struct skc_runtime * const runtime,
                    struct skc_cq_pool *       pool);

//
//
//