Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Attributes | List of all members
sham::DeviceProperties Struct Reference

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.
 

Detailed Description

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.

Member Data Documentation

◆ backend

Backend sham::DeviceProperties::backend

The backend of the device.

Definition at line 89 of file Device.hpp.

◆ default_work_group_size

uint32_t sham::DeviceProperties::default_work_group_size

Default work group size.

Definition at line 128 of file Device.hpp.

◆ global_mem_cache_line_size

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.

◆ global_mem_cache_size

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.

◆ global_mem_size

usize sham::DeviceProperties::global_mem_size

The amount of global memory on the device in bytes.

Definition at line 101 of file Device.hpp.

◆ local_mem_size

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.

◆ max_compute_units

uint32_t sham::DeviceProperties::max_compute_units

The number of compute units on the device.

Definition at line 113 of file Device.hpp.

◆ max_mem_alloc_size_dev

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.

◆ max_mem_alloc_size_host

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.

◆ mem_base_addr_align

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.

◆ name

std::string sham::DeviceProperties::name

The name of the device.

Definition at line 95 of file Device.hpp.

◆ pci_address

std::optional<std::string> sham::DeviceProperties::pci_address

PCI address of the device.

Definition at line 131 of file Device.hpp.

◆ platform

std::string sham::DeviceProperties::platform

The name of the platform of the device.

Definition at line 98 of file Device.hpp.

◆ sub_group_sizes

std::vector<size_t> sham::DeviceProperties::sub_group_sizes

SYCL sub group sizes property.

Definition at line 125 of file Device.hpp.

◆ type

DeviceType sham::DeviceProperties::type

The type of the device.

Definition at line 92 of file Device.hpp.

◆ vendor

Vendor sham::DeviceProperties::vendor

The vendor of the device.

Definition at line 86 of file Device.hpp.

◆ warnings

std::vector<std::string> sham::DeviceProperties::warnings

Warnings emitted during property fetching.

Definition at line 134 of file Device.hpp.


The documentation for this struct was generated from the following file: