clSPARSE
v0.10.0.0
a software library containing Sparse functions written in OpenCL
Main Page
Related Pages
Modules
Classes
Files
Examples
File List
File Members
src
include
clSPARSE-xx.h
Go to the documentation of this file.
1
/* ************************************************************************
2
* Copyright 2015 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
21
#pragma once
22
#ifndef _CL_SPARSE_xx_H_
23
#define _CL_SPARSE_xx_H_
24
25
#if defined( __APPLE__ ) || defined( __MACOSX )
26
#include <OpenCL/cl.h>
27
#else
28
#include <CL/cl.h>
29
#endif
30
35
typedef
enum
_cldenseMajor
36
{
37
rowMajor = 1,
38
columnMajor
39
}
cldenseMajor
;
40
41
45
#if( CLSPARSE_INDEX_SIZEOF == 8 )
46
#error clSPARSE does not yet implement 64-bit indices
47
typedef
cl_ulong
clsparseIdx_t
;
48
#else
49
typedef
cl_uint
clsparseIdx_t
;
50
#endif
51
52
#endif
cldenseMajor
cldenseMajor
For dense data structures, this enum specifies how multi-dimensional data structures are laid out in ...
Definition:
clSPARSE-xx.h:35
clsparseIdx_t
cl_uint clsparseIdx_t
An abstraction for the size of indices supported by the library. Clients should use this index type w...
Definition:
clSPARSE-xx.h:49
Generated by
1.8.10