![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Classes | |
| struct | SYCLDevice |
| SYCL device properties. More... | |
| class | SYCLContext |
Functions | |
| CLOUDVIEWER_DLL_LOCAL std::string | GetDeviceTypeName (const sycl::device &device) |
| int | SYCLDemo () |
| void | PrintSYCLDevices (bool print_all) |
| bool | IsAvailable () |
| Returns true if there is at least one SYCL device available. More... | |
| bool | IsDeviceAvailable (const Device &device) |
| Returns true if the specified SYCL device is available. More... | |
| std::string | GetDeviceType (const Device &device) |
| std::vector< Device > | GetAvailableSYCLDevices () |
| Return a list of available SYCL devices. More... | |
| void | enablePersistentJITCache () |
| size_t | GetDeviceCount () |
| Return the number of available SYCL devices. More... | |
| void cloudViewer::core::sy::enablePersistentJITCache | ( | ) |
Enables the JIT cache for SYCL. This sets an environment variable and will affect the entire process and any child processes.
Definition at line 238 of file SYCLUtils.cpp.
References LogInfo.
| std::vector< Device > cloudViewer::core::sy::GetAvailableSYCLDevices | ( | ) |
Return a list of available SYCL devices.
Definition at line 230 of file SYCLUtils.cpp.
References cloudViewer::core::sy::SYCLContext::GetAvailableSYCLDevices(), and cloudViewer::core::sy::SYCLContext::GetInstance().
Referenced by cloudViewer::core::Device::GetAvailableSYCLDevices(), and GetDeviceCount().
|
inline |
Return the number of available SYCL devices.
Definition at line 48 of file SYCLUtils.h.
References GetAvailableSYCLDevices().
| std::string cloudViewer::core::sy::GetDeviceType | ( | const Device & | device | ) |
Returns the device type (cpu / gpu / accelerator / custom) of the specified device as a string. Returns empty string if the device is not available.
Definition at line 216 of file SYCLUtils.cpp.
References cloudViewer::core::sy::SYCLDevice::device_type, cloudViewer::core::sy::SYCLContext::GetDeviceProperties(), cloudViewer::core::sy::SYCLContext::GetInstance(), and IsDeviceAvailable().
| CLOUDVIEWER_DLL_LOCAL std::string cloudViewer::core::sy::GetDeviceTypeName | ( | const sycl::device & | device | ) |
Referenced by cloudViewer::core::sy::SYCLDevice::SYCLDevice().
| bool cloudViewer::core::sy::IsAvailable | ( | ) |
Returns true if there is at least one SYCL device available.
Definition at line 200 of file SYCLUtils.cpp.
References cloudViewer::core::sy::SYCLContext::GetInstance(), and cloudViewer::core::sy::SYCLContext::IsAvailable().
| bool cloudViewer::core::sy::IsDeviceAvailable | ( | const Device & | device | ) |
Returns true if the specified SYCL device is available.
Definition at line 208 of file SYCLUtils.cpp.
References cloudViewer::core::sy::SYCLContext::GetInstance(), and cloudViewer::core::sy::SYCLContext::IsDeviceAvailable().
Referenced by GetDeviceType().
| void cloudViewer::core::sy::PrintSYCLDevices | ( | bool | print_all = false | ) |
Print available SYCL devices.
| print_all | If true, prints all SYCL devices. Otherwise, prints only devices that are available for CloudViewer. |
Definition at line 122 of file SYCLUtils.cpp.
References LogInfo, and LogWarning.
| int cloudViewer::core::sy::SYCLDemo | ( | ) |
Runs simple SYCL test program for sanity checks.
Definition at line 34 of file SYCLUtils.cpp.
References LogInfo.