Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
b62cb0a1
Commit
b62cb0a1
authored
Mar 25, 2015
by
BRAMAS Berenger
Browse files
Update opencl
parent
1b70db7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Src/GroupTree/TestKernel/FTestOpenCLCode.hpp
View file @
b62cb0a1
...
...
@@ -7,6 +7,7 @@
#include "../OpenCl/FTextReplacer.hpp"
// Initialize the types
template
<
class
FReal
>
class
FTestOpenCLCode
{
FTextReplacer
kernelfile
;
size_t
dim
;
...
...
@@ -14,7 +15,12 @@ class FTestOpenCLCode{
public:
//FTestOpenCLCode() : kernelfile("/home/berenger/Projets/ScalfmmGit/scalfmm/Src/GroupTree/OpenCl/FEmptyKernel.cl"){
FTestOpenCLCode
()
:
kernelfile
(
"/home/berenger/Projets/ScalfmmGit/scalfmm/Src/GroupTree/TestKernel/FTestKernel.cl"
){
kernelfile
.
replaceAll
(
"___FReal___"
,
"double"
);
if
(
sizeof
(
FReal
)
==
sizeof
(
double
)){
kernelfile
.
replaceAll
(
"___FReal___"
,
"double"
);
}
else
{
kernelfile
.
replaceAll
(
"___FReal___"
,
"float"
);
}
kernelfile
.
replaceAll
(
"___FParticleValueClass___"
,
"long long"
);
kernelfile
.
replaceAll
(
"___NbSymbAttributes___"
,
0
);
kernelfile
.
replaceAll
(
"___NbAttributesPerParticle___"
,
1
);
...
...
Tests/noDist/testBlockedWithOpenCLAlgorithm.cpp
View file @
b62cb0a1
...
...
@@ -79,7 +79,7 @@ int main(int argc, char* argv[]){
#ifdef ScalFMM_ENABLE_CUDA_KERNEL
,
FStarPUCudaWrapper
<
KernelClass
,
FCudaEmptyCell
,
FCudaGroupOfCells
<
FCudaEmptyCell
>
,
FCudaGroupOfParticles
<
0
,
int
>
,
FCudaGroupAttachedLeaf
<
0
,
int
>
,
FCudaEmptyKernel
<>>
#endif
,
FStarPUOpenClWrapper
<
GroupKernelClass
,
FOpenCLDeviceWrapper
<
GroupKernelClass
,
FTestOpenCLCode
>
>
,
FStarPUOpenClWrapper
<
GroupKernelClass
,
FOpenCLDeviceWrapper
<
GroupKernelClass
,
FTestOpenCLCode
<
FReal
>
>
>
>
GroupAlgorithm
;
typedef
FTestCell
CellClass
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment