Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
specx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
BRAMAS Berenger
specx
Commits
7ccd29b0
Commit
7ccd29b0
authored
4 weeks ago
by
BRAMAS Berenger
Browse files
Options
Downloads
Patches
Plain Diff
Add arbiter in starpu
parent
962480ef
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Benchmark/particles_starpu/particles-simu-starpu.cpp
+4
-0
4 additions, 0 deletions
Benchmark/particles_starpu/particles-simu-starpu.cpp
with
4 additions
and
0 deletions
Benchmark/particles_starpu/particles-simu-starpu.cpp
+
4
−
0
View file @
7ccd29b0
...
...
@@ -552,11 +552,14 @@ auto BenchCore( const int NbLoops, const int MinPartsPerGroup, const int MaxPart
for
(
int
idxLoop
=
0
;
idxLoop
<
NbLoops
;
++
idxLoop
){
starpu_init
(
NULL
);
starpu_arbiter_t
arbiter
=
starpu_arbiter_create
();
std
::
vector
<
starpu_data_handle_t
>
handles
;
for
(
auto
&
group
:
particleGroups
){
starpu_data_handle_t
handle
;
starpu_vector_data_register
(
&
handle
,
0
,
reinterpret_cast
<
uintptr_t
>
(
group
.
getRawPtr
()),
ParticlesGroup
::
NB_VALUE_TYPES
*
group
.
getNbParticles
(),
sizeof
(
double
));
starpu_data_assign_arbiter
(
handle
,
arbiter
);
handles
.
push_back
(
handle
);
}
...
...
@@ -587,6 +590,7 @@ auto BenchCore( const int NbLoops, const int MinPartsPerGroup, const int MaxPart
starpu_data_unregister
(
handle
);
}
starpu_arbiter_destroy
(
arbiter
);
starpu_shutdown
();
minMaxAvg
[
0
]
=
std
::
min
(
minMaxAvg
[
0
],
timer
.
getElapsed
());
...
...
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