class for customized GPU solutions
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2342 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
12e0446ca3
commit
2f6799dc9a
1 changed files with 7 additions and 6 deletions
|
|
@ -40,7 +40,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
template<class T1, class T2>
|
template<class T1, class T2>
|
||||||
typedef struct sol2Type {
|
struct sol2Type {
|
||||||
|
|
||||||
T1 tab1[SIZE];
|
T1 tab1[SIZE];
|
||||||
T2 tab2[SIZE];
|
T2 tab2[SIZE];
|
||||||
|
|
@ -59,10 +59,11 @@ inline __host__ __device__ unsigned size() {
|
||||||
return SIZE;
|
return SIZE;
|
||||||
|
|
||||||
}
|
}
|
||||||
}Type2;
|
};
|
||||||
|
|
||||||
|
|
||||||
template<class T1, class T2,class T3>
|
template<class T1, class T2,class T3>
|
||||||
typedef struct sol3Type {
|
struct sol3Type {
|
||||||
|
|
||||||
T1 tab1[SIZE];
|
T1 tab1[SIZE];
|
||||||
T2 tab2[SIZE];
|
T2 tab2[SIZE];
|
||||||
|
|
@ -84,10 +85,10 @@ inline __host__ __device__ unsigned size() {
|
||||||
return SIZE;
|
return SIZE;
|
||||||
|
|
||||||
}
|
}
|
||||||
}Type3;
|
};
|
||||||
|
|
||||||
template<class T1, class T2,class T3,class T4>
|
template<class T1, class T2,class T3,class T4>
|
||||||
typedef struct sol4Type {
|
struct sol4Type {
|
||||||
|
|
||||||
T1 tab1[SIZE];
|
T1 tab1[SIZE];
|
||||||
T2 tab2[SIZE];
|
T2 tab2[SIZE];
|
||||||
|
|
@ -110,6 +111,6 @@ inline __host__ __device__ unsigned size() {
|
||||||
return SIZE;
|
return SIZE;
|
||||||
|
|
||||||
}
|
}
|
||||||
}Type4;
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue