vtk-m2/vtkm/exec/internal/WorkletInvokeFunctorDetail.h
Matthew Letter d9c51d650d increased the number of arguments to worklets
increase the number of arguments to worklets that we support to 10 from 20.
2018-01-04 12:06:16 -07:00

6393 lines
287 KiB
C++

//============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE. See the above copyright notice for more information.
//
// Copyright 2014 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
// Copyright 2014 UT-Battelle, LLC.
// Copyright 2014 Los Alamos National Security.
//
// Under the terms of Contract DE-NA0003525 with NTESS,
// the U.S. Government retains certain rights in this software.
//
// Under the terms of Contract DE-AC52-06NA25396 with Los Alamos National
// Laboratory (LANL), the U.S. Government retains certain rights in
// this software.
//============================================================================
// **** DO NOT EDIT THIS FILE!!! ****
// This file is automatically generated by WorkletInvokeFunctorDetail.h.in
// Technically speaking, we can implement this functionality with some clever
// use of FunctionInterface rather than using pyexpander to make variadic
// code. However, this code is probably more friendly to compilers. I expect
// it to compiler faster and optimize better.
#ifndef vtk_m_exec_internal_WorkletInvokeFunctorDetail_h
#define vtk_m_exec_internal_WorkletInvokeFunctorDetail_h
#if !defined(vtk_m_exec_internal_TaskSingular_h) && !defined(vtk_m_exec_internal_TaskTiling_h) && \
!defined(VTKM_TEST_HEADER_BUILD)
#error WorkletInvokeFunctorDetail.h must be included from TaskSingular.h or TaskTiling.h
#endif
#include <vtkm/internal/FunctionInterface.h>
#include <vtkm/internal/Invocation.h>
#include <vtkm/exec/arg/Fetch.h>
#if VTKM_MAX_FUNCTION_PARAMETERS != 20
#error Mismatch of maximum parameters between FunctionInterfaceDatailPre.h.in and WorkletInvokeFunctorDetail.h.in
#endif
namespace vtkm
{
namespace exec
{
namespace internal
{
namespace detail
{
/// A helper class that takes an \c Invocation object and an index to a
/// parameter in the ExecutionSignature and finds the \c Fetch type valid for
/// that parameter.
template <typename ThreadIndicesType,
typename Invocation,
vtkm::IdComponent ExecutionParameterIndex>
struct InvocationToFetch
{
using ExecutionSignatureTag =
typename Invocation::ExecutionInterface::template ParameterType<ExecutionParameterIndex>::type;
// Expected fields from ExecutionSignatureTag. If these do not exist in
// ExecutionSignatureTag, then something that is not really an execution
// signature tag was used in an ExecutionSignature.
static const vtkm::IdComponent ControlParameterIndex = ExecutionSignatureTag::INDEX;
using AspectTag = typename ExecutionSignatureTag::AspectTag;
// Find the fetch tag from the control signature tag pointed to by
// ParameterIndex.
using ControlInterface = typename Invocation::ControlInterface;
using ControlSignatureTag = typename ControlInterface::template ParameterType<ControlParameterIndex>::type;
using FetchTag = typename ControlSignatureTag::FetchTag;
using ExecObjectType =
typename Invocation::ParameterInterface::template ParameterType<ControlParameterIndex>::type;
using type = vtkm::exec::arg::Fetch<FetchTag, AspectTag, ThreadIndicesType, ExecObjectType>;
};
// clang-format off
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1,
typename P2>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1, p2));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1,
typename P2>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1, p2);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1,
typename P2,
typename P3>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1, p2, p3));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1,
typename P2,
typename P3>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1, p2, p3);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1,
typename P2,
typename P3,
typename P4>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1, p2, p3, p4));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1,
typename P2,
typename P3,
typename P4>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1, p2, p3, p4);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1, p2, p3, p4, p5));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1, p2, p3, p4, p5);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1, p2, p3, p4, p5, p6));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1, p2, p3, p4, p5, p6);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1, p2, p3, p4, p5, p6, p7));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1, p2, p3, p4, p5, p6, p7);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1, p2, p3, p4, p5, p6, p7, p8));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1, p2, p3, p4, p5, p6, p7, p8);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11,
typename P12>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
using FetchInfo12 = InvocationToFetch<ThreadIndicesType, Invocation, 12>;
using FetchType12 = typename FetchInfo12::type;
FetchType12 fetch12;
typename FetchType12::ValueType p12 =
fetch12.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
fetch12.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>(),
p12);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11,
typename P12>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
using FetchInfo12 = InvocationToFetch<ThreadIndicesType, Invocation, 12>;
using FetchType12 = typename FetchInfo12::type;
FetchType12 fetch12;
typename FetchType12::ValueType p12 =
fetch12.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
fetch12.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>(),
p12);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11,
typename P12,
typename P13>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
using FetchInfo12 = InvocationToFetch<ThreadIndicesType, Invocation, 12>;
using FetchType12 = typename FetchInfo12::type;
FetchType12 fetch12;
typename FetchType12::ValueType p12 =
fetch12.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>());
using FetchInfo13 = InvocationToFetch<ThreadIndicesType, Invocation, 13>;
using FetchType13 = typename FetchInfo13::type;
FetchType13 fetch13;
typename FetchType13::ValueType p13 =
fetch13.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
fetch12.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>(),
p12);
fetch13.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>(),
p13);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11,
typename P12,
typename P13>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
using FetchInfo12 = InvocationToFetch<ThreadIndicesType, Invocation, 12>;
using FetchType12 = typename FetchInfo12::type;
FetchType12 fetch12;
typename FetchType12::ValueType p12 =
fetch12.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>());
using FetchInfo13 = InvocationToFetch<ThreadIndicesType, Invocation, 13>;
using FetchType13 = typename FetchInfo13::type;
FetchType13 fetch13;
typename FetchType13::ValueType p13 =
fetch13.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
fetch12.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>(),
p12);
fetch13.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>(),
p13);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11,
typename P12,
typename P13,
typename P14>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
using FetchInfo12 = InvocationToFetch<ThreadIndicesType, Invocation, 12>;
using FetchType12 = typename FetchInfo12::type;
FetchType12 fetch12;
typename FetchType12::ValueType p12 =
fetch12.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>());
using FetchInfo13 = InvocationToFetch<ThreadIndicesType, Invocation, 13>;
using FetchType13 = typename FetchInfo13::type;
FetchType13 fetch13;
typename FetchType13::ValueType p13 =
fetch13.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>());
using FetchInfo14 = InvocationToFetch<ThreadIndicesType, Invocation, 14>;
using FetchType14 = typename FetchInfo14::type;
FetchType14 fetch14;
typename FetchType14::ValueType p14 =
fetch14.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
fetch12.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>(),
p12);
fetch13.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>(),
p13);
fetch14.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>(),
p14);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11,
typename P12,
typename P13,
typename P14>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
using FetchInfo12 = InvocationToFetch<ThreadIndicesType, Invocation, 12>;
using FetchType12 = typename FetchInfo12::type;
FetchType12 fetch12;
typename FetchType12::ValueType p12 =
fetch12.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>());
using FetchInfo13 = InvocationToFetch<ThreadIndicesType, Invocation, 13>;
using FetchType13 = typename FetchInfo13::type;
FetchType13 fetch13;
typename FetchType13::ValueType p13 =
fetch13.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>());
using FetchInfo14 = InvocationToFetch<ThreadIndicesType, Invocation, 14>;
using FetchType14 = typename FetchInfo14::type;
FetchType14 fetch14;
typename FetchType14::ValueType p14 =
fetch14.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
fetch12.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>(),
p12);
fetch13.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>(),
p13);
fetch14.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>(),
p14);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11,
typename P12,
typename P13,
typename P14,
typename P15>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
using FetchInfo12 = InvocationToFetch<ThreadIndicesType, Invocation, 12>;
using FetchType12 = typename FetchInfo12::type;
FetchType12 fetch12;
typename FetchType12::ValueType p12 =
fetch12.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>());
using FetchInfo13 = InvocationToFetch<ThreadIndicesType, Invocation, 13>;
using FetchType13 = typename FetchInfo13::type;
FetchType13 fetch13;
typename FetchType13::ValueType p13 =
fetch13.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>());
using FetchInfo14 = InvocationToFetch<ThreadIndicesType, Invocation, 14>;
using FetchType14 = typename FetchInfo14::type;
FetchType14 fetch14;
typename FetchType14::ValueType p14 =
fetch14.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>());
using FetchInfo15 = InvocationToFetch<ThreadIndicesType, Invocation, 15>;
using FetchType15 = typename FetchInfo15::type;
FetchType15 fetch15;
typename FetchType15::ValueType p15 =
fetch15.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
fetch12.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>(),
p12);
fetch13.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>(),
p13);
fetch14.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>(),
p14);
fetch15.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>(),
p15);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11,
typename P12,
typename P13,
typename P14,
typename P15>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
using FetchInfo12 = InvocationToFetch<ThreadIndicesType, Invocation, 12>;
using FetchType12 = typename FetchInfo12::type;
FetchType12 fetch12;
typename FetchType12::ValueType p12 =
fetch12.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>());
using FetchInfo13 = InvocationToFetch<ThreadIndicesType, Invocation, 13>;
using FetchType13 = typename FetchInfo13::type;
FetchType13 fetch13;
typename FetchType13::ValueType p13 =
fetch13.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>());
using FetchInfo14 = InvocationToFetch<ThreadIndicesType, Invocation, 14>;
using FetchType14 = typename FetchInfo14::type;
FetchType14 fetch14;
typename FetchType14::ValueType p14 =
fetch14.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>());
using FetchInfo15 = InvocationToFetch<ThreadIndicesType, Invocation, 15>;
using FetchType15 = typename FetchInfo15::type;
FetchType15 fetch15;
typename FetchType15::ValueType p15 =
fetch15.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
fetch12.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>(),
p12);
fetch13.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>(),
p13);
fetch14.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>(),
p14);
fetch15.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>(),
p15);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11,
typename P12,
typename P13,
typename P14,
typename P15,
typename P16>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
using FetchInfo12 = InvocationToFetch<ThreadIndicesType, Invocation, 12>;
using FetchType12 = typename FetchInfo12::type;
FetchType12 fetch12;
typename FetchType12::ValueType p12 =
fetch12.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>());
using FetchInfo13 = InvocationToFetch<ThreadIndicesType, Invocation, 13>;
using FetchType13 = typename FetchInfo13::type;
FetchType13 fetch13;
typename FetchType13::ValueType p13 =
fetch13.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>());
using FetchInfo14 = InvocationToFetch<ThreadIndicesType, Invocation, 14>;
using FetchType14 = typename FetchInfo14::type;
FetchType14 fetch14;
typename FetchType14::ValueType p14 =
fetch14.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>());
using FetchInfo15 = InvocationToFetch<ThreadIndicesType, Invocation, 15>;
using FetchType15 = typename FetchInfo15::type;
FetchType15 fetch15;
typename FetchType15::ValueType p15 =
fetch15.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>());
using FetchInfo16 = InvocationToFetch<ThreadIndicesType, Invocation, 16>;
using FetchType16 = typename FetchInfo16::type;
FetchType16 fetch16;
typename FetchType16::ValueType p16 =
fetch16.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
fetch12.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>(),
p12);
fetch13.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>(),
p13);
fetch14.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>(),
p14);
fetch15.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>(),
p15);
fetch16.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>(),
p16);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11,
typename P12,
typename P13,
typename P14,
typename P15,
typename P16>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
using FetchInfo12 = InvocationToFetch<ThreadIndicesType, Invocation, 12>;
using FetchType12 = typename FetchInfo12::type;
FetchType12 fetch12;
typename FetchType12::ValueType p12 =
fetch12.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>());
using FetchInfo13 = InvocationToFetch<ThreadIndicesType, Invocation, 13>;
using FetchType13 = typename FetchInfo13::type;
FetchType13 fetch13;
typename FetchType13::ValueType p13 =
fetch13.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>());
using FetchInfo14 = InvocationToFetch<ThreadIndicesType, Invocation, 14>;
using FetchType14 = typename FetchInfo14::type;
FetchType14 fetch14;
typename FetchType14::ValueType p14 =
fetch14.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>());
using FetchInfo15 = InvocationToFetch<ThreadIndicesType, Invocation, 15>;
using FetchType15 = typename FetchInfo15::type;
FetchType15 fetch15;
typename FetchType15::ValueType p15 =
fetch15.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>());
using FetchInfo16 = InvocationToFetch<ThreadIndicesType, Invocation, 16>;
using FetchType16 = typename FetchInfo16::type;
FetchType16 fetch16;
typename FetchType16::ValueType p16 =
fetch16.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
fetch12.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>(),
p12);
fetch13.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>(),
p13);
fetch14.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>(),
p14);
fetch15.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>(),
p15);
fetch16.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>(),
p16);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11,
typename P12,
typename P13,
typename P14,
typename P15,
typename P16,
typename P17>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
using FetchInfo12 = InvocationToFetch<ThreadIndicesType, Invocation, 12>;
using FetchType12 = typename FetchInfo12::type;
FetchType12 fetch12;
typename FetchType12::ValueType p12 =
fetch12.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>());
using FetchInfo13 = InvocationToFetch<ThreadIndicesType, Invocation, 13>;
using FetchType13 = typename FetchInfo13::type;
FetchType13 fetch13;
typename FetchType13::ValueType p13 =
fetch13.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>());
using FetchInfo14 = InvocationToFetch<ThreadIndicesType, Invocation, 14>;
using FetchType14 = typename FetchInfo14::type;
FetchType14 fetch14;
typename FetchType14::ValueType p14 =
fetch14.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>());
using FetchInfo15 = InvocationToFetch<ThreadIndicesType, Invocation, 15>;
using FetchType15 = typename FetchInfo15::type;
FetchType15 fetch15;
typename FetchType15::ValueType p15 =
fetch15.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>());
using FetchInfo16 = InvocationToFetch<ThreadIndicesType, Invocation, 16>;
using FetchType16 = typename FetchInfo16::type;
FetchType16 fetch16;
typename FetchType16::ValueType p16 =
fetch16.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>());
using FetchInfo17 = InvocationToFetch<ThreadIndicesType, Invocation, 17>;
using FetchType17 = typename FetchInfo17::type;
FetchType17 fetch17;
typename FetchType17::ValueType p17 =
fetch17.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo17::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
fetch12.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>(),
p12);
fetch13.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>(),
p13);
fetch14.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>(),
p14);
fetch15.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>(),
p15);
fetch16.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>(),
p16);
fetch17.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo17::ControlParameterIndex>(),
p17);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11,
typename P12,
typename P13,
typename P14,
typename P15,
typename P16,
typename P17>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
using FetchInfo12 = InvocationToFetch<ThreadIndicesType, Invocation, 12>;
using FetchType12 = typename FetchInfo12::type;
FetchType12 fetch12;
typename FetchType12::ValueType p12 =
fetch12.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>());
using FetchInfo13 = InvocationToFetch<ThreadIndicesType, Invocation, 13>;
using FetchType13 = typename FetchInfo13::type;
FetchType13 fetch13;
typename FetchType13::ValueType p13 =
fetch13.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>());
using FetchInfo14 = InvocationToFetch<ThreadIndicesType, Invocation, 14>;
using FetchType14 = typename FetchInfo14::type;
FetchType14 fetch14;
typename FetchType14::ValueType p14 =
fetch14.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>());
using FetchInfo15 = InvocationToFetch<ThreadIndicesType, Invocation, 15>;
using FetchType15 = typename FetchInfo15::type;
FetchType15 fetch15;
typename FetchType15::ValueType p15 =
fetch15.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>());
using FetchInfo16 = InvocationToFetch<ThreadIndicesType, Invocation, 16>;
using FetchType16 = typename FetchInfo16::type;
FetchType16 fetch16;
typename FetchType16::ValueType p16 =
fetch16.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>());
using FetchInfo17 = InvocationToFetch<ThreadIndicesType, Invocation, 17>;
using FetchType17 = typename FetchInfo17::type;
FetchType17 fetch17;
typename FetchType17::ValueType p17 =
fetch17.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo17::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
fetch12.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>(),
p12);
fetch13.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>(),
p13);
fetch14.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>(),
p14);
fetch15.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>(),
p15);
fetch16.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>(),
p16);
fetch17.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo17::ControlParameterIndex>(),
p17);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11,
typename P12,
typename P13,
typename P14,
typename P15,
typename P16,
typename P17,
typename P18>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
using FetchInfo12 = InvocationToFetch<ThreadIndicesType, Invocation, 12>;
using FetchType12 = typename FetchInfo12::type;
FetchType12 fetch12;
typename FetchType12::ValueType p12 =
fetch12.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>());
using FetchInfo13 = InvocationToFetch<ThreadIndicesType, Invocation, 13>;
using FetchType13 = typename FetchInfo13::type;
FetchType13 fetch13;
typename FetchType13::ValueType p13 =
fetch13.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>());
using FetchInfo14 = InvocationToFetch<ThreadIndicesType, Invocation, 14>;
using FetchType14 = typename FetchInfo14::type;
FetchType14 fetch14;
typename FetchType14::ValueType p14 =
fetch14.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>());
using FetchInfo15 = InvocationToFetch<ThreadIndicesType, Invocation, 15>;
using FetchType15 = typename FetchInfo15::type;
FetchType15 fetch15;
typename FetchType15::ValueType p15 =
fetch15.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>());
using FetchInfo16 = InvocationToFetch<ThreadIndicesType, Invocation, 16>;
using FetchType16 = typename FetchInfo16::type;
FetchType16 fetch16;
typename FetchType16::ValueType p16 =
fetch16.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>());
using FetchInfo17 = InvocationToFetch<ThreadIndicesType, Invocation, 17>;
using FetchType17 = typename FetchInfo17::type;
FetchType17 fetch17;
typename FetchType17::ValueType p17 =
fetch17.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo17::ControlParameterIndex>());
using FetchInfo18 = InvocationToFetch<ThreadIndicesType, Invocation, 18>;
using FetchType18 = typename FetchInfo18::type;
FetchType18 fetch18;
typename FetchType18::ValueType p18 =
fetch18.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo18::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
fetch12.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>(),
p12);
fetch13.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>(),
p13);
fetch14.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>(),
p14);
fetch15.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>(),
p15);
fetch16.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>(),
p16);
fetch17.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo17::ControlParameterIndex>(),
p17);
fetch18.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo18::ControlParameterIndex>(),
p18);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11,
typename P12,
typename P13,
typename P14,
typename P15,
typename P16,
typename P17,
typename P18>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
using FetchInfo12 = InvocationToFetch<ThreadIndicesType, Invocation, 12>;
using FetchType12 = typename FetchInfo12::type;
FetchType12 fetch12;
typename FetchType12::ValueType p12 =
fetch12.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>());
using FetchInfo13 = InvocationToFetch<ThreadIndicesType, Invocation, 13>;
using FetchType13 = typename FetchInfo13::type;
FetchType13 fetch13;
typename FetchType13::ValueType p13 =
fetch13.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>());
using FetchInfo14 = InvocationToFetch<ThreadIndicesType, Invocation, 14>;
using FetchType14 = typename FetchInfo14::type;
FetchType14 fetch14;
typename FetchType14::ValueType p14 =
fetch14.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>());
using FetchInfo15 = InvocationToFetch<ThreadIndicesType, Invocation, 15>;
using FetchType15 = typename FetchInfo15::type;
FetchType15 fetch15;
typename FetchType15::ValueType p15 =
fetch15.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>());
using FetchInfo16 = InvocationToFetch<ThreadIndicesType, Invocation, 16>;
using FetchType16 = typename FetchInfo16::type;
FetchType16 fetch16;
typename FetchType16::ValueType p16 =
fetch16.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>());
using FetchInfo17 = InvocationToFetch<ThreadIndicesType, Invocation, 17>;
using FetchType17 = typename FetchInfo17::type;
FetchType17 fetch17;
typename FetchType17::ValueType p17 =
fetch17.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo17::ControlParameterIndex>());
using FetchInfo18 = InvocationToFetch<ThreadIndicesType, Invocation, 18>;
using FetchType18 = typename FetchInfo18::type;
FetchType18 fetch18;
typename FetchType18::ValueType p18 =
fetch18.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo18::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
fetch12.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>(),
p12);
fetch13.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>(),
p13);
fetch14.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>(),
p14);
fetch15.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>(),
p15);
fetch16.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>(),
p16);
fetch17.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo17::ControlParameterIndex>(),
p17);
fetch18.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo18::ControlParameterIndex>(),
p18);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11,
typename P12,
typename P13,
typename P14,
typename P15,
typename P16,
typename P17,
typename P18,
typename P19>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
using FetchInfo12 = InvocationToFetch<ThreadIndicesType, Invocation, 12>;
using FetchType12 = typename FetchInfo12::type;
FetchType12 fetch12;
typename FetchType12::ValueType p12 =
fetch12.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>());
using FetchInfo13 = InvocationToFetch<ThreadIndicesType, Invocation, 13>;
using FetchType13 = typename FetchInfo13::type;
FetchType13 fetch13;
typename FetchType13::ValueType p13 =
fetch13.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>());
using FetchInfo14 = InvocationToFetch<ThreadIndicesType, Invocation, 14>;
using FetchType14 = typename FetchInfo14::type;
FetchType14 fetch14;
typename FetchType14::ValueType p14 =
fetch14.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>());
using FetchInfo15 = InvocationToFetch<ThreadIndicesType, Invocation, 15>;
using FetchType15 = typename FetchInfo15::type;
FetchType15 fetch15;
typename FetchType15::ValueType p15 =
fetch15.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>());
using FetchInfo16 = InvocationToFetch<ThreadIndicesType, Invocation, 16>;
using FetchType16 = typename FetchInfo16::type;
FetchType16 fetch16;
typename FetchType16::ValueType p16 =
fetch16.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>());
using FetchInfo17 = InvocationToFetch<ThreadIndicesType, Invocation, 17>;
using FetchType17 = typename FetchInfo17::type;
FetchType17 fetch17;
typename FetchType17::ValueType p17 =
fetch17.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo17::ControlParameterIndex>());
using FetchInfo18 = InvocationToFetch<ThreadIndicesType, Invocation, 18>;
using FetchType18 = typename FetchInfo18::type;
FetchType18 fetch18;
typename FetchType18::ValueType p18 =
fetch18.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo18::ControlParameterIndex>());
using FetchInfo19 = InvocationToFetch<ThreadIndicesType, Invocation, 19>;
using FetchType19 = typename FetchInfo19::type;
FetchType19 fetch19;
typename FetchType19::ValueType p19 =
fetch19.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo19::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
fetch12.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>(),
p12);
fetch13.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>(),
p13);
fetch14.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>(),
p14);
fetch15.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>(),
p15);
fetch16.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>(),
p16);
fetch17.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo17::ControlParameterIndex>(),
p17);
fetch18.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo18::ControlParameterIndex>(),
p18);
fetch19.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo19::ControlParameterIndex>(),
p19);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11,
typename P12,
typename P13,
typename P14,
typename P15,
typename P16,
typename P17,
typename P18,
typename P19>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
using FetchInfo12 = InvocationToFetch<ThreadIndicesType, Invocation, 12>;
using FetchType12 = typename FetchInfo12::type;
FetchType12 fetch12;
typename FetchType12::ValueType p12 =
fetch12.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>());
using FetchInfo13 = InvocationToFetch<ThreadIndicesType, Invocation, 13>;
using FetchType13 = typename FetchInfo13::type;
FetchType13 fetch13;
typename FetchType13::ValueType p13 =
fetch13.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>());
using FetchInfo14 = InvocationToFetch<ThreadIndicesType, Invocation, 14>;
using FetchType14 = typename FetchInfo14::type;
FetchType14 fetch14;
typename FetchType14::ValueType p14 =
fetch14.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>());
using FetchInfo15 = InvocationToFetch<ThreadIndicesType, Invocation, 15>;
using FetchType15 = typename FetchInfo15::type;
FetchType15 fetch15;
typename FetchType15::ValueType p15 =
fetch15.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>());
using FetchInfo16 = InvocationToFetch<ThreadIndicesType, Invocation, 16>;
using FetchType16 = typename FetchInfo16::type;
FetchType16 fetch16;
typename FetchType16::ValueType p16 =
fetch16.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>());
using FetchInfo17 = InvocationToFetch<ThreadIndicesType, Invocation, 17>;
using FetchType17 = typename FetchInfo17::type;
FetchType17 fetch17;
typename FetchType17::ValueType p17 =
fetch17.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo17::ControlParameterIndex>());
using FetchInfo18 = InvocationToFetch<ThreadIndicesType, Invocation, 18>;
using FetchType18 = typename FetchInfo18::type;
FetchType18 fetch18;
typename FetchType18::ValueType p18 =
fetch18.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo18::ControlParameterIndex>());
using FetchInfo19 = InvocationToFetch<ThreadIndicesType, Invocation, 19>;
using FetchType19 = typename FetchInfo19::type;
FetchType19 fetch19;
typename FetchType19::ValueType p19 =
fetch19.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo19::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
fetch12.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>(),
p12);
fetch13.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>(),
p13);
fetch14.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>(),
p14);
fetch15.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>(),
p15);
fetch16.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>(),
p16);
fetch17.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo17::ControlParameterIndex>(),
p17);
fetch18.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo18::ControlParameterIndex>(),
p18);
fetch19.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo19::ControlParameterIndex>(),
p19);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename R,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11,
typename P12,
typename P13,
typename P14,
typename P15,
typename P16,
typename P17,
typename P18,
typename P19,
typename P20>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
using Invocation = vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<R(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
using FetchInfo12 = InvocationToFetch<ThreadIndicesType, Invocation, 12>;
using FetchType12 = typename FetchInfo12::type;
FetchType12 fetch12;
typename FetchType12::ValueType p12 =
fetch12.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>());
using FetchInfo13 = InvocationToFetch<ThreadIndicesType, Invocation, 13>;
using FetchType13 = typename FetchInfo13::type;
FetchType13 fetch13;
typename FetchType13::ValueType p13 =
fetch13.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>());
using FetchInfo14 = InvocationToFetch<ThreadIndicesType, Invocation, 14>;
using FetchType14 = typename FetchInfo14::type;
FetchType14 fetch14;
typename FetchType14::ValueType p14 =
fetch14.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>());
using FetchInfo15 = InvocationToFetch<ThreadIndicesType, Invocation, 15>;
using FetchType15 = typename FetchInfo15::type;
FetchType15 fetch15;
typename FetchType15::ValueType p15 =
fetch15.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>());
using FetchInfo16 = InvocationToFetch<ThreadIndicesType, Invocation, 16>;
using FetchType16 = typename FetchInfo16::type;
FetchType16 fetch16;
typename FetchType16::ValueType p16 =
fetch16.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>());
using FetchInfo17 = InvocationToFetch<ThreadIndicesType, Invocation, 17>;
using FetchType17 = typename FetchInfo17::type;
FetchType17 fetch17;
typename FetchType17::ValueType p17 =
fetch17.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo17::ControlParameterIndex>());
using FetchInfo18 = InvocationToFetch<ThreadIndicesType, Invocation, 18>;
using FetchType18 = typename FetchInfo18::type;
FetchType18 fetch18;
typename FetchType18::ValueType p18 =
fetch18.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo18::ControlParameterIndex>());
using FetchInfo19 = InvocationToFetch<ThreadIndicesType, Invocation, 19>;
using FetchType19 = typename FetchInfo19::type;
FetchType19 fetch19;
typename FetchType19::ValueType p19 =
fetch19.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo19::ControlParameterIndex>());
using FetchInfo20 = InvocationToFetch<ThreadIndicesType, Invocation, 20>;
using FetchType20 = typename FetchInfo20::type;
FetchType20 fetch20;
typename FetchType20::ValueType p20 =
fetch20.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo20::ControlParameterIndex>());
using FetchInfo0 = InvocationToFetch<ThreadIndicesType, Invocation, 0>;
using ReturnFetchType = typename FetchInfo0::type;
ReturnFetchType returnFetch;
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
auto r = typename ReturnFetchType::ValueType(worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20));
returnFetch.Store(
threadIndices,
invocation.Parameters.template GetParameter<FetchInfo0::ControlParameterIndex>(),
r);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
fetch12.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>(),
p12);
fetch13.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>(),
p13);
fetch14.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>(),
p14);
fetch15.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>(),
p15);
fetch16.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>(),
p16);
fetch17.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo17::ControlParameterIndex>(),
p17);
fetch18.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo18::ControlParameterIndex>(),
p18);
fetch19.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo19::ControlParameterIndex>(),
p19);
fetch20.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo20::ControlParameterIndex>(),
p20);
}
template <typename WorkletType,
typename ParameterInterface,
typename ControlInterface,
vtkm::IdComponent InputDomainIndex,
typename OutputToInputMapType,
typename VisitArrayType,
typename ThreadIndicesType,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename P7,
typename P8,
typename P9,
typename P10,
typename P11,
typename P12,
typename P13,
typename P14,
typename P15,
typename P16,
typename P17,
typename P18,
typename P19,
typename P20>
VTKM_EXEC void DoWorkletInvokeFunctor(
const WorkletType& worklet,
const vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>& invocation,
const ThreadIndicesType& threadIndices)
{
typedef vtkm::internal::Invocation<ParameterInterface,
ControlInterface,
vtkm::internal::FunctionInterface<void(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20)>,
InputDomainIndex,
OutputToInputMapType,
VisitArrayType>
Invocation;
using FetchInfo1 = InvocationToFetch<ThreadIndicesType, Invocation, 1>;
using FetchType1 = typename FetchInfo1::type;
FetchType1 fetch1;
typename FetchType1::ValueType p1 =
fetch1.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>());
using FetchInfo2 = InvocationToFetch<ThreadIndicesType, Invocation, 2>;
using FetchType2 = typename FetchInfo2::type;
FetchType2 fetch2;
typename FetchType2::ValueType p2 =
fetch2.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>());
using FetchInfo3 = InvocationToFetch<ThreadIndicesType, Invocation, 3>;
using FetchType3 = typename FetchInfo3::type;
FetchType3 fetch3;
typename FetchType3::ValueType p3 =
fetch3.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>());
using FetchInfo4 = InvocationToFetch<ThreadIndicesType, Invocation, 4>;
using FetchType4 = typename FetchInfo4::type;
FetchType4 fetch4;
typename FetchType4::ValueType p4 =
fetch4.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>());
using FetchInfo5 = InvocationToFetch<ThreadIndicesType, Invocation, 5>;
using FetchType5 = typename FetchInfo5::type;
FetchType5 fetch5;
typename FetchType5::ValueType p5 =
fetch5.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>());
using FetchInfo6 = InvocationToFetch<ThreadIndicesType, Invocation, 6>;
using FetchType6 = typename FetchInfo6::type;
FetchType6 fetch6;
typename FetchType6::ValueType p6 =
fetch6.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>());
using FetchInfo7 = InvocationToFetch<ThreadIndicesType, Invocation, 7>;
using FetchType7 = typename FetchInfo7::type;
FetchType7 fetch7;
typename FetchType7::ValueType p7 =
fetch7.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>());
using FetchInfo8 = InvocationToFetch<ThreadIndicesType, Invocation, 8>;
using FetchType8 = typename FetchInfo8::type;
FetchType8 fetch8;
typename FetchType8::ValueType p8 =
fetch8.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>());
using FetchInfo9 = InvocationToFetch<ThreadIndicesType, Invocation, 9>;
using FetchType9 = typename FetchInfo9::type;
FetchType9 fetch9;
typename FetchType9::ValueType p9 =
fetch9.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>());
using FetchInfo10 = InvocationToFetch<ThreadIndicesType, Invocation, 10>;
using FetchType10 = typename FetchInfo10::type;
FetchType10 fetch10;
typename FetchType10::ValueType p10 =
fetch10.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>());
using FetchInfo11 = InvocationToFetch<ThreadIndicesType, Invocation, 11>;
using FetchType11 = typename FetchInfo11::type;
FetchType11 fetch11;
typename FetchType11::ValueType p11 =
fetch11.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>());
using FetchInfo12 = InvocationToFetch<ThreadIndicesType, Invocation, 12>;
using FetchType12 = typename FetchInfo12::type;
FetchType12 fetch12;
typename FetchType12::ValueType p12 =
fetch12.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>());
using FetchInfo13 = InvocationToFetch<ThreadIndicesType, Invocation, 13>;
using FetchType13 = typename FetchInfo13::type;
FetchType13 fetch13;
typename FetchType13::ValueType p13 =
fetch13.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>());
using FetchInfo14 = InvocationToFetch<ThreadIndicesType, Invocation, 14>;
using FetchType14 = typename FetchInfo14::type;
FetchType14 fetch14;
typename FetchType14::ValueType p14 =
fetch14.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>());
using FetchInfo15 = InvocationToFetch<ThreadIndicesType, Invocation, 15>;
using FetchType15 = typename FetchInfo15::type;
FetchType15 fetch15;
typename FetchType15::ValueType p15 =
fetch15.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>());
using FetchInfo16 = InvocationToFetch<ThreadIndicesType, Invocation, 16>;
using FetchType16 = typename FetchInfo16::type;
FetchType16 fetch16;
typename FetchType16::ValueType p16 =
fetch16.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>());
using FetchInfo17 = InvocationToFetch<ThreadIndicesType, Invocation, 17>;
using FetchType17 = typename FetchInfo17::type;
FetchType17 fetch17;
typename FetchType17::ValueType p17 =
fetch17.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo17::ControlParameterIndex>());
using FetchInfo18 = InvocationToFetch<ThreadIndicesType, Invocation, 18>;
using FetchType18 = typename FetchInfo18::type;
FetchType18 fetch18;
typename FetchType18::ValueType p18 =
fetch18.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo18::ControlParameterIndex>());
using FetchInfo19 = InvocationToFetch<ThreadIndicesType, Invocation, 19>;
using FetchType19 = typename FetchInfo19::type;
FetchType19 fetch19;
typename FetchType19::ValueType p19 =
fetch19.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo19::ControlParameterIndex>());
using FetchInfo20 = InvocationToFetch<ThreadIndicesType, Invocation, 20>;
using FetchType20 = typename FetchInfo20::type;
FetchType20 fetch20;
typename FetchType20::ValueType p20 =
fetch20.Load(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo20::ControlParameterIndex>());
// If you got a compile error on the following line, it probably means that
// the operator() of a worklet does not match the definition expected. One
// common problem is that the operator() method must be declared const. Check
// to make sure the "const" keyword is after parameters. Another common
// problem is that the type of one or more parameters is incompatible with
// the actual type that VTK-m creates in the execution environment. Make sure
// that the types of the worklet operator() parameters match those in the
// ExecutionSignature. The compiler error might help you narrow down which
// parameter is wrong and the types that did not match.
worklet(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20);
fetch1.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo1::ControlParameterIndex>(),
p1);
fetch2.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo2::ControlParameterIndex>(),
p2);
fetch3.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo3::ControlParameterIndex>(),
p3);
fetch4.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo4::ControlParameterIndex>(),
p4);
fetch5.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo5::ControlParameterIndex>(),
p5);
fetch6.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo6::ControlParameterIndex>(),
p6);
fetch7.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo7::ControlParameterIndex>(),
p7);
fetch8.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo8::ControlParameterIndex>(),
p8);
fetch9.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo9::ControlParameterIndex>(),
p9);
fetch10.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo10::ControlParameterIndex>(),
p10);
fetch11.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo11::ControlParameterIndex>(),
p11);
fetch12.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo12::ControlParameterIndex>(),
p12);
fetch13.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo13::ControlParameterIndex>(),
p13);
fetch14.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo14::ControlParameterIndex>(),
p14);
fetch15.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo15::ControlParameterIndex>(),
p15);
fetch16.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo16::ControlParameterIndex>(),
p16);
fetch17.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo17::ControlParameterIndex>(),
p17);
fetch18.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo18::ControlParameterIndex>(),
p18);
fetch19.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo19::ControlParameterIndex>(),
p19);
fetch20.Store(threadIndices,
invocation.Parameters.template GetParameter<FetchInfo20::ControlParameterIndex>(),
p20);
}
// clang-format on
}
}
}
} // namespace vtkm::exec::internal::detail
#endif //vtk_m_exec_internal_WorkletInvokeFunctorDetail_h