Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ScalFMM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
ScalFMM
Commits
b62cb0a1
Commit
b62cb0a1
authored
10 years ago
by
BRAMAS Berenger
Browse files
Options
Downloads
Patches
Plain Diff
Update opencl
parent
1b70db7d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Src/GroupTree/TestKernel/FTestOpenCLCode.hpp
+7
-1
7 additions, 1 deletion
Src/GroupTree/TestKernel/FTestOpenCLCode.hpp
Tests/noDist/testBlockedWithOpenCLAlgorithm.cpp
+1
-1
1 addition, 1 deletion
Tests/noDist/testBlockedWithOpenCLAlgorithm.cpp
with
8 additions
and
2 deletions
Src/GroupTree/TestKernel/FTestOpenCLCode.hpp
+
7
−
1
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
);
...
...
This diff is collapsed.
Click to expand it.
Tests/noDist/testBlockedWithOpenCLAlgorithm.cpp
+
1
−
1
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment