Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
fix build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Sep 2, 2024
1 parent 72b1ea9 commit 7952927
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion runtime/hsa-runtime/core/inc/amd_aie_aql_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class AieAqlQueue : public core::Queue,
hsa_fence_scope_t releaseFence = HSA_FENCE_SCOPE_NONE,
hsa_signal_t *signal = NULL) override;

uint32_t queue_id_ = INVALID_QUEUEID;
uint64_t queue_id_ = INVALID_QUEUEID;
/// @brief ID of AIE device on which this queue has been mapped.
uint32_t node_id_ = std::numeric_limits<uint32_t>::max();
/// @brief Queue size in bytes.
Expand Down
18 changes: 9 additions & 9 deletions runtime/hsa-runtime/core/inc/amd_gpu_agent.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class GpuAgent : public GpuAgentInt {
GpuAgent(HSAuint32 node, const HsaNodeProperties& node_props, bool xnack_mode, uint32_t index);

// @brief GPU agent destructor.
~GpuAgent();
~GpuAgent() override;

// @brief Ensure blits are ready (performance hint).
void PreloadBlits() override;
Expand Down Expand Up @@ -505,14 +505,14 @@ class GpuAgent : public GpuAgentInt {
hsa_status_t EnableDmaProfiling(bool enable) override;

hsa_status_t PcSamplingIterateConfig(hsa_ven_amd_pcs_iterate_configuration_callback_t cb,
void* cb_data);
hsa_status_t PcSamplingCreate(pcs::PcsRuntime::PcSamplingSession& session);
void *cb_data) override;
hsa_status_t PcSamplingCreate(pcs::PcsRuntime::PcSamplingSession &session) override;
hsa_status_t PcSamplingCreateFromId(HsaPcSamplingTraceId pcsId,
pcs::PcsRuntime::PcSamplingSession& session);
hsa_status_t PcSamplingDestroy(pcs::PcsRuntime::PcSamplingSession& session);
hsa_status_t PcSamplingStart(pcs::PcsRuntime::PcSamplingSession& session);
hsa_status_t PcSamplingStop(pcs::PcsRuntime::PcSamplingSession& session);
hsa_status_t PcSamplingFlush(pcs::PcsRuntime::PcSamplingSession& session);
pcs::PcsRuntime::PcSamplingSession &session) override;
hsa_status_t PcSamplingDestroy(pcs::PcsRuntime::PcSamplingSession &session) override;
hsa_status_t PcSamplingStart(pcs::PcsRuntime::PcSamplingSession &session) override;
hsa_status_t PcSamplingStop(pcs::PcsRuntime::PcSamplingSession &session) override;
hsa_status_t PcSamplingFlush(pcs::PcsRuntime::PcSamplingSession &session) override;
hsa_status_t PcSamplingFlushHostTrapDeviceBuffers(pcs::PcsRuntime::PcSamplingSession& session);

static void PcSamplingThreadRun(void* agent);
Expand Down Expand Up @@ -787,4 +787,4 @@ class GpuAgent : public GpuAgentInt {
} // namespace amd
} // namespace rocr

#endif // header guard
#endif // HSA_RUNTIME_CORE_INC_AMD_GPU_AGENT_H_
4 changes: 0 additions & 4 deletions runtime/hsa-runtime/core/inc/amd_xdna_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ class XdnaDriver : public core::Driver {
void *dev_heap_aligned = nullptr;
static constexpr size_t dev_heap_size = 48 * 1024 * 1024;
static constexpr size_t dev_heap_align = 64 * 1024 * 1024;

/// @brief DRM buffer object handle for the device heap. Assigned by the
/// kernel-mode driver.
uint32_t dev_heap_handle = 0;
};

} // namespace AMD
Expand Down

0 comments on commit 7952927

Please sign in to comment.