File Arrays.hpp¶
-
namespace Acts
Set the Geometry Context PLUGIN.
Set the Calibration Context PLUGIN.
Convenience functions to ease creation of and Acts::InterpolatedMaterialMap and to avoid code duplication.
Set the Mangetic Field Context PLUGIN.
Convenience functions to ease creation of and Acts::InterpolatedBFieldMap and to avoid code duplication.
Currently implemented for the two most common formats: rz and xyz.
-
namespace Cuda¶
Typedefs
-
using device_array = std::unique_ptr<T, Details::DeviceArrayDeleter>¶
Convenience type for using primitive variable arrays on a CUDA device.
-
using host_array = std::unique_ptr<T, Details::HostArrayDeleter>¶
Convenience type for using primitive variable arrays on the host.
Functions
-
template<typename T>
void copyToDevice(device_array<T> &dev, const host_array<T> &host, std::size_t arraySize)¶ Copy one array from the host to the device.
-
template<typename T>
void copyToDevice(device_array<T> &dev, const host_array<T> &host, std::size_t arraySize, const StreamWrapper &stream)¶ Copy one array from the host to the device asynchronously.
-
template<typename T>
void copyToHost(host_array<T> &host, const device_array<T> &dev, std::size_t arraySize)¶ Copy one array from the device to the host.
-
template<typename T>
void copyToHost(host_array<T> &host, const device_array<T> &dev, std::size_t arraySize, const StreamWrapper &stream)¶ Copy one array from the device to the host asynchronously.
-
template<typename T>
device_array<T> make_device_array(std::size_t size)¶ Function creating a primitive array in CUDA device memory.
-
template<typename T>
host_array<T> make_host_array(std::size_t size)¶ Function creating a primitive array in the host’s memory.
-
namespace Details¶
Namespace holding some implementation detail types that should not be used directly in client code.
-
class DeviceArrayDeleter
- #include </home/docs/checkouts/readthedocs.org/user_builds/acts/checkouts/v15.1.0/Plugins/Cuda/include/Acts/Plugins/Cuda/Utilities/Arrays.hpp>
Class performing the deletion of a CUDA device memory array.
Public Functions
-
void operator()(void *ptr)
Operator performing the deletion of the memory.
-
void operator()(void *ptr)
-
class HostArrayDeleter
- #include </home/docs/checkouts/readthedocs.org/user_builds/acts/checkouts/v15.1.0/Plugins/Cuda/include/Acts/Plugins/Cuda/Utilities/Arrays.hpp>
Class performing the deletion of pinned host memory.
Public Functions
-
void operator()(void *ptr)
Operator performing the deletion of the memory.
-
void operator()(void *ptr)
-
class DeviceArrayDeleter
-
using device_array = std::unique_ptr<T, Details::DeviceArrayDeleter>¶
-
namespace Cuda¶