2014-02-10 19:53:03 +00:00
|
|
|
##============================================================================
|
|
|
|
## 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.
|
|
|
|
##
|
2017-09-20 21:33:44 +00:00
|
|
|
## Copyright 2014 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
|
2014-02-10 19:53:03 +00:00
|
|
|
## Copyright 2014 UT-Battelle, LLC.
|
2015-05-21 12:09:22 +00:00
|
|
|
## Copyright 2014 Los Alamos National Security.
|
2014-02-10 19:53:03 +00:00
|
|
|
##
|
2017-09-20 21:33:44 +00:00
|
|
|
## Under the terms of Contract DE-NA0003525 with NTESS,
|
2014-02-10 19:53:03 +00:00
|
|
|
## 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
|
2017-11-29 15:44:37 +00:00
|
|
|
Algorithm.h
|
2017-09-25 22:28:44 +00:00
|
|
|
ArrayCopy.h
|
2014-02-10 19:53:03 +00:00
|
|
|
ArrayHandle.h
|
2015-09-01 21:42:45 +00:00
|
|
|
ArrayHandleCast.h
|
2015-12-22 17:41:30 +00:00
|
|
|
ArrayHandleCartesianProduct.h
|
2014-05-05 15:24:03 +00:00
|
|
|
ArrayHandleCompositeVector.h
|
2015-05-13 20:24:51 +00:00
|
|
|
ArrayHandleConstant.h
|
2014-04-03 19:17:14 +00:00
|
|
|
ArrayHandleCounting.h
|
2017-07-26 20:59:48 +00:00
|
|
|
ArrayHandleExtractComponent.h
|
2017-02-07 17:53:53 +00:00
|
|
|
ArrayHandleDiscard.h
|
2015-09-28 23:19:38 +00:00
|
|
|
ArrayHandleGroupVec.h
|
2016-10-28 03:14:29 +00:00
|
|
|
ArrayHandleGroupVecVariable.h
|
2015-02-13 06:24:43 +00:00
|
|
|
ArrayHandleImplicit.h
|
2015-09-15 04:11:09 +00:00
|
|
|
ArrayHandleIndex.h
|
2015-04-24 00:45:24 +00:00
|
|
|
ArrayHandlePermutation.h
|
2017-05-08 17:49:18 +00:00
|
|
|
ArrayHandleReverse.h
|
2016-08-19 19:47:44 +00:00
|
|
|
ArrayHandleStreaming.h
|
2017-07-28 18:55:37 +00:00
|
|
|
ArrayHandleSwizzle.h
|
2015-04-13 20:43:18 +00:00
|
|
|
ArrayHandleTransform.h
|
2014-05-01 23:19:54 +00:00
|
|
|
ArrayHandleUniformPointCoordinates.h
|
2017-12-12 15:15:20 +00:00
|
|
|
ArrayHandleVirtualCoordinates.h
|
2015-04-23 17:20:03 +00:00
|
|
|
ArrayHandleZip.h
|
2014-02-10 19:53:03 +00:00
|
|
|
ArrayPortal.h
|
2014-09-04 17:56:15 +00:00
|
|
|
ArrayPortalToIterators.h
|
2016-07-15 00:16:57 +00:00
|
|
|
ArrayHandleConcatenate.h
|
2016-08-05 20:05:32 +00:00
|
|
|
ArrayRangeCompute.h
|
2017-12-21 01:18:22 +00:00
|
|
|
AssignerMultiBlock.h
|
2018-06-05 03:04:38 +00:00
|
|
|
BoundingIntervalHierarchyNode.h
|
|
|
|
BoundingIntervalHierarchy.h
|
2018-04-05 21:12:20 +00:00
|
|
|
BoundsCompute.h
|
|
|
|
BoundsGlobalCompute.h
|
2018-06-05 03:04:38 +00:00
|
|
|
CellLocator.h
|
2018-06-05 02:37:08 +00:00
|
|
|
CellLocatorHelper.h
|
2017-09-28 20:45:51 +00:00
|
|
|
CellLocatorTwoLevelUniformGrid.h
|
2015-05-29 14:49:57 +00:00
|
|
|
CellSet.h
|
|
|
|
CellSetExplicit.h
|
2015-07-27 16:13:27 +00:00
|
|
|
CellSetListTag.h
|
2015-09-28 17:15:26 +00:00
|
|
|
CellSetSingleType.h
|
2015-05-29 14:49:57 +00:00
|
|
|
CellSetStructured.h
|
2015-09-28 17:15:26 +00:00
|
|
|
CellSetPermutation.h
|
2018-01-18 18:55:15 +00:00
|
|
|
ColorTable.h
|
|
|
|
ColorTableSamples.h
|
2015-05-29 14:49:57 +00:00
|
|
|
CoordinateSystem.h
|
2015-01-27 22:02:03 +00:00
|
|
|
DataSet.h
|
2015-12-22 17:41:30 +00:00
|
|
|
DataSetBuilderExplicit.h
|
|
|
|
DataSetBuilderRectilinear.h
|
2016-01-19 22:54:05 +00:00
|
|
|
DataSetBuilderUniform.h
|
2015-12-22 17:41:30 +00:00
|
|
|
DataSetFieldAdd.h
|
2014-02-11 17:34:56 +00:00
|
|
|
DeviceAdapter.h
|
2014-11-25 14:14:04 +00:00
|
|
|
DeviceAdapterAlgorithm.h
|
2016-08-15 23:15:17 +00:00
|
|
|
DeviceAdapterListTag.h
|
2014-04-03 19:17:14 +00:00
|
|
|
DynamicArrayHandle.h
|
2015-07-27 16:13:27 +00:00
|
|
|
DynamicCellSet.h
|
2017-12-14 01:30:04 +00:00
|
|
|
EnvironmentTracker.h
|
2014-02-10 19:53:03 +00:00
|
|
|
Error.h
|
2017-01-09 21:15:32 +00:00
|
|
|
ErrorBadAllocation.h
|
2017-12-22 15:01:09 +00:00
|
|
|
ErrorBadDevice.h
|
2017-01-09 21:15:32 +00:00
|
|
|
ErrorBadType.h
|
|
|
|
ErrorBadValue.h
|
2018-04-03 18:34:16 +00:00
|
|
|
ErrorFilterExecution.h
|
2014-02-10 19:53:03 +00:00
|
|
|
ErrorExecution.h
|
2017-01-09 21:15:32 +00:00
|
|
|
ErrorInternal.h
|
2018-05-10 23:53:39 +00:00
|
|
|
ExecutionObjectBase.h
|
2015-05-29 14:49:57 +00:00
|
|
|
Field.h
|
2018-04-05 01:13:44 +00:00
|
|
|
FieldRangeCompute.h
|
|
|
|
FieldRangeGlobalCompute.h
|
2017-10-23 13:38:33 +00:00
|
|
|
ImplicitFunctionHandle.h
|
2017-05-11 19:20:01 +00:00
|
|
|
MultiBlock.h
|
2018-06-05 03:04:38 +00:00
|
|
|
PointLocator.h
|
2017-10-19 17:44:36 +00:00
|
|
|
PointLocatorUniformGrid.h
|
2015-12-23 19:54:41 +00:00
|
|
|
RuntimeDeviceInformation.h
|
2017-02-22 20:33:52 +00:00
|
|
|
RuntimeDeviceTracker.h
|
2014-06-23 23:33:04 +00:00
|
|
|
Storage.h
|
|
|
|
StorageBasic.h
|
|
|
|
StorageImplicit.h
|
|
|
|
StorageListTag.h
|
2014-06-10 18:53:34 +00:00
|
|
|
Timer.h
|
2016-08-15 23:15:17 +00:00
|
|
|
TryExecute.h
|
2017-10-23 13:38:33 +00:00
|
|
|
VirtualObjectHandle.h
|
2014-02-10 19:53:03 +00:00
|
|
|
)
|
|
|
|
|
2017-09-25 12:47:47 +00:00
|
|
|
set(template_sources
|
2016-12-16 22:04:58 +00:00
|
|
|
ArrayHandle.hxx
|
2018-01-10 21:34:56 +00:00
|
|
|
ArrayRangeCompute.hxx
|
2017-08-10 20:13:58 +00:00
|
|
|
CellSetExplicit.hxx
|
2016-12-16 22:04:58 +00:00
|
|
|
CellSetStructured.hxx
|
2018-03-09 19:01:22 +00:00
|
|
|
CoordinateSystem.hxx
|
2018-04-05 01:13:44 +00:00
|
|
|
FieldRangeCompute.hxx
|
|
|
|
FieldRangeGlobalCompute.hxx
|
2016-12-19 13:58:12 +00:00
|
|
|
StorageBasic.hxx
|
2016-12-16 22:04:58 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sources
|
|
|
|
ArrayHandle.cxx
|
2017-12-21 01:18:22 +00:00
|
|
|
AssignerMultiBlock.cxx
|
2018-04-05 21:12:20 +00:00
|
|
|
BoundsCompute.cxx
|
|
|
|
BoundsGlobalCompute.cxx
|
2016-12-16 22:04:58 +00:00
|
|
|
CellSet.cxx
|
|
|
|
CellSetStructured.cxx
|
|
|
|
DynamicArrayHandle.cxx
|
2017-12-14 01:30:04 +00:00
|
|
|
EnvironmentTracker.cxx
|
2016-12-16 22:04:58 +00:00
|
|
|
Field.cxx
|
2018-04-05 01:13:44 +00:00
|
|
|
FieldRangeCompute.cxx
|
|
|
|
FieldRangeGlobalCompute.cxx
|
2016-12-16 22:04:58 +00:00
|
|
|
internal/SimplePolymorphicContainer.cxx
|
2017-06-23 13:33:28 +00:00
|
|
|
internal/ArrayManagerExecutionShareWithControl.cxx
|
2018-02-12 19:45:59 +00:00
|
|
|
internal/ArrayHandleBasicImpl.cxx
|
2018-01-18 18:55:15 +00:00
|
|
|
PresetColorTables.cxx
|
2016-12-19 13:58:12 +00:00
|
|
|
StorageBasic.cxx
|
2016-12-16 22:04:58 +00:00
|
|
|
)
|
|
|
|
|
2017-02-22 23:18:23 +00:00
|
|
|
# This list of sources has code that uses devices and so might need to be
|
|
|
|
# compiled with a device-specific compiler (like CUDA).
|
|
|
|
set(device_sources
|
2017-02-24 00:12:14 +00:00
|
|
|
ArrayRangeCompute.cxx
|
2017-08-14 14:19:34 +00:00
|
|
|
CellSetExplicit.cxx
|
2018-01-18 18:55:15 +00:00
|
|
|
ColorTable.cxx
|
2017-12-12 19:26:23 +00:00
|
|
|
CoordinateSystem.cxx
|
|
|
|
DataSet.cxx
|
|
|
|
MultiBlock.cxx
|
2017-02-22 23:18:23 +00:00
|
|
|
RuntimeDeviceTracker.cxx
|
2017-11-07 19:17:28 +00:00
|
|
|
TryExecute.cxx
|
2017-02-22 23:18:23 +00:00
|
|
|
)
|
|
|
|
|
2014-02-10 19:53:03 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
2018-01-17 22:13:50 +00:00
|
|
|
vtkm_library( NAME vtkm_cont
|
|
|
|
SOURCES ${sources}
|
|
|
|
TEMPLATE_SOURCES ${template_sources}
|
|
|
|
HEADERS ${headers}
|
|
|
|
WRAP_FOR_CUDA ${device_sources}
|
|
|
|
)
|
2014-02-10 19:53:03 +00:00
|
|
|
add_subdirectory(internal)
|
2014-10-14 16:44:48 +00:00
|
|
|
add_subdirectory(arg)
|
2018-04-05 16:32:17 +00:00
|
|
|
add_subdirectory(diy)
|
2016-09-28 15:38:31 +00:00
|
|
|
add_subdirectory(serial)
|
2016-09-12 14:30:03 +00:00
|
|
|
add_subdirectory(tbb)
|
2018-01-17 22:13:50 +00:00
|
|
|
add_subdirectory(cuda)
|
|
|
|
|
|
|
|
set(backends )
|
2017-12-29 18:16:52 +00:00
|
|
|
if(TARGET vtkm::tbb)
|
2017-10-05 17:24:47 +00:00
|
|
|
list(APPEND backends vtkm::tbb)
|
2016-09-12 14:30:03 +00:00
|
|
|
endif()
|
2017-12-29 18:16:52 +00:00
|
|
|
if(TARGET vtkm::cuda)
|
2017-10-05 17:24:47 +00:00
|
|
|
list(APPEND backends vtkm::cuda)
|
2017-03-06 14:41:40 +00:00
|
|
|
endif()
|
2017-10-05 17:24:47 +00:00
|
|
|
target_link_libraries(vtkm_cont PUBLIC vtkm_compiler_flags ${backends})
|
2018-01-17 22:13:50 +00:00
|
|
|
if(TARGET vtkm_diy)
|
2017-11-28 21:04:15 +00:00
|
|
|
# This will become a required dependency eventually.
|
2018-05-10 16:24:02 +00:00
|
|
|
target_link_libraries(vtkm_cont PUBLIC vtkm_diy vtkm_taotuple)
|
2017-11-28 21:04:15 +00:00
|
|
|
endif()
|
|
|
|
|
2014-02-10 19:53:03 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
2016-10-21 19:10:49 +00:00
|
|
|
add_subdirectory(testing)
|