Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
sham::Device Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ print_info()

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:

◆ update_mpi_prop()

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:

Member Data Documentation

◆ dev

sycl::device sham::Device::dev

The SYCL device object.

Definition at line 157 of file Device.hpp.

◆ device_id

usize sham::Device::device_id

The id of the device.

Definition at line 152 of file Device.hpp.

◆ mpi_prop

DeviceMPIProperties sham::Device::mpi_prop

Properties of the device regarding MPI.

Definition at line 170 of file Device.hpp.

◆ prop

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.


The documentation for this class was generated from the following files: