60#ifndef vtkmDataArrayFactory_h
61#define vtkmDataArrayFactory_h
63#include "vtkAcceleratorsVTKmCoreModule.h"
69VTK_ABI_NAMESPACE_BEGIN
a simple class to control print indentation
Describes a memory buffer on host or device, and who keeps it alive.
~vtkmDataArrayFactory() override
static bool IsMemorySpaceAvailable(const char *space)
Whether this build's Viskores can hold memory of the space named ("host", "cuda", "hip",...
static vtkTypeUInt64 GetLevelZeroContextHandle()
The Level Zero handles of the SYCL queue Viskores runs on, as integers: ze_driver_handle_t,...
void ClearBuffers()
Drop all added descriptors without creating an array.
static vtkTypeUInt64 GetLevelZeroDriverHandle()
The Level Zero handles of the SYCL queue Viskores runs on, as integers: ze_driver_handle_t,...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void AddBuffer(vtkMemoryDescriptor *descriptor)
Add a buffer descriptor.
std::vector< vtkMemoryDescriptor * > Buffers
static vtkTypeUInt64 GetLevelZeroDeviceHandle()
The Level Zero handles of the SYCL queue Viskores runs on, as integers: ze_driver_handle_t,...
static vtkmDataArrayFactory * New()
int GetNumberOfBuffers() const
Number of buffers added so far.
vtkDataArray * CreateArray()
Create the vtkmDataArray, or nullptr on error.