![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Represents a SYCL device. More...
#include <shambackends/include/shambackends/Device.hpp>
Collaboration diagram for sham::Device: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 147 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 487 of file Device.cpp.
Here is the call graph for this function:| 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 485 of file Device.cpp.
Here is the call graph for this function:| sycl::device sham::Device::dev |
The SYCL device object.
Definition at line 157 of file Device.hpp.
| usize sham::Device::device_id |
The id of the device.
Definition at line 152 of file Device.hpp.
| DeviceMPIProperties sham::Device::mpi_prop |
Properties of the device regarding MPI.
Definition at line 170 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 165 of file Device.hpp.