![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Represents a SYCL device. More...
#include <shambackends/include/shambackends/Device.hpp>
Public Member Functions | |
| void | update_mpi_prop () |
| Update the MPI properties of the device. | |
| void | print_info () |
| Print info about the device. | |
Public Attributes | |
| usize | device_id |
| The id of the device. | |
| sycl::device | dev |
| The SYCL device object. | |
| DeviceProperties | prop |
| Properties of the device. | |
| DeviceMPIProperties | mpi_prop |
| Properties of the device regarding MPI. | |
Represents a SYCL device.
This class represents a SYCL device, which is a piece of hardware on which kernels can be executed.
Definition at line 150 of file Device.hpp.
| void sham::Device::print_info | ( | ) |
Print info about the device.
This function prints information about the device, such as its id, properties, and MPI capabilities.
Definition at line 488 of file Device.cpp.
| void sham::Device::update_mpi_prop | ( | ) |
Update the MPI properties of the device.
This function updates the MPI properties of the device based on its capabilities.
Definition at line 486 of file Device.cpp.
| sycl::device sham::Device::dev |
The SYCL device object.
Definition at line 160 of file Device.hpp.
| usize sham::Device::device_id |
The id of the device.
Definition at line 155 of file Device.hpp.
| DeviceMPIProperties sham::Device::mpi_prop |
Properties of the device regarding MPI.
Definition at line 173 of file Device.hpp.
| DeviceProperties sham::Device::prop |
Properties of the device.
This struct contains properties of the device, such as its vendor, backend, amount of global memory and local memory, and cache size.
Definition at line 168 of file Device.hpp.