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
487d31b2
Commit
487d31b2
authored
Mar 10, 2015
by
BRAMAS Berenger
Browse files
wip
parent
d7cae178
Changes
4
Hide whitespace changes
Inline
Side-by-side
Src/GroupTree/FStarPUOpenClWrapper.hpp
View file @
487d31b2
...
...
@@ -152,9 +152,6 @@ public:
}
static
void
transferInoutPassCallback
(
void
*
buffers
[],
void
*
cl_arg
){
FAssertLF
(
STARPU_VARIABLE_GET_PTR
(
buffers
[
0
])
==
STARPU_VARIABLE_GET_PTR
(
buffers
[
2
]));
FAssertLF
(
STARPU_VARIABLE_GET_PTR
(
buffers
[
1
])
==
STARPU_VARIABLE_GET_PTR
(
buffers
[
3
]));
cl_mem
currentCellsPtr
=
((
cl_mem
)
STARPU_VARIABLE_GET_PTR
(
buffers
[
0
]));
size_t
currentCellsSize
=
STARPU_VARIABLE_GET_ELEMSIZE
(
buffers
[
0
]);
cl_mem
externalCellsPtr
=
((
cl_mem
)
STARPU_VARIABLE_GET_PTR
(
buffers
[
1
]));
...
...
Src/GroupTree/OpenCl/FEmptyKernel.cl
View file @
487d31b2
...
...
@@ -62,7 +62,7 @@ __kernel void FOpenCL__upwardPassPerform(__global unsigned char* currentCellsPtr
__kernel
void
FOpenCL__transferInoutPassPerformMpi
(
__global
unsigned
char*
currentCellsPtr,
size_t
currentCellsSize,
__global
unsigned
char*
externalCellsPtr,
size_t
externalCellsSize,
int
idxLevel,
const
__global
OutOfBlockInteraction*
outsideInteractions,
in
t
nbOutsideInteractions,
__global
void*
userkernel
)
{
size_
t
nbOutsideInteractions,
__global
void*
userkernel
)
{
}
...
...
@@ -77,7 +77,7 @@ __kernel void FOpenCL__transferInPassPerform(__global unsigned char* currentCel
__kernel
void
FOpenCL__transferInoutPassPerform
(
__global
unsigned
char*
currentCellsPtr,
size_t
currentCellsSize,
__global
unsigned
char*
externalCellsPtr,
size_t
externalCellsSize,
int
idxLevel,
const
__global
OutOfBlockInteraction*
outsideInteractions,
in
t
nbOutsideInteractions,
__global
void*
userkernel
)
{
size_
t
nbOutsideInteractions,
__global
void*
userkernel
)
{
}
/////////////////////////////////////////////////////////////////////////////////////
...
...
@@ -98,7 +98,7 @@ __kernel void FOpenCL__downardPassPerform(__global unsigned char* currentCellsPt
__kernel
void
FOpenCL__directInoutPassPerformMpi
(
__global
unsigned
char*
containersPtr,
size_t
containersSize,
__global
unsigned
char*
externalContainersPtr,
size_t
externalContainersSize,
const
__global
OutOfBlockInteraction*
outsideInteractions,
in
t
nbOutsideInteractions,
const
int
treeHeight,
__global
void*
userkernel
)
{
size_
t
nbOutsideInteractions,
const
int
treeHeight,
__global
void*
userkernel
)
{
}
...
...
@@ -113,7 +113,7 @@ __kernel void FOpenCL__directInPassPerform(__global unsigned char* containersPtr
__kernel
void
FOpenCL__directInoutPassPerform
(
__global
unsigned
char*
containersPtr,
size_t
containersSize,
__global
unsigned
char*
externalContainersPtr,
size_t
externalContainersSize,
const
__global
OutOfBlockInteraction*
outsideInteractions,
in
t
nbOutsideInteractions,
const
int
treeHeight,
__global
void*
userkernel
)
{
size_
t
nbOutsideInteractions,
const
int
treeHeight,
__global
void*
userkernel
)
{
}
/////////////////////////////////////////////////////////////////////////////////////
...
...
Src/GroupTree/OpenCl/FOpenCLDeviceWrapper.hpp
View file @
487d31b2
...
...
@@ -138,6 +138,7 @@ public:
void
upwardPassPerform
(
cl_mem
currentCellsPtr
,
size_t
currentCellsSize
,
cl_mem
subCellGroupsPtr
[
9
],
size_t
subCellGroupsSize
[
9
],
int
nbSubCellGroups
,
int
idxLevel
){
return
;
Uptr9
ptrs
;
memcpy
(
ptrs
.
ptrs
,
subCellGroupsPtr
,
sizeof
(
cl_mem
)
*
9
);
size_t9
sizes
;
...
...
Src/GroupTree/OpenCl/FTestKernel.cl
View file @
487d31b2
...
...
@@ -522,7 +522,7 @@ __kernel void FOpenCL__upwardPassPerform(__global unsigned char* currentCellsPtr
__kernel void FOpenCL__transferInoutPassPerformMpi(__global unsigned char* currentCellsPtr, size_t currentCellsSize,
__global unsigned char* externalCellsPtr, size_t externalCellsSize,
int idxLevel, const __global OutOfBlockInteraction* outsideInteractions,
in
t nbOutsideInteractions, __global void* userkernel){
size_
t nbOutsideInteractions, __global void* userkernel){
struct FOpenCLGroupOfCells currentCells = BuildFOpenCLGroupOfCells(currentCellsPtr, currentCellsSize);
struct FOpenCLGroupOfCells cellsOther = BuildFOpenCLGroupOfCells(externalCellsPtr, externalCellsSize);
...
...
@@ -592,7 +592,7 @@ __kernel void FOpenCL__transferInPassPerform(__global unsigned char* currentCel
__kernel void FOpenCL__transferInoutPassPerform(__global unsigned char* currentCellsPtr, size_t currentCellsSize,
__global unsigned char* externalCellsPtr, size_t externalCellsSize,
int idxLevel, const __global OutOfBlockInteraction* outsideInteractions,
in
t nbOutsideInteractions, __global void* userkernel){
size_
t nbOutsideInteractions, __global void* userkernel){
struct FOpenCLGroupOfCells currentCells = BuildFOpenCLGroupOfCells(currentCellsPtr, currentCellsSize);
struct FOpenCLGroupOfCells cellsOther = BuildFOpenCLGroupOfCells(externalCellsPtr, externalCellsSize);
...
...
@@ -673,7 +673,7 @@ __kernel void FOpenCL__downardPassPerform(__global unsigned char* currentCellsPt
__kernel
void
FOpenCL__directInoutPassPerformMpi
(
__global
unsigned
char*
containersPtr,
size_t
containersSize,
__global
unsigned
char*
externalContainersPtr,
size_t
externalContainersSize,
const
__global
OutOfBlockInteraction*
outsideInteractions,
in
t
nbOutsideInteractions,
const
int
treeHeight,
__global
void*
userkernel
)
{
size_
t
nbOutsideInteractions,
const
int
treeHeight,
__global
void*
userkernel
)
{
struct
FOpenCLGroupOfParticles
containers
=
BuildFOpenCLGroupOfParticles
(
containersPtr,
containersSize
)
;
struct
FOpenCLGroupOfParticles
containersOther
=
BuildFOpenCLGroupOfParticles
(
externalContainersPtr,
externalContainersSize
)
;
...
...
@@ -734,7 +734,7 @@ __kernel void FOpenCL__directInPassPerform(__global unsigned char* containersPtr
__kernel
void
FOpenCL__directInoutPassPerform
(
__global
unsigned
char*
containersPtr,
size_t
containersSize,
__global
unsigned
char*
externalContainersPtr,
size_t
externalContainersSize,
const
__global
OutOfBlockInteraction*
outsideInteractions,
in
t
nbOutsideInteractions,
const
int
treeHeight,
__global
void*
userkernel
)
{
size_
t
nbOutsideInteractions,
const
int
treeHeight,
__global
void*
userkernel
)
{
struct
FOpenCLGroupOfParticles
containers
=
BuildFOpenCLGroupOfParticles
(
containersPtr,
containersSize
)
;
struct
FOpenCLGroupOfParticles
containersOther
=
BuildFOpenCLGroupOfParticles
(
externalContainersPtr,
externalContainersSize
)
;
...
...
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