Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions projects/amdsmi/example/amd_smi_drm_example.cc
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ int main() {
}

// Iterate through all available accelerator partition profiles
amdsmi_accelerator_partition_profile_config_t profile_config;
amdsmi_accelerator_partition_profile_config_t profile_config = {};
ret = amdsmi_get_gpu_accelerator_partition_profile_config(processor_handles[device_index],
&profile_config);
for (uint32_t profile_idx = 0; profile_idx < profile_config.num_profiles; profile_idx++) {
Comment thread
eble-amd marked this conversation as resolved.
Resolved
Expand All @@ -620,7 +620,7 @@ int main() {
<< acceleratorPartitionString(updatePartition) << "): " << err_str << "\n\n";

// Get the current accelerator partition
amdsmi_accelerator_partition_profile_t profile;
amdsmi_accelerator_partition_profile_t profile = {};
uint32_t partition_id[AMDSMI_MAX_ACCELERATOR_PROFILE];
ret = amdsmi_get_gpu_accelerator_partition_profile(processor_handles[device_index],
&profile, partition_id);
Expand Down
Loading