aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compute/skc/platforms/cl_12/cq_pool_cl.h
blob: c614600e190eff52856f73928f1270e96e074f34 (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
47
/*
 * 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
{
  cl_command_queue          * cq;
  cl_command_queue_properties cq_props;

  skc_uint                    size;
  skc_uint                    reads;
  skc_uint                    writes;
};

//l
//
//

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

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

//
//
//