022c36fa4f
Previously WorkletInvokeFunctor inherited from vtkm::exec::FunctorBase, which is also the base class for all users Worklets and for all functors based to DeviceAdapter::Schedule. This is done for a few reasons. The first is that we reduce the minimum size of user worklets. Previously the users worklet would hold a reference to the error message, and so would the wrapper class added when calling DeviceAdapter::Schedule. Now we only have the users worklet holding a reference. Second, by refactoring to have two base classes we can better improve the documentation on what responsibilities FunctorBase.h has, compared to TaskBase.
52 lines
1.6 KiB
CMake
52 lines
1.6 KiB
CMake
##============================================================================
|
|
## 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 Sandia Corporation.
|
|
## Copyright 2014 UT-Battelle, LLC.
|
|
## Copyright 2014 Los Alamos National Security.
|
|
##
|
|
## Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
|
|
## 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.
|
|
##============================================================================
|
|
|
|
set(headers
|
|
AtomicArray.h
|
|
CellDerivative.h
|
|
CellEdge.h
|
|
CellFace.h
|
|
CellInterpolate.h
|
|
ConnectivityExplicit.h
|
|
ConnectivityPermuted.h
|
|
ConnectivityStructured.h
|
|
ExecutionObjectBase.h
|
|
ExecutionWholeArray.h
|
|
FunctorBase.h
|
|
ImplicitFunction.h
|
|
Jacobian.h
|
|
ParametricCoordinates.h
|
|
TaskBase.h
|
|
)
|
|
|
|
#-----------------------------------------------------------------------------
|
|
add_subdirectory(internal)
|
|
add_subdirectory(arg)
|
|
|
|
vtkm_declare_headers(${impl_headers} ${headers})
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
add_subdirectory(cuda)
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
add_subdirectory(testing)
|