Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
c8b69a4b
Commit
c8b69a4b
authored
Sep 11, 2015
by
BRAMAS Berenger
Browse files
add the possibilities to manage the starpu functionalities
parent
fd00910b
Changes
5
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
c8b69a4b
...
...
@@ -87,6 +87,9 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/CMakeModules/morse/")
option
(
SCALFMM_BUILD_UTILS
"Set to ON to build utils Tests"
OFF
)
option
(
SCALFMM_DISABLE_NATIVE_OMP4
"Set to ON to disable the gcc/intel omp4"
OFF
)
option
(
SCALFMM_TIME_OMPTASKS
"Set to ON to time omp4 tasks and generate output file"
OFF
)
option
(
SCALFMM_STARPU_USE_COMMUTE
"Set to ON to build SCALFMM with StarPU"
ON
)
option
(
SCALFMM_STARPU_USE_REDUX
"Set to ON to build SCALFMM with StarPU"
ON
)
option
(
SCALFMM_STARPU_USE_PRIO
"Set to ON to build SCALFMM with StarPU"
ON
)
endif
()
message
(
STATUS
"AVANT
${
CMAKE_CXX_COMPILER_ID
}
"
)
if
(
SCALFMM_USE_MPI
)
...
...
Src/GroupTree/Core/FGroupTaskStarpuAlgorithm.hpp
View file @
c8b69a4b
...
...
@@ -161,7 +161,9 @@ public:
struct
starpu_conf
conf
;
FAssertLF
(
starpu_conf_init
(
&
conf
)
==
0
);
#ifdef STARPU_SUPPORT_SCHEDULER
FStarPUFmmPriorities
::
Controller
().
init
(
&
conf
,
tree
->
getHeight
(),
inKernels
);
#endif
FAssertLF
(
starpu_init
(
&
conf
)
==
0
);
starpu_malloc_set_align
(
32
);
...
...
@@ -917,7 +919,9 @@ protected:
starpu_insert_task
(
&
p2m_cl
,
STARPU_VALUE
,
&
wrapperptr
,
sizeof
(
wrapperptr
),
STARPU_VALUE
,
&
cellHandles
[
tree
->
getHeight
()
-
1
][
idxGroup
].
intervalSize
,
sizeof
(
int
),
#ifdef STARPU_SUPPORT_SCHEDULER
STARPU_PRIORITY
,
FStarPUFmmPriorities
::
Controller
().
getInsertionPosP2M
(),
#endif
STARPU_R
,
cellHandles
[
tree
->
getHeight
()
-
1
][
idxGroup
].
symb
,
STARPU_RW
,
cellHandles
[
tree
->
getHeight
()
-
1
][
idxGroup
].
up
,
STARPU_R
,
particleHandles
[
idxGroup
].
symb
,
...
...
@@ -971,8 +975,10 @@ protected:
STARPU_VALUE
,
&
cellHandles
[
idxLevel
][
idxGroup
].
intervalSize
,
sizeof
(
int
),
0
);
task
->
cl_arg
=
arg_buffer
;
task
->
cl_arg_size
=
arg_buffer_size
;
task
->
cl_arg_size
=
arg_buffer_size
;
#ifdef STARPU_SUPPORT_SCHEDULER
task
->
priority
=
FStarPUFmmPriorities
::
Controller
().
getInsertionPosM2M
(
idxLevel
);
#endif
#ifdef STARPU_USE_TASK_NAME
task
->
name
=
m2mTaskNames
[
idxLevel
].
get
();
#endif
...
...
@@ -1004,7 +1010,10 @@ protected:
0
);
task
->
cl_arg
=
arg_buffer
;
task
->
cl_arg_size
=
arg_buffer_size
;
#ifdef STARPU_SUPPORT_SCHEDULER
task
->
priority
=
FStarPUFmmPriorities
::
Controller
().
getInsertionPosM2M
(
idxLevel
);
#endif
#ifdef STARPU_USE_TASK_NAME
task
->
name
=
m2mTaskNames
[
idxLevel
].
get
();
#endif
...
...
@@ -1030,8 +1039,10 @@ protected:
starpu_insert_task
(
&
m2l_cl_in
,
STARPU_VALUE
,
&
wrapperptr
,
sizeof
(
wrapperptr
),
STARPU_VALUE
,
&
idxLevel
,
sizeof
(
idxLevel
),
STARPU_VALUE
,
&
cellHandles
[
idxLevel
][
idxGroup
].
intervalSize
,
sizeof
(
int
),
STARPU_VALUE
,
&
cellHandles
[
idxLevel
][
idxGroup
].
intervalSize
,
sizeof
(
int
),
#ifdef STARPU_SUPPORT_SCHEDULER
STARPU_PRIORITY
,
FStarPUFmmPriorities
::
Controller
().
getInsertionPosM2L
(
idxLevel
),
#endif
STARPU_R
,
cellHandles
[
idxLevel
][
idxGroup
].
symb
,
STARPU_R
,
cellHandles
[
idxLevel
][
idxGroup
].
up
,
(
STARPU_RW
|
STARPU_COMMUTE_IF_SUPPORTED
),
cellHandles
[
idxLevel
][
idxGroup
].
down
,
...
...
@@ -1056,7 +1067,9 @@ protected:
STARPU_VALUE
,
&
outsideInteractions
,
sizeof
(
outsideInteractions
),
STARPU_VALUE
,
&
cellHandles
[
idxLevel
][
idxGroup
].
intervalSize
,
sizeof
(
int
),
STARPU_VALUE
,
&
mode
,
sizeof
(
int
),
#ifdef STARPU_SUPPORT_SCHEDULER
STARPU_PRIORITY
,
FStarPUFmmPriorities
::
Controller
().
getInsertionPosM2LExtern
(
idxLevel
),
#endif
STARPU_R
,
cellHandles
[
idxLevel
][
idxGroup
].
symb
,
(
STARPU_RW
|
STARPU_COMMUTE_IF_SUPPORTED
),
cellHandles
[
idxLevel
][
idxGroup
].
down
,
STARPU_R
,
cellHandles
[
idxLevel
][
interactionid
].
symb
,
...
...
@@ -1073,7 +1086,9 @@ protected:
STARPU_VALUE
,
&
outsideInteractions
,
sizeof
(
outsideInteractions
),
STARPU_VALUE
,
&
cellHandles
[
idxLevel
][
idxGroup
].
intervalSize
,
sizeof
(
int
),
STARPU_VALUE
,
&
mode
,
sizeof
(
int
),
#ifdef STARPU_SUPPORT_SCHEDULER
STARPU_PRIORITY
,
FStarPUFmmPriorities
::
Controller
().
getInsertionPosM2LExtern
(
idxLevel
),
#endif
STARPU_R
,
cellHandles
[
idxLevel
][
interactionid
].
symb
,
(
STARPU_RW
|
STARPU_COMMUTE_IF_SUPPORTED
),
cellHandles
[
idxLevel
][
interactionid
].
down
,
STARPU_R
,
cellHandles
[
idxLevel
][
idxGroup
].
symb
,
...
...
@@ -1137,7 +1152,9 @@ protected:
0
);
task
->
cl_arg
=
arg_buffer
;
task
->
cl_arg_size
=
arg_buffer_size
;
#ifdef STARPU_SUPPORT_SCHEDULER
task
->
priority
=
FStarPUFmmPriorities
::
Controller
().
getInsertionPosL2L
(
idxLevel
);
#endif
#ifdef STARPU_USE_TASK_NAME
task
->
name
=
l2lTaskNames
[
idxLevel
].
get
();
#endif
...
...
@@ -1173,7 +1190,9 @@ protected:
0
);
task
->
cl_arg
=
arg_buffer
;
task
->
cl_arg_size
=
arg_buffer_size
;
#ifdef STARPU_SUPPORT_SCHEDULER
task
->
priority
=
FStarPUFmmPriorities
::
Controller
().
getInsertionPosL2L
(
idxLevel
);
#endif
#ifdef STARPU_USE_TASK_NAME
task
->
name
=
l2lTaskNames
[
idxLevel
].
get
();
#endif
...
...
@@ -1201,7 +1220,9 @@ protected:
STARPU_VALUE
,
&
wrapperptr
,
sizeof
(
wrapperptr
),
STARPU_VALUE
,
&
outsideInteractions
,
sizeof
(
outsideInteractions
),
STARPU_VALUE
,
&
particleHandles
[
idxGroup
].
intervalSize
,
sizeof
(
int
),
#ifdef STARPU_SUPPORT_SCHEDULER
STARPU_PRIORITY
,
FStarPUFmmPriorities
::
Controller
().
getInsertionPosP2PExtern
(),
#endif
STARPU_R
,
particleHandles
[
idxGroup
].
symb
,
#ifdef STARPU_USE_REDUX
STARPU_REDUX
,
particleHandles
[
idxGroup
].
down
,
...
...
@@ -1226,7 +1247,9 @@ protected:
starpu_insert_task
(
&
p2p_cl_in
,
STARPU_VALUE
,
&
wrapperptr
,
sizeof
(
wrapperptr
),
STARPU_VALUE
,
&
particleHandles
[
idxGroup
].
intervalSize
,
sizeof
(
int
),
#ifdef STARPU_SUPPORT_SCHEDULER
STARPU_PRIORITY
,
FStarPUFmmPriorities
::
Controller
().
getInsertionPosP2P
(),
#endif
STARPU_R
,
particleHandles
[
idxGroup
].
symb
,
#ifdef STARPU_USE_REDUX
STARPU_REDUX
,
particleHandles
[
idxGroup
].
down
,
...
...
@@ -1257,7 +1280,9 @@ protected:
starpu_insert_task
(
&
l2p_cl
,
STARPU_VALUE
,
&
wrapperptr
,
sizeof
(
wrapperptr
),
STARPU_VALUE
,
&
cellHandles
[
tree
->
getHeight
()
-
1
][
idxGroup
].
intervalSize
,
sizeof
(
int
),
#ifdef STARPU_SUPPORT_SCHEDULER
STARPU_PRIORITY
,
FStarPUFmmPriorities
::
Controller
().
getInsertionPosL2P
(),
#endif
STARPU_R
,
cellHandles
[
tree
->
getHeight
()
-
1
][
idxGroup
].
symb
,
STARPU_R
,
cellHandles
[
tree
->
getHeight
()
-
1
][
idxGroup
].
down
,
STARPU_R
,
particleHandles
[
idxGroup
].
symb
,
...
...
@@ -1284,7 +1309,9 @@ protected:
for
(
int
idxGroup
=
0
;
idxGroup
<
tree
->
getNbParticleGroup
()
;
++
idxGroup
){
starpu_insert_task
(
&
p2p_redux_read
,
#ifdef STARPU_SUPPORT_SCHEDULER
STARPU_PRIORITY
,
FStarPUFmmPriorities
::
Controller
().
getInsertionPosL2P
(),
#endif
STARPU_R
,
particleHandles
[
idxGroup
].
down
,
#ifdef STARPU_USE_TASK_NAME
STARPU_NAME
,
"read-particle"
,
...
...
Src/GroupTree/Core/FGroupTaskStarpuMpiAlgorithm.hpp
View file @
c8b69a4b
...
...
@@ -175,7 +175,9 @@ public:
struct
starpu_conf
conf
;
FAssertLF
(
starpu_conf_init
(
&
conf
)
==
0
);
#ifdef STARPU_SUPPORT_SCHEDULER
FStarPUFmmPriorities
::
Controller
().
init
(
&
conf
,
tree
->
getHeight
(),
inKernels
);
#endif
FAssertLF
(
starpu_init
(
&
conf
)
==
0
);
FAssertLF
(
starpu_mpi_init
(
0
,
0
,
0
)
==
0
);
...
...
@@ -1524,7 +1526,9 @@ protected:
starpu_insert_task
(
&
p2m_cl
,
STARPU_VALUE
,
&
wrapperptr
,
sizeof
(
wrapperptr
),
STARPU_VALUE
,
&
cellHandles
[
tree
->
getHeight
()
-
1
][
idxGroup
].
intervalSize
,
sizeof
(
int
),
#ifdef STARPU_SUPPORT_SCHEDULER
STARPU_PRIORITY
,
FStarPUFmmPriorities
::
Controller
().
getInsertionPosP2M
(),
#endif
STARPU_R
,
cellHandles
[
tree
->
getHeight
()
-
1
][
idxGroup
].
symb
,
STARPU_RW
,
cellHandles
[
tree
->
getHeight
()
-
1
][
idxGroup
].
up
,
STARPU_R
,
particleHandles
[
idxGroup
].
symb
,
...
...
@@ -1579,7 +1583,9 @@ protected:
0
);
task
->
cl_arg
=
arg_buffer
;
task
->
cl_arg_size
=
arg_buffer_size
;
#ifdef STARPU_SUPPORT_SCHEDULER
task
->
priority
=
FStarPUFmmPriorities
::
Controller
().
getInsertionPosM2M
(
idxLevel
);
#endif
#ifdef STARPU_USE_TASK_NAME
task
->
name
=
m2mTaskNames
[
idxLevel
].
get
();
#endif
...
...
@@ -1611,7 +1617,9 @@ protected:
0
);
task
->
cl_arg
=
arg_buffer
;
task
->
cl_arg_size
=
arg_buffer_size
;
#ifdef STARPU_SUPPORT_SCHEDULER
task
->
priority
=
FStarPUFmmPriorities
::
Controller
().
getInsertionPosM2M
(
idxLevel
);
#endif
#ifdef STARPU_USE_TASK_NAME
task
->
name
=
m2mTaskNames
[
idxLevel
].
get
();
#endif
...
...
@@ -1696,7 +1704,9 @@ protected:
0
);
task
->
cl_arg
=
arg_buffer
;
task
->
cl_arg_size
=
arg_buffer_size
;
#ifdef STARPU_SUPPORT_SCHEDULER
task
->
priority
=
FStarPUFmmPriorities
::
Controller
().
getInsertionPosM2M
(
idxLevel
);
#endif
#ifdef STARPU_USE_TASK_NAME
task
->
name
=
task
->
cl
->
name
;
#endif
...
...
@@ -1762,7 +1772,9 @@ protected:
STARPU_VALUE
,
&
idxLevel
,
sizeof
(
idxLevel
),
STARPU_VALUE
,
&
outsideInteractions
,
sizeof
(
outsideInteractions
),
STARPU_VALUE
,
&
cellHandles
[
idxLevel
][
idxGroup
].
intervalSize
,
sizeof
(
int
),
#ifdef STARPU_SUPPORT_SCHEDULER
STARPU_PRIORITY
,
FStarPUFmmPriorities
::
Controller
().
getInsertionPosM2LMpi
(
idxLevel
),
#endif
STARPU_R
,
cellHandles
[
idxLevel
][
idxGroup
].
symb
,
(
STARPU_RW
|
STARPU_COMMUTE_IF_SUPPORTED
),
cellHandles
[
idxLevel
][
idxGroup
].
down
,
STARPU_R
,
remoteCellGroups
[
idxLevel
][
interactionid
].
handleSymb
,
...
...
@@ -1792,7 +1804,9 @@ protected:
STARPU_VALUE
,
&
wrapperptr
,
sizeof
(
wrapperptr
),
STARPU_VALUE
,
&
idxLevel
,
sizeof
(
idxLevel
),
STARPU_VALUE
,
&
cellHandles
[
idxLevel
][
idxGroup
].
intervalSize
,
sizeof
(
int
),
#ifdef STARPU_SUPPORT_SCHEDULER
STARPU_PRIORITY
,
FStarPUFmmPriorities
::
Controller
().
getInsertionPosM2L
(
idxLevel
),
#endif
STARPU_R
,
cellHandles
[
idxLevel
][
idxGroup
].
symb
,
STARPU_R
,
cellHandles
[
idxLevel
][
idxGroup
].
up
,
(
STARPU_RW
|
STARPU_COMMUTE_IF_SUPPORTED
),
cellHandles
[
idxLevel
][
idxGroup
].
down
,
...
...
@@ -1818,7 +1832,9 @@ protected:
STARPU_VALUE
,
&
outsideInteractions
,
sizeof
(
outsideInteractions
),
STARPU_VALUE
,
&
cellHandles
[
idxLevel
][
idxGroup
].
intervalSize
,
sizeof
(
int
),
STARPU_VALUE
,
&
mode
,
sizeof
(
int
),
#ifdef STARPU_SUPPORT_SCHEDULER
STARPU_PRIORITY
,
FStarPUFmmPriorities
::
Controller
().
getInsertionPosM2LExtern
(
idxLevel
),
#endif
STARPU_R
,
cellHandles
[
idxLevel
][
idxGroup
].
symb
,
(
STARPU_RW
|
STARPU_COMMUTE_IF_SUPPORTED
),
cellHandles
[
idxLevel
][
idxGroup
].
down
,
STARPU_R
,
cellHandles
[
idxLevel
][
interactionid
].
symb
,
...
...
@@ -1835,7 +1851,9 @@ protected:
STARPU_VALUE
,
&
outsideInteractions
,
sizeof
(
outsideInteractions
),
STARPU_VALUE
,
&
cellHandles
[
idxLevel
][
idxGroup
].
intervalSize
,
sizeof
(
int
),
STARPU_VALUE
,
&
mode
,
sizeof
(
int
),
#ifdef STARPU_SUPPORT_SCHEDULER
STARPU_PRIORITY
,
FStarPUFmmPriorities
::
Controller
().
getInsertionPosM2LExtern
(
idxLevel
),
#endif
STARPU_R
,
cellHandles
[
idxLevel
][
interactionid
].
symb
,
(
STARPU_RW
|
STARPU_COMMUTE_IF_SUPPORTED
),
cellHandles
[
idxLevel
][
interactionid
].
down
,
STARPU_R
,
cellHandles
[
idxLevel
][
idxGroup
].
symb
,
...
...
@@ -1988,7 +2006,9 @@ protected:
0
);
task
->
cl_arg
=
arg_buffer
;
task
->
cl_arg_size
=
arg_buffer_size
;
#ifdef STARPU_SUPPORT_SCHEDULER
task
->
priority
=
FStarPUFmmPriorities
::
Controller
().
getInsertionPosL2L
(
idxLevel
);
#endif
#ifdef STARPU_USE_TASK_NAME
task
->
name
=
task
->
cl
->
name
;
#endif
...
...
@@ -2019,7 +2039,9 @@ protected:
0
);
task
->
cl_arg
=
arg_buffer
;
task
->
cl_arg_size
=
arg_buffer_size
;
#ifdef STARPU_SUPPORT_SCHEDULER
task
->
priority
=
FStarPUFmmPriorities
::
Controller
().
getInsertionPosL2L
(
idxLevel
);
#endif
#ifdef STARPU_USE_TASK_NAME
task
->
name
=
task
->
cl
->
name
;
#endif
...
...
@@ -2069,7 +2091,9 @@ protected:
0
);
task
->
cl_arg
=
arg_buffer
;
task
->
cl_arg_size
=
arg_buffer_size
;
#ifdef STARPU_SUPPORT_SCHEDULER
task
->
priority
=
FStarPUFmmPriorities
::
Controller
().
getInsertionPosL2L
(
idxLevel
);
#endif
#ifdef STARPU_USE_TASK_NAME
task
->
name
=
l2lTaskNames
[
idxLevel
].
get
();
#endif
...
...
@@ -2100,7 +2124,9 @@ protected:
0
);
task
->
cl_arg
=
arg_buffer
;
task
->
cl_arg_size
=
arg_buffer_size
;
#ifdef STARPU_SUPPORT_SCHEDULER
task
->
priority
=
FStarPUFmmPriorities
::
Controller
().
getInsertionPosL2L
(
idxLevel
);
#endif
#ifdef STARPU_USE_TASK_NAME
task
->
name
=
l2lTaskNames
[
idxLevel
].
get
();
#endif
...
...
@@ -2125,7 +2151,9 @@ protected:
STARPU_VALUE
,
&
wrapperptr
,
sizeof
(
wrapperptr
),
STARPU_VALUE
,
&
outsideInteractions
,
sizeof
(
outsideInteractions
),
STARPU_VALUE
,
&
particleHandles
[
idxGroup
].
intervalSize
,
sizeof
(
int
),
#ifdef STARPU_SUPPORT_SCHEDULER
STARPU_PRIORITY
,
FStarPUFmmPriorities
::
Controller
().
getInsertionPosP2PMpi
(),
#endif
STARPU_R
,
particleHandles
[
idxGroup
].
symb
,
(
STARPU_RW
|
STARPU_COMMUTE_IF_SUPPORTED
),
particleHandles
[
idxGroup
].
down
,
STARPU_R
,
remoteParticleGroupss
[
interactionid
].
handleSymb
,
...
...
@@ -2156,7 +2184,9 @@ protected:
STARPU_VALUE
,
&
wrapperptr
,
sizeof
(
wrapperptr
),
STARPU_VALUE
,
&
outsideInteractions
,
sizeof
(
outsideInteractions
),
STARPU_VALUE
,
&
particleHandles
[
idxGroup
].
intervalSize
,
sizeof
(
int
),
#ifdef STARPU_SUPPORT_SCHEDULER
STARPU_PRIORITY
,
FStarPUFmmPriorities
::
Controller
().
getInsertionPosP2PExtern
(),
#endif
STARPU_R
,
particleHandles
[
idxGroup
].
symb
,
#ifdef STARPU_USE_REDUX
STARPU_REDUX
,
particleHandles
[
idxGroup
].
down
,
...
...
@@ -2181,7 +2211,9 @@ protected:
starpu_insert_task
(
&
p2p_cl_in
,
STARPU_VALUE
,
&
wrapperptr
,
sizeof
(
wrapperptr
),
STARPU_VALUE
,
&
particleHandles
[
idxGroup
].
intervalSize
,
sizeof
(
int
),
#ifdef STARPU_SUPPORT_SCHEDULER
STARPU_PRIORITY
,
FStarPUFmmPriorities
::
Controller
().
getInsertionPosP2P
(),
#endif
STARPU_R
,
particleHandles
[
idxGroup
].
symb
,
#ifdef STARPU_USE_REDUX
STARPU_REDUX
,
particleHandles
[
idxGroup
].
down
,
...
...
@@ -2210,7 +2242,9 @@ protected:
starpu_insert_task
(
&
l2p_cl
,
STARPU_VALUE
,
&
wrapperptr
,
sizeof
(
wrapperptr
),
STARPU_VALUE
,
&
cellHandles
[
tree
->
getHeight
()
-
1
][
idxGroup
].
intervalSize
,
sizeof
(
int
),
#ifdef STARPU_SUPPORT_SCHEDULER
STARPU_PRIORITY
,
FStarPUFmmPriorities
::
Controller
().
getInsertionPosL2P
(),
#endif
STARPU_R
,
cellHandles
[
tree
->
getHeight
()
-
1
][
idxGroup
].
symb
,
STARPU_R
,
cellHandles
[
tree
->
getHeight
()
-
1
][
idxGroup
].
down
,
STARPU_R
,
particleHandles
[
idxGroup
].
symb
,
...
...
@@ -2237,7 +2271,9 @@ protected:
for
(
int
idxGroup
=
0
;
idxGroup
<
tree
->
getNbParticleGroup
()
;
++
idxGroup
){
starpu_insert_task
(
&
p2p_redux_read
,
#ifdef STARPU_SUPPORT_SCHEDULER
STARPU_PRIORITY
,
FStarPUFmmPriorities
::
Controller
().
getInsertionPosL2P
(),
#endif
STARPU_R
,
particleHandles
[
idxGroup
].
down
,
#ifdef STARPU_USE_TASK_NAME
STARPU_NAME
,
"read-particle"
,
...
...
Src/GroupTree/StarPUUtils/FStarPUUtils.hpp
View file @
c8b69a4b
...
...
@@ -12,9 +12,8 @@
/////////////////////////////////////////////////////
#if (STARPU_MAJOR_VERSION >= 1) && (STARPU_MINOR_VERSION >= 3)
#if (STARPU_MAJOR_VERSION >= 1) && (STARPU_MINOR_VERSION >= 3)
&& defined(SCALFMM_STARPU_USE_COMMUTE)
#define STARPU_SUPPORT_COMMUTE
#define STARPU_SUPPORT_SCHEDULER
#else
#warning StarPU Commute is not supported
#endif
...
...
@@ -25,10 +24,23 @@
#warning StarPU Arbiter is not supported
#endif
#if (STARPU_MAJOR_VERSION >= 1) && (STARPU_MINOR_VERSION >= 3) && defined(SCALFMM_STARPU_USE_PRIO)
#define STARPU_SUPPORT_SCHEDULER
#else
#warning Scheduler is not supported
#endif
#if (STARPU_MAJOR_VERSION >= 1) && (STARPU_MINOR_VERSION >= 3)
#define STARPU_USE_TASK_NAME
#endif
#ifdef SCALFMM_STARPU_USE_REDUX
#define STARPU_USE_REDUX
#else
#warning Redux is not supported
#endif
/////////////////////////////////////////////////////
#if defined(STARPU_USE_CUDA) && defined(SCALFMM_USE_CUDA)
...
...
@@ -63,9 +75,6 @@
#endif
#endif
/////////////////////////////////////////////////////
#define STARPU_USE_REDUX
/////////////////////////////////////////////////////
...
...
Src/ScalFmmConfig.h.cmake
View file @
c8b69a4b
...
...
@@ -137,4 +137,12 @@ const std::string SCALFMMCompileLibs("@SCALFMM_COMPILE_LIBS@");
#cmakedefine SCALFMM_TIME_OMPTASKS
///////////////////////////////////////////////////////
// To control starpu config
///////////////////////////////////////////////////////
#cmakedefine SCALFMM_STARPU_USE_COMMUTE
#cmakedefine SCALFMM_STARPU_USE_REDUX
#cmakedefine SCALFMM_STARPU_USE_PRIO
#endif // CONFIG_H
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment