SparseLibrary
Version 1.6.0
Main Page
Classes
Files
File List
alignment.hpp
1
/*
2
* Copyright (c) 2007-2014, A. N. Yzelman, Utrecht University 2007-2011;
3
* KU Leuven 2011-2014.
4
* R. H. Bisseling, Utrecht University 2007-2014.
5
*
6
* This file is part of the Sparse Library.
7
*
8
* This library was developed under supervision of Prof. dr. Rob H. Bisseling at
9
* Utrecht University, from 2007 until 2011. From 2011-2014, development continued
10
* at KU Leuven, where Prof. dr. Dirk Roose contributed significantly to the ideas
11
* behind the newer parts of the library code.
12
*
13
* The Sparse Library is free software: you can redistribute it and/or modify
14
* it under the terms of the GNU General Public License as published by the
15
* Free Software Foundation, either version 3 of the License, or (at your
16
* option) any later version.
17
*
18
* The Sparse Library is distributed in the hope that it will be useful, but
19
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21
* for more details.
22
*
23
* You should have received a copy of the GNU General Public License along
24
* with the Sparse Library. If not, see <http://www.gnu.org/licenses/>.
25
*/
26
27
28
/*
29
* File created by:
30
* A. N. Yzelman, Dept. of Computer Science, KU Leuven, 2013.
31
*
32
* Defines default alignment variables. Currently AVX is standard.
33
* Automatically adapts for Xeon Phi.
34
*/
35
36
37
#ifndef _H_SL_ALIGNMENT
38
#define _H_SL_ALIGNMENT
39
40
#ifdef __MIC__
41
#define _SL_ALIGN_DOUBLE 64
42
#define _SL_ALIGN_INT16 32
43
#define _SL_ALIGN_INT32 64
44
#define _SL_BLOCKSIZE 8
45
#else
46
#define _SL_ALIGN_DOUBLE 64
47
#define _SL_ALIGN_INT16 64
48
#define _SL_ALIGN_INT32 64
49
#define _SL_BLOCKSIZE 4
50
#endif
51
#define _SL_ALIGN_POINTER _SL_ALIGN_DOUBLE
52
#endif
53
Generated on Wed Nov 19 2014 14:47:33 for SparseLibrary by
1.8.7