Diese Seite wurde vollständig KI-generiert auf Basis von SWS Safe Hardware Acceleration (R25-11) — kein offizieller AUTOSAR-Text und keine automatisch extrahierte API-Seite wie die übrigen Module. Als Interpretation gekennzeichnete Aussagen sind Schlussfolgerungen aus den Quellen.
Encapsulates and identifies hardware accelerators such as CPUs and GPUs for the safe execution of computationally intensive tasks.
AI-GENERATEDunreviewedModel: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 920debb94b23ProvenanceOpen questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original
Encapsulates and identifies hardware accelerators such as CPUs and GPUs for the safe execution of computationally intensive tasks.
Serves to abstract and manage hardware accelerators within the Adaptive Platform AUTOSAR_AP_SWS_SafeHardwareAcceleration p. 12. Instances are created exclusively via factory methods such as Create() and offer operations for checking the device type as well as reading specific characteristics [AP_SWS_SHWA_00308], [AP_SWS_SHWA_00313]. Because the operations are not thread-safe, usage in multi-threaded environments requires external synchronization.
Context
The class ara::shwa::Device serves in the Safe Hardware Acceleration module as the primary abstraction for physical compute units AUTOSAR_AP_SWS_SafeHardwareAcceleration p. 12. Within the Adaptive Platform, it enables Adaptive Applications as well as other functional clusters to access and manage accelerator resources. A typical overall system combines instances of Device with execution queues and memory buffers to delegate compute-intensive tasks to accelerator hardware in a structured manner SWS_SafeHardwareAcceleration p. 22.
The creation of ara::shwa::Device objects is strictly controlled: the default constructor is explicitly deleted [AP_SWS_SHWA_00302]. Instances can be created exclusively via the static factory methods Create(), either without parameters for a default device [AP_SWS_SHWA_00308] or parameterized via a selector object by means of Create(const DeviceSelector&)[AP_SWS_SHWA_00309]. Both methods return a ara::core::Result<Device>.
Regarding resource ownership, the class possesses regular copy and move semantics: both copy constructor [AP_SWS_SHWA_00303] and copy assignment operator [AP_SWS_SHWA_00304] as well as move constructor [AP_SWS_SHWA_00305] and move assignment operator [AP_SWS_SHWA_00306] are declared as noexcept=default. Interpretation: Internally, the object is likely designed as a lightweight handle to the actual hardware resource, so that copies are possible without overhead and in an exception-safe manner. Question Q-a6ff4d89f19b0f36 (open) The lifetime of the physical hardware interface is tied to the runtime of the underlying driver or subsystem, while the instance can be passed along at the application level like a regular value type. All factory calls and methods of the class are specified as not thread-safe.
Usage Path
A typical usage path begins with instantiation via one of the factory methods. Following a successful return, the instance is inspected to determine the type of compute unit and query device-specific parameters. Subsequently, the device is typically assigned to queues and buffers to execute processing tasks.
ShwaErrorCode::kFeatureNotSupported: Reported when a requested property or device configuration is not supported by the system. This affects the creation methods [AP_SWS_SHWA_00308], [AP_SWS_SHWA_00309] as well as querying feature structures via GetInfo<InfoType>()[AP_SWS_SHWA_00313].
With regard to exception safety, all operations are considered exception safe or are annotated with noexcept. Because the operations are not thread-safe, concurrent calls on the same instance or shared hardware resources must be synchronized by the application layer.
This guide is based on the AUTOSAR standard R25-11 and was generated automatically.
Erzeugt beziehungsweise liefert das in der Signatur beschriebene Objekt oder Ergebnis über den angegebenen Factory-Pfad.
Scope
class ara::shwa::Device
Thread Safety
not thread-safe rollback_semantics ShwaErrorCode::k ResourceBusy The operation could not be performed because the resource is currently busy rollback_semantics
Exception Safety
exception safe
Errors
ShwaErrorCode::k FeatureNotSupported Used when a requested feature isn’t supported
Request a governed re-review of this record. The record is not changed immediately.
Erzeugt beziehungsweise liefert das in der Signatur beschriebene Objekt oder Ergebnis über den angegebenen Factory-Pfad.
Scope
class ara::shwa::Device
Thread Safety
not thread-safe rollback_semantics ShwaErrorCode::k ResourceBusy The operation could not be performed because the resource is currently busy rollback_semantics
Exception Safety
exception safe
Errors
ShwaErrorCode::k FeatureNotSupported Used when a requested feature isn’t supported
Request a governed re-review of this record. The record is not changed immediately.
gemini-3.8-flash-low· 2026-10-13 · German original