rocr: add const version of driver() method to Agent class
This change adds a const-qualified version of the driver() method to the Agent
class, allowing const Agent objects to access their associated driver without
modifying the object's state.
Signed-off-by: Honglei Huang <Honglei1.Huang@amd.com>
[ROCm/ROCR-Runtime commit: 9c18618847]
Este commit está contenido en:
cometido por
Huang, Honglei1
padre
e81be86a31
commit
a509e93393
@@ -313,7 +313,8 @@ class Agent : public Checked<0xF6BC25EB17E6F917> {
|
||||
__forceinline uint32_t node_id() const { return node_id_; }
|
||||
|
||||
// @brief Returns the driver associated with this agent.
|
||||
__forceinline Driver& driver() const { return *driver_; }
|
||||
__forceinline Driver& driver() { return *driver_; }
|
||||
__forceinline const Driver& driver() const { return *driver_; }
|
||||
|
||||
// @brief Getter for profiling_enabled_.
|
||||
__forceinline bool profiling_enabled() const { return profiling_enabled_; }
|
||||
|
||||
Referencia en una nueva incidencia
Block a user