![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Properties of a device. More...
#include <shambackends/include/shambackends/Device.hpp>
Collaboration diagram for sham::DeviceProperties:Public Attributes | |
| Vendor | vendor |
| The vendor of the device. | |
| Backend | backend |
| The backend of the device. | |
| DeviceType | type |
| The type of the device. | |
| std::string | name |
| The name of the device. | |
| std::string | platform |
| The name of the platform of the device. | |
| usize | global_mem_size |
| The amount of global memory on the device in bytes. | |
| usize | global_mem_cache_line_size |
| The size of the cache line used by the device in bytes. | |
| usize | global_mem_cache_size |
| The amount of global memory cache on the device in bytes. | |
| usize | local_mem_size |
| The amount of shared local memory on the device in bytes. | |
| uint32_t | max_compute_units |
| The number of compute units on the device. | |
| uint64_t | max_mem_alloc_size_dev |
| The maximum size of memory that can be allocated on the device in bytes. | |
| uint64_t | max_mem_alloc_size_host |
| The maximum size of memory that can be allocated on the host in bytes. | |
| uint32_t | mem_base_addr_align |
| The base address alignment for memory allocations on the device in bytes. | |
| std::vector< size_t > | sub_group_sizes |
| SYCL sub group sizes property. | |
| uint32_t | default_work_group_size |
| Default work group size. | |
| std::optional< std::string > | pci_address |
| PCI address of the device. | |
| std::vector< std::string > | warnings |
| Warnings emitted during property fetching. | |
Properties of a device.
This struct contains properties of a device, such as its vendor, backend, amount of global memory and local memory, and cache size.
Definition at line 84 of file Device.hpp.
| Backend sham::DeviceProperties::backend |
The backend of the device.
Definition at line 89 of file Device.hpp.
| uint32_t sham::DeviceProperties::default_work_group_size |
Default work group size.
Definition at line 128 of file Device.hpp.
| usize sham::DeviceProperties::global_mem_cache_line_size |
The size of the cache line used by the device in bytes.
Definition at line 104 of file Device.hpp.
| usize sham::DeviceProperties::global_mem_cache_size |
The amount of global memory cache on the device in bytes.
Definition at line 107 of file Device.hpp.
| usize sham::DeviceProperties::global_mem_size |
The amount of global memory on the device in bytes.
Definition at line 101 of file Device.hpp.
| usize sham::DeviceProperties::local_mem_size |
The amount of shared local memory on the device in bytes.
Definition at line 110 of file Device.hpp.
| uint32_t sham::DeviceProperties::max_compute_units |
The number of compute units on the device.
Definition at line 113 of file Device.hpp.
| uint64_t sham::DeviceProperties::max_mem_alloc_size_dev |
The maximum size of memory that can be allocated on the device in bytes.
Definition at line 116 of file Device.hpp.
| uint64_t sham::DeviceProperties::max_mem_alloc_size_host |
The maximum size of memory that can be allocated on the host in bytes.
Definition at line 119 of file Device.hpp.
| uint32_t sham::DeviceProperties::mem_base_addr_align |
The base address alignment for memory allocations on the device in bytes.
Definition at line 122 of file Device.hpp.
| std::string sham::DeviceProperties::name |
The name of the device.
Definition at line 95 of file Device.hpp.
| std::optional<std::string> sham::DeviceProperties::pci_address |
PCI address of the device.
Definition at line 131 of file Device.hpp.
| std::string sham::DeviceProperties::platform |
The name of the platform of the device.
Definition at line 98 of file Device.hpp.
| std::vector<size_t> sham::DeviceProperties::sub_group_sizes |
SYCL sub group sizes property.
Definition at line 125 of file Device.hpp.
| DeviceType sham::DeviceProperties::type |
The type of the device.
Definition at line 92 of file Device.hpp.
| Vendor sham::DeviceProperties::vendor |
The vendor of the device.
Definition at line 86 of file Device.hpp.
| std::vector<std::string> sham::DeviceProperties::warnings |
Warnings emitted during property fetching.
Definition at line 134 of file Device.hpp.