Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Jayesh Badwaik
VTK-m
Commits
63fe0f09
Commit
63fe0f09
authored
May 15, 2019
by
Robert Maynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DispatcherReduceByKey uses the scheduling_range like all other dispatchers
parent
bd626dac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
vtkm/worklet/DispatcherReduceByKey.h
vtkm/worklet/DispatcherReduceByKey.h
+2
-2
vtkm/worklet/internal/DispatcherBase.h
vtkm/worklet/internal/DispatcherBase.h
+16
-0
No files found.
vtkm/worklet/DispatcherReduceByKey.h
View file @
63fe0f09
...
...
@@ -59,8 +59,8 @@ public:
const
InputDomainType
&
inputDomain
=
invocation
.
GetInputDomain
();
// Now that we have the input domain, we can extract the range of the
// scheduling and call Ba
d
icInvoke.
this
->
BasicInvoke
(
invocation
,
in
putDomain
.
GetInputRange
(
));
// scheduling and call Ba
s
icInvoke.
this
->
BasicInvoke
(
invocation
,
in
ternal
::
scheduling_range
(
inputDomain
));
}
};
}
...
...
vtkm/worklet/internal/DispatcherBase.h
View file @
63fe0f09
...
...
@@ -48,6 +48,8 @@ namespace vtkm
{
namespace
worklet
{
template
<
typename
T
>
class
VTKM_ALWAYS_EXPORT
Keys
;
namespace
internal
{
...
...
@@ -57,6 +59,13 @@ inline auto scheduling_range(const Domain& inputDomain) -> decltype(inputDomain.
return
inputDomain
.
GetNumberOfValues
();
}
template
<
typename
KeyType
>
inline
auto
scheduling_range
(
const
vtkm
::
worklet
::
Keys
<
KeyType
>&
inputDomain
)
->
decltype
(
inputDomain
.
GetInputRange
())
{
return
inputDomain
.
GetInputRange
();
}
template
<
typename
Domain
>
inline
auto
scheduling_range
(
const
Domain
*
const
inputDomain
)
->
decltype
(
inputDomain
->
GetNumberOfValues
())
...
...
@@ -64,6 +73,13 @@ inline auto scheduling_range(const Domain* const inputDomain)
return
inputDomain
->
GetNumberOfValues
();
}
template
<
typename
KeyType
>
inline
auto
scheduling_range
(
const
vtkm
::
worklet
::
Keys
<
KeyType
>*
const
inputDomain
)
->
decltype
(
inputDomain
->
GetInputRange
())
{
return
inputDomain
->
GetInputRange
();
}
template
<
typename
Domain
,
typename
SchedulingRangeType
>
inline
auto
scheduling_range
(
const
Domain
&
inputDomain
,
SchedulingRangeType
type
)
->
decltype
(
inputDomain
.
GetSchedulingRange
(
type
))
...
...
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