Fix miscellaneous warnings flagged by Clang
Change-Id: I85a45cb3b44e4379b31bcc56af061fd1571f2af5
[ROCm/ROCR-Runtime commit: c30c25bd30]
This commit is contained in:
@@ -217,12 +217,10 @@ AqlQueue::AqlQueue(GpuAgent* agent, size_t req_size_pkts, HSAuint32 node_id,
|
||||
}
|
||||
}
|
||||
|
||||
assert(amd_queue_.group_segment_aperture_base_hi != NULL &&
|
||||
"No group region found.");
|
||||
assert(amd_queue_.group_segment_aperture_base_hi != 0 && "No group region found.");
|
||||
|
||||
if (core::Runtime::runtime_singleton_->flag().check_flat_scratch()) {
|
||||
assert(amd_queue_.private_segment_aperture_base_hi != NULL &&
|
||||
"No private region found.");
|
||||
assert(amd_queue_.private_segment_aperture_base_hi != 0 && "No private region found.");
|
||||
}
|
||||
|
||||
MAKE_NAMED_SCOPE_GUARD(EventGuard, [&]() {
|
||||
@@ -783,8 +781,8 @@ void AqlQueue::ExecutePM4(uint32_t* cmd_data, size_t cmd_size_b) {
|
||||
|
||||
uint32_t slot_idx = uint32_t(write_idx % public_handle()->size);
|
||||
constexpr uint32_t slot_size_b = 0x40;
|
||||
uint32_t* queue_slot = (uint32_t*)uintptr_t(public_handle()->base_address +
|
||||
(slot_idx * slot_size_b));
|
||||
uint32_t* queue_slot =
|
||||
(uint32_t*)(uintptr_t(public_handle()->base_address) + (slot_idx * slot_size_b));
|
||||
|
||||
// Copy client PM4 command into IB.
|
||||
assert(cmd_size_b < pm4_ib_size_b_ && "PM4 exceeds IB size");
|
||||
@@ -913,7 +911,7 @@ void AqlQueue::InitScratchSRD() {
|
||||
uint32_t(queue_scratch_.size_per_thread);
|
||||
|
||||
// Set concurrent wavefront limits only when scratch is being used.
|
||||
COMPUTE_TMPRING_SIZE tmpring_size = {0};
|
||||
COMPUTE_TMPRING_SIZE tmpring_size = {};
|
||||
if (queue_scratch_.size == 0) {
|
||||
amd_queue_.compute_tmpring_size = tmpring_size.u32All;
|
||||
return;
|
||||
|
||||
@@ -299,9 +299,10 @@ static size_t get_extension_table_length(uint16_t extension, uint16_t major, uin
|
||||
std::string name;
|
||||
size_t size;
|
||||
};
|
||||
static sizes_t sizes[] = {"hsa_ext_images_1_00_pfn_t", sizeof(hsa_ext_images_1_00_pfn_t),
|
||||
"hsa_ext_finalizer_1_00_pfn_t", sizeof(hsa_ext_finalizer_1_00_pfn_t),
|
||||
"hsa_ven_amd_loader_1_00_pfn_t", sizeof(hsa_ven_amd_loader_1_00_pfn_t)};
|
||||
static sizes_t sizes[] = {
|
||||
{"hsa_ext_images_1_00_pfn_t", sizeof(hsa_ext_images_1_00_pfn_t)},
|
||||
{"hsa_ext_finalizer_1_00_pfn_t", sizeof(hsa_ext_finalizer_1_00_pfn_t)},
|
||||
{"hsa_ven_amd_loader_1_00_pfn_t", sizeof(hsa_ven_amd_loader_1_00_pfn_t)}};
|
||||
static const size_t num_tables = sizeof(sizes) / sizeof(sizes_t);
|
||||
|
||||
if (minor > 99) return 0;
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
#define HSA_VERSION_MAJOR 1
|
||||
#define HSA_VERSION_MINOR 1
|
||||
|
||||
const char rocrbuildid[] = "ROCR BUILD ID: " STRING(ROCR_BUILD_ID);
|
||||
const char rocrbuildid[] __attribute__((unused)) = "ROCR BUILD ID: " STRING(ROCR_BUILD_ID);
|
||||
|
||||
namespace core {
|
||||
bool g_use_interrupt_wait = true;
|
||||
|
||||
Reference in New Issue
Block a user