SWDEV-547108 - Fix PAL build with HSA backend (#1850)
When hip is built with HSA backend then the headers from ROCR will be used, but scratch_backing_memory_byte_size is a part of amd_queue_v2_t structure
Bu işleme şunda yer alıyor:
işlemeyi yapan:
GitHub
ebeveyn
598ca70861
işleme
ff4782620e
@@ -60,7 +60,11 @@ struct AqlPacketMgmt : public amd::EmbeddedObject {
|
||||
static constexpr uint32_t kAqlPacketsListSize = 4 * Ki;
|
||||
AqlPacketMgmt(const Device& dev);
|
||||
|
||||
#if defined(WITH_HSA_DEVICE)
|
||||
amd_queue_v2_t amd_queue_{};
|
||||
#else
|
||||
amd_queue_t amd_queue_{};
|
||||
#endif
|
||||
alignas(sizeof(hsa_kernel_dispatch_packet_t))
|
||||
hsa_kernel_dispatch_packet_t aql_packets_[kAqlPacketsListSize]; //!< The list of AQL packets
|
||||
GpuEvent aql_events_[kAqlPacketsListSize]; //!< The list of gpu for each AQL packet
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle