Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
loadbalancing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SLMS
loadbalancing
Commits
6a7a6385
Unverified
Commit
6a7a6385
authored
Jun 5, 2019
by
Steffen Seckler
Browse files
Options
Downloads
Patches
Plain Diff
get
parent
35fd1f03
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!5
introduce ALL_LB interface
Pipeline
#21186
failed
Jun 5, 2019
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/ALL.hpp
+8
-8
8 additions, 8 deletions
include/ALL.hpp
with
8 additions
and
8 deletions
include/ALL.hpp
+
8
−
8
View file @
6a7a6385
...
@@ -437,25 +437,25 @@ template <class T, class W> void ALL<T,W>::setup(ALL_LB_t method)
...
@@ -437,25 +437,25 @@ template <class T, class W> void ALL<T,W>::setup(ALL_LB_t method)
{
{
case
ALL_LB_t
::
TENSOR
:
case
ALL_LB_t
::
TENSOR
:
balancer
.
reset
(
new
ALL_Tensor_LB
<
T
,
W
>
(
dimension
,
work_array
->
at
(
0
),
gamma
));
balancer
.
reset
(
new
ALL_Tensor_LB
<
T
,
W
>
(
dimension
,
work_array
->
at
(
0
),
gamma
));
((
ALL_Tensor_LB
<
T
,
W
>
&
)
*
balancer
)
.
set_vertices
(
outline
->
data
());
((
ALL_Tensor_LB
<
T
,
W
>*
)
balancer
.
get
())
->
set_vertices
(
outline
->
data
());
break
;
break
;
case
ALL_LB_t
::
STAGGERED
:
case
ALL_LB_t
::
STAGGERED
:
balancer
.
reset
(
new
ALL_Staggered_LB
<
T
,
W
>
(
dimension
,
work_array
->
at
(
0
),
gamma
));
balancer
.
reset
(
new
ALL_Staggered_LB
<
T
,
W
>
(
dimension
,
work_array
->
at
(
0
),
gamma
));
((
ALL_Staggered_LB
<
T
,
W
>
&
)
*
balancer
)
.
set_vertices
(
outline
->
data
());
((
ALL_Staggered_LB
<
T
,
W
>*
)
balancer
.
get
())
->
set_vertices
(
outline
->
data
());
break
;
break
;
case
ALL_LB_t
::
UNSTRUCTURED
:
case
ALL_LB_t
::
UNSTRUCTURED
:
balancer
.
reset
(
new
ALL_Unstructured_LB
<
T
,
W
>
(
dimension
,
work_array
->
at
(
0
),
gamma
));
balancer
.
reset
(
new
ALL_Unstructured_LB
<
T
,
W
>
(
dimension
,
work_array
->
at
(
0
),
gamma
));
((
ALL_Unstructured_LB
<
T
,
W
>
&
)
*
balancer
)
.
set_vertices
(
vertices
);
((
ALL_Unstructured_LB
<
T
,
W
>*
)
balancer
.
get
())
->
set_vertices
(
vertices
);
break
;
break
;
case
ALL_LB_t
::
VORONOI
:
case
ALL_LB_t
::
VORONOI
:
#ifdef ALL_VORONOI
#ifdef ALL_VORONOI
balancer
.
reset
(
new
ALL_Voronoi_LB
<
T
,
W
>
(
dimension
,
work_array
->
at
(
0
),
gamma
));
balancer
.
reset
(
new
ALL_Voronoi_LB
<
T
,
W
>
(
dimension
,
work_array
->
at
(
0
),
gamma
));
((
ALL_Voronoi_LB
<
T
,
W
>
&
)
*
balancer
)
.
set_vertices
(
vertices
);
((
ALL_Voronoi_LB
<
T
,
W
>*
)
balancer
.
get
())
->
set_vertices
(
vertices
);
#endif
#endif
break
;
break
;
case
ALL_LB_t
::
HISTOGRAM
:
case
ALL_LB_t
::
HISTOGRAM
:
balancer
.
reset
(
new
ALL_Histogram_LB
<
T
,
W
>
(
dimension
,
work_array
,
gamma
));
balancer
.
reset
(
new
ALL_Histogram_LB
<
T
,
W
>
(
dimension
,
work_array
,
gamma
));
((
ALL_Histogram_LB
<
T
,
W
>
&
)
*
balancer
)
.
set_vertices
(
outline
->
data
());
((
ALL_Histogram_LB
<
T
,
W
>*
)
balancer
.
get
())
->
set_vertices
(
outline
->
data
());
break
;
break
;
default:
default:
throw
ALL_Invalid_Argument_Exception
(
throw
ALL_Invalid_Argument_Exception
(
...
@@ -758,11 +758,11 @@ template <class T, class W> void ALL<T,W>::set_sys_size(ALL_LB_t method, std::ve
...
@@ -758,11 +758,11 @@ template <class T, class W> void ALL<T,W>::set_sys_size(ALL_LB_t method, std::ve
break
;
break
;
case
ALL_LB_t
::
VORONOI
:
case
ALL_LB_t
::
VORONOI
:
#ifdef ALL_VORONOI
#ifdef ALL_VORONOI
((
ALL_Voronoi_LB
<
T
,
W
>*
)
balancer
)
->
set_sys_size
(
s_size
);
((
ALL_Voronoi_LB
<
T
,
W
>*
)
balancer
.
get
()
)
->
set_sys_size
(
s_size
);
#endif
#endif
break
;
break
;
case
ALL_LB_t
::
HISTOGRAM
:
case
ALL_LB_t
::
HISTOGRAM
:
((
ALL_Histogram_LB
<
T
,
W
>*
)
balancer
)
->
set_sys_size
(
s_size
);
((
ALL_Histogram_LB
<
T
,
W
>*
)
balancer
.
get
()
)
->
set_sys_size
(
s_size
);
break
;
break
;
default:
default:
throw
ALL_Invalid_Argument_Exception
(
throw
ALL_Invalid_Argument_Exception
(
...
@@ -790,7 +790,7 @@ template <class T, class W> void ALL<T,W>::set_method_data(ALL_LB_t method, void
...
@@ -790,7 +790,7 @@ template <class T, class W> void ALL<T,W>::set_method_data(ALL_LB_t method, void
break
;
break
;
#endif
#endif
case
ALL_LB_t
::
HISTOGRAM
:
case
ALL_LB_t
::
HISTOGRAM
:
((
ALL_Histogram_LB
<
T
,
W
>*
)
balancer
)
->
set_data
(
data
);
((
ALL_Histogram_LB
<
T
,
W
>*
)
balancer
.
get
()
)
->
set_data
(
data
);
break
;
break
;
}
}
}
}
...
...
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
sign in
to comment