2014-02-10 19:53:03 +00:00
|
|
|
##============================================================================
|
|
|
|
## Copyright (c) Kitware, Inc.
|
|
|
|
## All rights reserved.
|
|
|
|
## See LICENSE.txt for details.
|
2019-04-15 23:24:21 +00:00
|
|
|
##
|
2014-02-10 19:53:03 +00:00
|
|
|
## 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.
|
|
|
|
##============================================================================
|
|
|
|
|
|
|
|
set(headers
|
Add copy methods to `UnknownArrayHandle`
`vtkm::cont::UnknownArrayHandle` now provides a set of method that
allows you to copy data from one `UnknownArrayHandle` to another. The
first method, `DeepCopyFrom`, takes a source `UnknownArrayHandle` and
deep copies the data to the called one. If the `UnknownArrayHandle`
already points to a real `ArrayHandle`, the data is copied into that
`ArrayHandle`. If the `UnknownArrayHandle` does not point to an existing
`ArrayHandle`, then a new `ArrayHandleBasic` with the same value type as
the source is created and copied into.
The second method, `CopyShallowIfPossibleFrom` behaves similarly to
`DeepCopyFrom` except that it will perform a shallow copy if possible.
That is, if the target `UnknownArrayHandle` points to an `ArrayHandle`
of the same type as the source `UnknownArrayHandle`, then a shallow copy
occurs and the underlying `ArrayHandle` will point to the source. If the
types differ, then a deep copy is performed. If the target
`UnknownArrayHandle` does not point to an `ArrayHandle`, then the
behavior is the same as the `=` operator.
One of the intentions of these new methods is to allow you to copy
arrays without using a device compiler (e.g. `nvcc`). Calling
`ArrayCopy` requires you to include the `ArrayCopy.h` header file, and
that in turn requires device adapter algorithms. These methods insulate
you from these.
2021-09-28 16:46:41 +00:00
|
|
|
ArrayCopyUnknown.h
|
2014-02-10 19:53:03 +00:00
|
|
|
ArrayHandleExecutionManager.h
|
|
|
|
ArrayPortalFromIterators.h
|
2023-06-02 12:23:03 +00:00
|
|
|
ArrayRangeComputeUtils.h
|
2014-02-10 19:53:03 +00:00
|
|
|
ArrayTransfer.h
|
2020-03-26 23:34:18 +00:00
|
|
|
Buffer.h
|
2020-06-03 21:24:36 +00:00
|
|
|
CastInvalidValue.h
|
2020-09-22 15:32:01 +00:00
|
|
|
CellLocatorBase.h
|
2015-08-11 18:42:34 +00:00
|
|
|
ConnectivityExplicitInternals.h
|
2021-09-16 20:02:36 +00:00
|
|
|
ConvertNumComponentsToOffsetsTemplate.h
|
2014-02-11 17:34:56 +00:00
|
|
|
DeviceAdapterAlgorithmGeneral.h
|
2020-03-26 23:34:18 +00:00
|
|
|
DeviceAdapterMemoryManager.h
|
|
|
|
DeviceAdapterMemoryManagerShared.h
|
2017-12-12 19:12:02 +00:00
|
|
|
DeviceAdapterListHelpers.h
|
2022-08-22 19:02:03 +00:00
|
|
|
FieldCollection.h
|
2015-07-16 19:40:22 +00:00
|
|
|
FunctorsGeneral.h
|
2024-02-06 18:33:33 +00:00
|
|
|
Hints.h
|
2014-02-11 17:34:56 +00:00
|
|
|
IteratorFromArrayPortal.h
|
2018-05-14 19:55:23 +00:00
|
|
|
KXSort.h
|
2022-01-14 15:33:46 +00:00
|
|
|
MapArrayPermutation.h
|
2018-12-06 18:33:31 +00:00
|
|
|
OptionParser.h
|
2021-05-26 19:43:36 +00:00
|
|
|
OptionParserArguments.h
|
2018-05-14 19:55:23 +00:00
|
|
|
ParallelRadixSort.h
|
|
|
|
ParallelRadixSortInterface.h
|
2020-11-11 22:02:10 +00:00
|
|
|
PointLocatorBase.h
|
2018-06-28 16:53:22 +00:00
|
|
|
ReverseConnectivityBuilder.h
|
2021-05-26 19:43:36 +00:00
|
|
|
RuntimeDeviceConfiguration.h
|
|
|
|
RuntimeDeviceConfigurationOptions.h
|
|
|
|
RuntimeDeviceOption.h
|
2014-06-23 23:33:04 +00:00
|
|
|
StorageError.h
|
2014-02-10 19:53:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
vtkm_declare_headers(${headers})
|
|
|
|
|
|
|
|
# These source files are actually compiled in the parent directory.
|
|
|
|
# They are in a separate directory to highlight which objects are
|
|
|
|
# internal and which are part of the external interface.
|
|
|
|
#add_custom_target(vtkmContInternal ALL DEPENDS vtkmCont)
|