clBLAS
2.11
Main Page
Modules
Files
Examples
File List
All
Functions
Typedefs
Enumerations
Enumerator
Groups
Pages
src
include
granulation.h
1
/* ************************************************************************
2
* Copyright 2013 Advanced Micro Devices, 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
/*
19
* Data and execution granulation
20
*/
21
22
#ifndef GRANULATION_H_
23
#define GRANULATION_H_
24
30
typedef
enum
DecompositionAxis {
31
DECOMP_AXIS_Y,
32
DECOMP_AXIS_X
33
} DecompositionAxis;
34
40
typedef
struct
PGranularity {
42
unsigned
int
wgSize[2];
44
unsigned
int
wgDim;
46
unsigned
int
wfSize;
48
unsigned
int
numWGSpawned[2];
50
unsigned
int
maxWorkGroupSize;
51
} PGranularity;
52
69
typedef
struct
SubproblemDim {
70
size_t
x;
71
size_t
y;
74
size_t
bwidth;
75
size_t
itemX;
77
size_t
itemY;
79
} SubproblemDim;
80
81
#endif
/* GRANULATION_H_ */
Generated on Wed Feb 24 2016 11:23:14 for clBLAS by
1.8.6