 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
18 #include <sycl/sycl.hpp>
63 return devices_.at(device);
70 std::map<Device, SYCLDevice> devices_;
std::vector< Device > GetAvailableSYCLDevices()
Returns a list of all available SYCL devices.
Definition: SYCLContext.cpp:35
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
CLOUDVIEWER_DLL_LOCAL std::string GetDeviceTypeName(const sycl::device &device)
Definition: SYCLContext.h:41
bool IsDeviceAvailable(const Device &device)
Returns true if the specified SYCL device is available.
Definition: SYCLContext.cpp:32
bool usm_device_allocations
Definition: SYCLContext.h:35
bool fp64
Double precision support, else need to emulate.
Definition: SYCLContext.h:34
SYCL device properties.
Definition: SYCLContext.h:27
#define CLOUDVIEWER_DLL_LOCAL
Definition: Macro.h:23
sycl::queue queue
Default queue for this device.
Definition: SYCLContext.h:32
const double * e
Definition: essential_matrix_poly.h:10
bool IsAvailable()
Returns true if there is at least one SYCL devices.
Definition: SYCLContext.cpp:30
std::string name
Fiendlly / descriptive name of the device.
Definition: SYCLContext.h:29
std::string device_type
cpu, gpu, host, acc, custom, unknown.
Definition: SYCLContext.h:30
sycl::device device
SYCL device.
Definition: SYCLContext.h:31
SYCLDevice GetDeviceProperties(const Device &device)
Get SYCL device properties given an CloudViewer device.
Definition: SYCLContext.h:62
void operator=(SYCLContext const &)=delete
static SYCLContext & GetInstance()
Get singleton instance.
Definition: SYCLContext.cpp:25
#define LogWarning(...)
Definition: Logging.h:72
size_t max_work_group_size
Preferred work group size.
Definition: SYCLContext.h:33
sycl::queue GetDefaultQueue(const Device &device)
Get the default SYCL queue given an CloudViewer device.
Definition: SYCLContext.cpp:43
std::string to_string(const T &n)
Definition: Common.h:20
std::string name
Definition: FileIOFactory.cpp:129
SYCLDevice(const sycl::device &sycl_device)
Definition: SYCLContext.cpp:47